MediaController.Callback.OnSessionEvent(String, Bundle) Method

Definition

Override to handle custom events sent by the session owner without a specified interface.

[Android.Runtime.Register("onSessionEvent", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnSessionEvent_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual void OnSessionEvent (string e, Android.OS.Bundle? extras);
[<Android.Runtime.Register("onSessionEvent", "(Ljava/lang/String;Landroid/os/Bundle;)V", "GetOnSessionEvent_Ljava_lang_String_Landroid_os_Bundle_Handler")>]
abstract member OnSessionEvent : string * Android.OS.Bundle -> unit
override this.OnSessionEvent : string * Android.OS.Bundle -> unit

Parameters

e
String
extras
Bundle

Optional parameters for the event, may be null.

Attributes

Remarks

Override to handle custom events sent by the session owner without a specified interface. Controllers should only handle these for sessions they own.

Java documentation for android.media.session.MediaController.Callback.onSessionEvent(java.lang.String, android.os.Bundle).

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