Compartilhar via


MediaBrowser Constructor

Definition

Creates a media browser for the specified media browser service.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/content/ComponentName;Landroid/media/browse/MediaBrowser$ConnectionCallback;Landroid/os/Bundle;)V", "")]
public MediaBrowser (Android.Content.Context? context, Android.Content.ComponentName? serviceComponent, Android.Media.Browse.MediaBrowser.ConnectionCallback? callback, Android.OS.Bundle? rootHints);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/content/ComponentName;Landroid/media/browse/MediaBrowser$ConnectionCallback;Landroid/os/Bundle;)V", "")>]
new Android.Media.Browse.MediaBrowser : Android.Content.Context * Android.Content.ComponentName * Android.Media.Browse.MediaBrowser.ConnectionCallback * Android.OS.Bundle -> Android.Media.Browse.MediaBrowser

Parameters

context
Context

The context.

serviceComponent
ComponentName

The component name of the media browser service.

callback
MediaBrowser.ConnectionCallback

The connection callback.

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.

Attributes

Remarks

Java documentation for android.media.browse.MediaBrowser.MediaBrowser(android.content.Context, android.content.ComponentName, android.media.browse.ConnectionCallback, 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