Udostępnij za pośrednictwem


MediaRoute2ProviderService.NotifySessionCreated Method

Definition

Notifies clients of that the session is created and ready for use.

[Android.Runtime.Register("notifySessionCreated", "(JLandroid/media/RoutingSessionInfo;)V", "", ApiSince=30)]
public void NotifySessionCreated (long requestId, Android.Media.RoutingSessionInfo sessionInfo);
[<Android.Runtime.Register("notifySessionCreated", "(JLandroid/media/RoutingSessionInfo;)V", "", ApiSince=30)>]
member this.NotifySessionCreated : int64 * Android.Media.RoutingSessionInfo -> unit

Parameters

requestId
Int64

the ID of the previous request to create this session provided in #onCreateSession(long, String, String, Bundle). Can be #REQUEST_ID_NONE if this session is created without any request.

sessionInfo
RoutingSessionInfo

information of the new session. The RoutingSessionInfo#getId() id of the session must be unique.

Attributes

Remarks

Notifies clients of that the session is created and ready for use.

If this session is created without any creation request, use #REQUEST_ID_NONE as the request ID.

Java documentation for android.media.MediaRoute2ProviderService.notifySessionCreated(long, 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