java.lang.Object | |
↳ | android.support.v4.media.session.PlaybackStateCompat.CustomAction.Builder |
Builder for PlaybackStateCompat.CustomAction
objects.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
PlaybackStateCompat.CustomAction builder with the id, name, and
icon set.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build and return the
PlaybackStateCompat.CustomAction instance with the
specified values.
| |||||||||||
Set optional extras for the
PlaybackStateCompat.CustomAction .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a PlaybackStateCompat.CustomAction
builder with the id, name, and
icon set.
action | The action of the PlaybackStateCompat.CustomAction . |
---|---|
name | The display name of the PlaybackStateCompat.CustomAction . This
name will be displayed along side the action if the UI
supports it. |
icon | The icon resource id of the PlaybackStateCompat.CustomAction .
This resource id must be in the same package as the
MediaSessionCompat . It will be displayed with
the custom action if the UI supports it.
|
Build and return the PlaybackStateCompat.CustomAction
instance with the
specified values.
PlaybackStateCompat.CustomAction
instance.
Set optional extras for the PlaybackStateCompat.CustomAction
. These extras
are meant to be consumed by a MediaControllerCompat
if it
knows how to handle them. Keys should be fully qualified (e.g.
"com.example.MY_ARG") to avoid collisions.
extras | Optional extras for the PlaybackStateCompat.CustomAction . |
---|