MediaController(Context, MediaSession+Token) Constructor

Definition

Create a new MediaController from a session's token.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/media/session/MediaSession$Token;)V", "")]
public MediaController (Android.Content.Context context, Android.Media.Session.MediaSession.Token token);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/media/session/MediaSession$Token;)V", "")>]
new Android.Media.Session.MediaController : Android.Content.Context * Android.Media.Session.MediaSession.Token -> Android.Media.Session.MediaController

Parameters

context
Context

The caller's context.

token
MediaSession.Token

The token for the session.

Attributes

Remarks

Java documentation for android.media.session.MediaController.MediaController(android.content.Context, android.media.session.Token).

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