MediaSession.SetExtras(Bundle) Method

Definition

Set some extras that can be associated with the MediaSession.

[Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)V", "")]
public void SetExtras (Android.OS.Bundle? extras);
[<Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)V", "")>]
member this.SetExtras : Android.OS.Bundle -> unit

Parameters

extras
Bundle

The extras associated with the MediaSession.

Attributes

Remarks

Set some extras that can be associated with the MediaSession. No assumptions should be made as to how a MediaController will handle these extras. Keys should be fully qualified (e.g. com.example.MY_EXTRA) to avoid conflicts.

Java documentation for android.media.session.MediaSession.setExtras(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