Condividi tramite


MediaBrowserService.OnGetRoot(String, Int32, Bundle) Method

Definition

Called to get the root information for browsing by a particular client.

[Android.Runtime.Register("onGetRoot", "(Ljava/lang/String;ILandroid/os/Bundle;)Landroid/service/media/MediaBrowserService$BrowserRoot;", "GetOnGetRoot_Ljava_lang_String_ILandroid_os_Bundle_Handler")]
public abstract Android.Service.Media.MediaBrowserService.BrowserRoot? OnGetRoot (string clientPackageName, int clientUid, Android.OS.Bundle? rootHints);
[<Android.Runtime.Register("onGetRoot", "(Ljava/lang/String;ILandroid/os/Bundle;)Landroid/service/media/MediaBrowserService$BrowserRoot;", "GetOnGetRoot_Ljava_lang_String_ILandroid_os_Bundle_Handler")>]
abstract member OnGetRoot : string * int * Android.OS.Bundle -> Android.Service.Media.MediaBrowserService.BrowserRoot

Parameters

clientPackageName
String

The package name of the application which is requesting access to browse media.

clientUid
Int32

The uid of the application which is requesting access to browse media.

rootHints
Bundle

An optional bundle of service-specific arguments to send to the media browser service when connecting and retrieving the root id for browsing, or null if none. The contents of this bundle may affect the information returned when browsing.

Returns

The BrowserRoot for accessing this app's content or null.

Attributes

Remarks

Java documentation for android.service.media.MediaBrowserService.onGetRoot(java.lang.String, int, 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