MediaSession2.Builder.SetExtras(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.
Set extras for the session token.
[Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)Landroid/media/MediaSession2$Builder;", "", ApiSince=29)]
public Android.Media.MediaSession2.Builder SetExtras(Android.OS.Bundle extras);
[<Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)Landroid/media/MediaSession2$Builder;", "", ApiSince=29)>]
member this.SetExtras : Android.OS.Bundle -> Android.Media.MediaSession2.Builder
Parameters
- extras
- Bundle
Returns
The Builder to allow chaining
- Attributes
Remarks
Set extras for the session token. If null or not set, Session2Token.getExtras() will return an empty Bundle. An IllegalArgumentException will be thrown if the bundle contains any non-framework Parcelable objects.
Android reference for android.media.MediaSession2.Builder.setExtras.
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.