MediaController2.ControllerCallback.OnDisconnected(MediaController2) 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 session refuses the controller or the controller is disconnected from the session.
[Android.Runtime.Register("onDisconnected", "(Landroid/media/MediaController2;)V", "GetOnDisconnected_Landroid_media_MediaController2_Handler", ApiSince=29)]
public virtual void OnDisconnected (Android.Media.MediaController2 controller);
[<Android.Runtime.Register("onDisconnected", "(Landroid/media/MediaController2;)V", "GetOnDisconnected_Landroid_media_MediaController2_Handler", ApiSince=29)>]
abstract member OnDisconnected : Android.Media.MediaController2 -> unit
override this.OnDisconnected : Android.Media.MediaController2 -> unit
Parameters
- controller
- MediaController2
the controller for this event
- Attributes
Remarks
Called when the session refuses the controller or the controller is disconnected from the session. The controller becomes unavailable afterwards and the callback wouldn't be called.
It will be also called after the #close()
, so you can put clean up code here. You don't need to call #close()
after this.
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.