Compartir a través de


MediaSession.Callback.OnPlayFromUri(Uri, Bundle) Method

Definition

Override to handle requests to play a specific media item represented by a URI.

[Android.Runtime.Register("onPlayFromUri", "(Landroid/net/Uri;Landroid/os/Bundle;)V", "GetOnPlayFromUri_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=23)]
public virtual void OnPlayFromUri (Android.Net.Uri? uri, Android.OS.Bundle? extras);
[<Android.Runtime.Register("onPlayFromUri", "(Landroid/net/Uri;Landroid/os/Bundle;)V", "GetOnPlayFromUri_Landroid_net_Uri_Landroid_os_Bundle_Handler", ApiSince=23)>]
abstract member OnPlayFromUri : Android.Net.Uri * Android.OS.Bundle -> unit
override this.OnPlayFromUri : Android.Net.Uri * Android.OS.Bundle -> unit

Parameters

uri
Uri
extras
Bundle
Attributes

Remarks

Override to handle requests to play a specific media item represented by a URI.

Java documentation for android.media.session.MediaSession.Callback.onPlayFromUri(android.net.Uri, 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