MediaController2.ControllerCallback.OnConnected Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.