Udostępnij za pośrednictwem


MediaController2.ControllerCallback.OnPlaybackActiveChanged Method

Definition

Called when the session's playback activeness is changed.

[Android.Runtime.Register("onPlaybackActiveChanged", "(Landroid/media/MediaController2;Z)V", "GetOnPlaybackActiveChanged_Landroid_media_MediaController2_ZHandler", ApiSince=29)]
public virtual void OnPlaybackActiveChanged (Android.Media.MediaController2 controller, bool playbackActive);
[<Android.Runtime.Register("onPlaybackActiveChanged", "(Landroid/media/MediaController2;Z)V", "GetOnPlaybackActiveChanged_Landroid_media_MediaController2_ZHandler", ApiSince=29)>]
abstract member OnPlaybackActiveChanged : Android.Media.MediaController2 * bool -> unit
override this.OnPlaybackActiveChanged : Android.Media.MediaController2 * bool -> unit

Parameters

controller
MediaController2

the controller for this event

playbackActive
Boolean

true if the session's playback is active. false otherwise.

Attributes

Remarks

Java documentation for android.media.MediaController2.ControllerCallback.onPlaybackActiveChanged(android.media.MediaController2, boolean).

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