Sdílet prostřednictvím


MediaRoute2Info.Builder Constructors

Definition

Overloads

MediaRoute2Info.Builder(MediaRoute2Info)

Constructor for builder to create MediaRoute2Info with existing MediaRoute2Info instance.

MediaRoute2Info.Builder(String, ICharSequence)

Constructor for builder to create MediaRoute2Info.

MediaRoute2Info.Builder(String, String)

MediaRoute2Info.Builder(MediaRoute2Info)

Constructor for builder to create MediaRoute2Info with existing MediaRoute2Info instance.

[Android.Runtime.Register(".ctor", "(Landroid/media/MediaRoute2Info;)V", "", ApiSince=30)]
public Builder (Android.Media.MediaRoute2Info routeInfo);
[<Android.Runtime.Register(".ctor", "(Landroid/media/MediaRoute2Info;)V", "", ApiSince=30)>]
new Android.Media.MediaRoute2Info.Builder : Android.Media.MediaRoute2Info -> Android.Media.MediaRoute2Info.Builder

Parameters

routeInfo
MediaRoute2Info

the existing instance to copy data from.

Attributes

Remarks

Constructor for builder to create MediaRoute2Info with existing MediaRoute2Info instance.

Java documentation for android.media.MediaRoute2Info.Builder.MediaRoute2Info$Builder(android.media.MediaRoute2Info).

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

MediaRoute2Info.Builder(String, ICharSequence)

Constructor for builder to create MediaRoute2Info.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=30)]
public Builder (string id, Java.Lang.ICharSequence name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=30)>]
new Android.Media.MediaRoute2Info.Builder : string * Java.Lang.ICharSequence -> Android.Media.MediaRoute2Info.Builder

Parameters

id
String

The ID of the route. Must not be empty.

name
ICharSequence

The user-visible name of the route.

Attributes

Remarks

Constructor for builder to create MediaRoute2Info.

In order to ensure ID uniqueness, the MediaRoute2Info#getId() ID of a route info obtained from MediaRouter2 can be different from what was set in MediaRoute2ProviderService.

Java documentation for android.media.MediaRoute2Info.Builder.MediaRoute2Info$Builder(java.lang.String, java.lang.CharSequence).

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

MediaRoute2Info.Builder(String, String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=30)]
public Builder (string id, string name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=30)>]
new Android.Media.MediaRoute2Info.Builder : string * string -> Android.Media.MediaRoute2Info.Builder

Parameters

id
String
name
String
Attributes

Applies to