RoutingSessionInfo.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
RoutingSessionInfo.Builder(RoutingSessionInfo) |
Constructor for builder to create |
RoutingSessionInfo.Builder(String, String) |
Constructor for builder to create |
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.
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
.
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.