MediaControlFactory

interface MediaControlFactory

Creates MediaControls within the given MediaControlContext.

It is recommended to define the factory as an inner class of its MediaControl:

class MyControl : MediaControl {
// ...

class Factory : MediaControlFactory {
// ...
}
}

Properties

Link copied to clipboard
open val priority: MediaControlPriority

The priority of the media control created by this factory. If the number of controls is limited, priority is used to determine which controls are displayed.

Functions

Link copied to clipboard
abstract fun createControlFor(mediaControlContext: MediaControlContext): MediaControl

Creates a MediaControl for the given mediaControlContext. The context can be used to determine any of the properties of a MediaControl, or when the control is launched.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard