Udostępnij za pośrednictwem


MediaController.Callback.OnPlaybackStateChanged(PlaybackState) Method

Definition

Override to handle changes in playback state.

[Android.Runtime.Register("onPlaybackStateChanged", "(Landroid/media/session/PlaybackState;)V", "GetOnPlaybackStateChanged_Landroid_media_session_PlaybackState_Handler")]
public virtual void OnPlaybackStateChanged (Android.Media.Session.PlaybackState? state);
[<Android.Runtime.Register("onPlaybackStateChanged", "(Landroid/media/session/PlaybackState;)V", "GetOnPlaybackStateChanged_Landroid_media_session_PlaybackState_Handler")>]
abstract member OnPlaybackStateChanged : Android.Media.Session.PlaybackState -> unit
override this.OnPlaybackStateChanged : Android.Media.Session.PlaybackState -> unit

Parameters

state
PlaybackState

The new playback state of the session

Attributes

Remarks

Override to handle changes in playback state.

Java documentation for android.media.session.MediaController.Callback.onPlaybackStateChanged(android.media.session.PlaybackState).

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