Udostępnij za pośrednictwem


MediaSession2.SessionCallback.OnConnect Method

Definition

[Android.Runtime.Register("onConnect", "(Landroid/media/MediaSession2;Landroid/media/MediaSession2$ControllerInfo;)Landroid/media/Session2CommandGroup;", "GetOnConnect_Landroid_media_MediaSession2_Landroid_media_MediaSession2_ControllerInfo_Handler", ApiSince=29)]
public virtual Android.Media.Session2CommandGroup? OnConnect (Android.Media.MediaSession2 session, Android.Media.MediaSession2.ControllerInfo controller);
[<Android.Runtime.Register("onConnect", "(Landroid/media/MediaSession2;Landroid/media/MediaSession2$ControllerInfo;)Landroid/media/Session2CommandGroup;", "GetOnConnect_Landroid_media_MediaSession2_Landroid_media_MediaSession2_ControllerInfo_Handler", ApiSince=29)>]
abstract member OnConnect : Android.Media.MediaSession2 * Android.Media.MediaSession2.ControllerInfo -> Android.Media.Session2CommandGroup
override this.OnConnect : Android.Media.MediaSession2 * Android.Media.MediaSession2.ControllerInfo -> Android.Media.Session2CommandGroup

Parameters

session
MediaSession2

Returns

Attributes

Applies to