MediaControlPriority

Priority of a MediaControl. When room for controls is limited, their priority is used to determine which controls are displayed.

The availability of a control overrides this priority: available controls will be selected over unavailable controls.

The priority is independent of the order of a control in a list, though if two controls share the same priority the earlier control will take priority over the later one.

The priority is also independent of whether a control is a primary or a secondary control.

Configure the priority of a MediaControl on its MediaControlFactory. This means that all media controls created by the same factory have the same priority.

No specific rules are tied to the priority values. The usage examples are indicative.

Entries

Link copied to clipboard

Examples: skip backward, pin/unpin (to dashboard).

Link copied to clipboard

Examples: skip forward, thumbs down.

Link copied to clipboard

Examples: seek backward, repeat, thumbs up.

Link copied to clipboard

Examples: Seek forward, shuffle, playback speed.

Link copied to clipboard

Examples: play/pause, mute/unmute, like/favorite/add to playlist.

Inherited properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.