PlaybackState.Builder.SetActions(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the current actions available on this session.
[Android.Runtime.Register("setActions", "(J)Landroid/media/session/PlaybackState$Builder;", "")]
public Android.Media.Session.PlaybackState.Builder SetActions(long actions);
[<Android.Runtime.Register("setActions", "(J)Landroid/media/session/PlaybackState$Builder;", "")>]
member this.SetActions : int64 -> Android.Media.Session.PlaybackState.Builder
Parameters
- actions
- Int64
The set of actions allowed. Value is either 0 or a combination of the following: PlaybackState.ACTION_STOP; PlaybackState.ACTION_PAUSE; PlaybackState.ACTION_PLAY; PlaybackState.ACTION_REWIND; PlaybackState.ACTION_SKIP_TO_PREVIOUS; PlaybackState.ACTION_SKIP_TO_NEXT; PlaybackState.ACTION_FAST_FORWARD; PlaybackState.ACTION_SET_RATING; PlaybackState.ACTION_SEEK_TO; PlaybackState.ACTION_PLAY_PAUSE; PlaybackState.ACTION_PLAY_FROM_MEDIA_ID; PlaybackState.ACTION_PLAY_FROM_SEARCH; PlaybackState.ACTION_SKIP_TO_QUEUE_ITEM; PlaybackState.ACTION_PLAY_FROM_URI; PlaybackState.ACTION_PREPARE; PlaybackState.ACTION_PREPARE_FROM_MEDIA_ID; PlaybackState.ACTION_PREPARE_FROM_SEARCH; PlaybackState.ACTION_PREPARE_FROM_URI; PlaybackState.ACTION_SET_PLAYBACK_SPEED
Returns
this
- Attributes
Remarks
Set the current actions available on this session. This should use a bitmask of possible actions. PlaybackState.ACTION_SKIP_TO_PREVIOUS; PlaybackState.ACTION_REWIND; PlaybackState.ACTION_PLAY; PlaybackState.ACTION_PAUSE; PlaybackState.ACTION_STOP; PlaybackState.ACTION_FAST_FORWARD; PlaybackState.ACTION_SKIP_TO_NEXT; PlaybackState.ACTION_SEEK_TO; PlaybackState.ACTION_SET_RATING; PlaybackState.ACTION_PLAY_PAUSE; PlaybackState.ACTION_PLAY_FROM_MEDIA_ID; PlaybackState.ACTION_PLAY_FROM_SEARCH; PlaybackState.ACTION_SKIP_TO_QUEUE_ITEM; PlaybackState.ACTION_PLAY_FROM_URI; PlaybackState.ACTION_PREPARE; PlaybackState.ACTION_PREPARE_FROM_MEDIA_ID; PlaybackState.ACTION_PREPARE_FROM_SEARCH; PlaybackState.ACTION_PREPARE_FROM_URI; PlaybackState.ACTION_SET_PLAYBACK_SPEED
Android reference for android.media.session.PlaybackState.Builder.setActions.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.