Language

MediaController2.Builder.SetConnectionHints(Bundle) Method

Definition

Set the connection hints for the controller.

[Android.Runtime.Register("setConnectionHints", "(Landroid/os/Bundle;)Landroid/media/MediaController2$Builder;", "", ApiSince=29)]
public Android.Media.MediaController2.Builder SetConnectionHints(Android.OS.Bundle connectionHints);
[<Android.Runtime.Register("setConnectionHints", "(Landroid/os/Bundle;)Landroid/media/MediaController2$Builder;", "", ApiSince=29)>]
member this.SetConnectionHints : Android.OS.Bundle -> Android.Media.MediaController2.Builder

Parameters

connectionHints
Bundle

a bundle which contains the connection hints. This value cannot be null.

Returns

The Builder to allow chaining. This value cannot be null.

Attributes

Remarks

Set the connection hints for the controller. connectionHints is a session-specific argument to send to the session when connecting. The contents of this bundle may affect the connection result. An IllegalArgumentException will be thrown if the bundle contains any non-framework Parcelable objects.

Android reference for android.media.MediaController2.Builder.setConnectionHints.

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