MediaSession.Callback.OnPlayFromMediaId(String, Bundle) Method

Definition

Override to handle requests to play a specific mediaId that was provided by your app's MediaBrowserService.

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

Parameters

mediaId
String
extras
Bundle
Attributes

Remarks

Override to handle requests to play a specific mediaId that was provided by your app's MediaBrowserService.

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