Language

PlaybackStateEvent.Builder.SetState(Int32) Method

Definition

Sets playback state.

[Android.Runtime.Register("setState", "(I)Landroid/media/metrics/PlaybackStateEvent$Builder;", "", ApiSince=31)]
public Android.Media.Metrics.PlaybackStateEvent.Builder SetState(int value);
[<Android.Runtime.Register("setState", "(I)Landroid/media/metrics/PlaybackStateEvent$Builder;", "", ApiSince=31)>]
member this.SetState : int -> Android.Media.Metrics.PlaybackStateEvent.Builder

Parameters

value
Int32

Value is one of the following: PlaybackStateEvent.STATE_NOT_STARTED; PlaybackStateEvent.STATE_JOINING_BACKGROUND; PlaybackStateEvent.STATE_JOINING_FOREGROUND; PlaybackStateEvent.STATE_PLAYING; PlaybackStateEvent.STATE_PAUSED; PlaybackStateEvent.STATE_SEEKING; PlaybackStateEvent.STATE_BUFFERING; PlaybackStateEvent.STATE_PAUSED_BUFFERING; PlaybackStateEvent.STATE_SUPPRESSED; PlaybackStateEvent.STATE_SUPPRESSED_BUFFERING; PlaybackStateEvent.STATE_ENDED; PlaybackStateEvent.STATE_STOPPED; PlaybackStateEvent.STATE_FAILED; PlaybackStateEvent.STATE_INTERRUPTED_BY_AD; PlaybackStateEvent.STATE_ABANDONED

Returns

This builder instance.

Attributes

Remarks

Sets playback state.

Android reference for android.media.metrics.PlaybackStateEvent.Builder.setState.

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.

Applies to