MediaBrowserService.OnGetRoot(String, Int32, Bundle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.