Udostępnij za pośrednictwem


MediaController2.ControllerCallback.OnConnected Method

Definition

Called when the controller is successfully connected to the session.

[Android.Runtime.Register("onConnected", "(Landroid/media/MediaController2;Landroid/media/Session2CommandGroup;)V", "GetOnConnected_Landroid_media_MediaController2_Landroid_media_Session2CommandGroup_Handler", ApiSince=29)]
public virtual void OnConnected (Android.Media.MediaController2 controller, Android.Media.Session2CommandGroup allowedCommands);
[<Android.Runtime.Register("onConnected", "(Landroid/media/MediaController2;Landroid/media/Session2CommandGroup;)V", "GetOnConnected_Landroid_media_MediaController2_Landroid_media_Session2CommandGroup_Handler", ApiSince=29)>]
abstract member OnConnected : Android.Media.MediaController2 * Android.Media.Session2CommandGroup -> unit
override this.OnConnected : Android.Media.MediaController2 * Android.Media.Session2CommandGroup -> unit

Parameters

controller
MediaController2

the controller for this event

allowedCommands
Session2CommandGroup

commands that's allowed by the session.

Attributes

Remarks

Java documentation for android.media.MediaController2.ControllerCallback.onConnected(android.media.MediaController2, android.media.Session2CommandGroup).

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