Sdílet prostřednictvím


MediaSession.SendSessionEvent(String, Bundle) Method

Definition

Send a proprietary event to all MediaControllers listening to this Session.

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

Parameters

e
String

The name of the event to send

extras
Bundle

Any extras included with the event

Attributes

Remarks

Send a proprietary event to all MediaControllers listening to this Session. It's up to the Controller/Session owner to determine the meaning of any events.

Java documentation for android.media.session.MediaSession.sendSessionEvent(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