MediaRoute2Info.Builder Constructors
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.
Overloads
MediaRoute2Info.Builder(MediaRoute2Info) |
Constructor for builder to create |
MediaRoute2Info.Builder(String, ICharSequence) |
Constructor for builder to create |
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.
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
.
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