CommandButton.DisplayConstraints


@UnstableApi
class CommandButton.DisplayConstraints


Constraints for displaying a list of CommandButton instances with utilities to resolve these constraints for a given list of buttons.

Summary

Public functions

ImmutableList<CommandButton!>!
resolve(
    mediaButtonPreferences: (Mutable)List<CommandButton!>!,
    player: Player!
)

Resolves a list of media button preferences according to these display constraints and returns the list of buttons to be displayed.

Public functions

resolve

fun resolve(
    mediaButtonPreferences: (Mutable)List<CommandButton!>!,
    player: Player!
): ImmutableList<CommandButton!>!

Resolves a list of media button preferences according to these display constraints and returns the list of buttons to be displayed.

Note that the result of this resolution can change whenever the mediaButtonPreferences change, or the player reports any of the following listener events:

Parameters
mediaButtonPreferences: (Mutable)List<CommandButton!>!

The list of media button preferences.

player: Player!

The Player used to determine default buttons for empty slots.

Returns
ImmutableList<CommandButton!>!

The resolved list of buttons to be displayed. Each button will have a single slot defined.