Share via


PlaybackState.State Property

Definition

Get the current state of playback.

public Android.Media.Session.PlaybackStateCode State { [Android.Runtime.Register("getState", "()I", "")] get; }
[<get: Android.Runtime.Register("getState", "()I", "")>]
member this.State : Android.Media.Session.PlaybackStateCode

Property Value

Attributes

Remarks

Get the current state of playback. One of the following: <ul> <li> PlaybackState#STATE_NONE</li> <li> PlaybackState#STATE_STOPPED</li> <li> PlaybackState#STATE_PLAYING</li> <li> PlaybackState#STATE_PAUSED</li> <li> PlaybackState#STATE_FAST_FORWARDING</li> <li> PlaybackState#STATE_REWINDING</li> <li> PlaybackState#STATE_BUFFERING</li> <li> PlaybackState#STATE_ERROR</li> <li> PlaybackState#STATE_CONNECTING</li> <li> PlaybackState#STATE_SKIPPING_TO_PREVIOUS</li> <li> PlaybackState#STATE_SKIPPING_TO_NEXT</li> <li> PlaybackState#STATE_SKIPPING_TO_QUEUE_ITEM</li> </ul>

Java documentation for android.media.session.PlaybackState.getState().

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