public static final class AVPlaybackState.AVPlaybackCustomAction.Builder extends Object
AVPlaybackCustomAction objects.| 构造器 | 说明 |
|---|---|
Builder(String action,
CharSequence name,
int icon) |
Creates a
Builder instance based on the operation ID, display name, and icon ID. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
AVPlaybackState.AVPlaybackCustomAction |
build() |
Creates an
AVPlaybackCustomAction instance. |
AVPlaybackState.AVPlaybackCustomAction.Builder |
setOptions(PacMap options) |
Sets other optional information for the custom action.
|
public Builder(String action, CharSequence name, int icon)
Builder instance based on the operation ID, display name, and icon ID.action - Indicates the ID of a custom action.name - Indicates the display name. If supported by the UI, it is displayed with the custom action.icon - Indicates the icon ID. If supported by the UI, it is displayed with the custom action.public AVPlaybackState.AVPlaybackCustomAction.Builder setOptions(PacMap options)
options - Indicates the other optional information to set.Builder instance.public AVPlaybackState.AVPlaybackCustomAction build()
AVPlaybackCustomAction instance.AVPlaybackCustomAction instance.