java.lang.Object | |
↳ | com.google.android.gms.cast.framework.media.NotificationAction |
An object representing an action in the media notification. Note that it can be either a
pre-defined action or a custom action. To create an action, use NotificationAction.Builder
. If the action is a pre-defined action, only setAction(String)
needs to be called. See MediaIntentReceiver
for the list of
pre-defined actions. If the action is a custom action, call setAction(String)
to
set the action, setIconResId(int)
to set the icon's resource ID, and setContentDescription(String)
to set the content description for accessibility.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NotificationAction.Builder | A builder for NotificationAction . |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the intent action.
| |||||||||||
Returns the content description that is used for accessibility.
| |||||||||||
Returns the icon's resource ID.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Returns the intent action.
Returns | |
---|---|
String |
Returns the content description that is used for accessibility.
Returns | |
---|---|
String |
Returns the icon's resource ID.
Returns | |
---|---|
int |
Parameters | |
---|---|
dest |
Parcel |
flags |
int |