共用方式為


MediaRoute2ProviderService.NotifySessionCreated 方法

定義

通知用戶端會話已建立並可供使用。

[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

參數

requestId
Int64

在 中提供建立此會話之上一個要求標識碼 #onCreateSession(long, String, String, Bundle)。 如果 #REQUEST_ID_NONE 建立此工作階段時沒有任何要求,可以是 。

sessionInfo
RoutingSessionInfo

新會話的資訊。 RoutingSessionInfo#getId() id會話的 必須是唯一的。

屬性

備註

通知用戶端會話已建立並可供使用。

如果建立此工作階段時沒有任何建立要求,請使用 #REQUEST_ID_NONE 作為要求標識碼。

android.media.MediaRoute2ProviderService.notifySessionCreated(long, android.media.RoutingSessionInfo)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於