Dela via


RoutingSessionInfo.Builder Constructors

Definition

Overloads

RoutingSessionInfo.Builder(RoutingSessionInfo)

Constructor for builder to create RoutingSessionInfo with existing RoutingSessionInfo instance.

RoutingSessionInfo.Builder(String, String)

Constructor for builder to create RoutingSessionInfo.

RoutingSessionInfo.Builder(RoutingSessionInfo)

Constructor for builder to create RoutingSessionInfo with existing RoutingSessionInfo instance.

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

Parameters

sessionInfo
RoutingSessionInfo

the existing instance to copy data from.

Attributes

Remarks

Constructor for builder to create RoutingSessionInfo with existing RoutingSessionInfo instance.

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

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

RoutingSessionInfo.Builder(String, String)

Constructor for builder to create RoutingSessionInfo.

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

Parameters

id
String

ID of the session. Must not be empty.

clientPackageName
String

package name of the client app which uses this session. If is is unknown, then just use an empty string.

Attributes

Remarks

Constructor for builder to create RoutingSessionInfo.

In order to ensure ID uniqueness in MediaRouter2 side, the value of RoutingSessionInfo#getId() can be different from what was set in MediaRoute2ProviderService.

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

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