| java.lang.Object | |
| ↳ | com.google.android.gms.cast.framework.media.NotificationOptions.Builder |
A builder to create an instance of NotificationOptions.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Builds and returns the
NotificationOptions object. | |||||||||||
Sets at most 5 actions to show in the notification, and the indices to the actions to
show in the compat view.
| |||||||||||
Sets the amount to jump if
ACTION_FORWARD or
ACTION_REWIND are included for the notification actions. | |||||||||||
Sets the name of the
Activity that will be launched when user taps on the
content area of the notification. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Sets at most 5 actions to show in the notification, and the indices to the actions to
show in the compat view. If both actions and compatActionIndices are
null, the default values, ACTION_TOGGLE_PLAYBACK and
ACTION_STOP_CASTING will be used.
| actions | The list of actions, defined in MediaIntentReceiver. |
|---|---|
| compatActionIndices | Indices of the actions in actions list, which will be
shown in the compat view. |
| IllegalArgumentException | if actions and compatActionIndices are
not either both null or non-null, or if the length of
compatActionIndices is greater than the size of actions, or if any index
in compatActionIndices is out of range. |
|---|
Sets the amount to jump if ACTION_FORWARD or
ACTION_REWIND are included for the notification actions. Any
tap on those actions will result in moving the media position forward or backward by
notificationSkipStepMs milliseconds. The default value is
SKIP_STEP_TEN_SECONDS_IN_MS.
| notificationSkipStepMs | The amount of time to skip, in milliseconds. |
|---|
| IllegalArgumentException | if notificationSkipStepMs is not positive.
|
|---|