SubscribeConfig.Builder.SetInstantCommunicationModeEnabled 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定是否啟用並使用即時通訊來進行此訂閱會話。
[Android.Runtime.Register("setInstantCommunicationModeEnabled", "(ZI)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=33)]
public Android.Net.Wifi.Aware.SubscribeConfig.Builder SetInstantCommunicationModeEnabled(bool enabled, int band);
[<Android.Runtime.Register("setInstantCommunicationModeEnabled", "(ZI)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=33)>]
member this.SetInstantCommunicationModeEnabled : bool * int -> Android.Net.Wifi.Aware.SubscribeConfig.Builder
參數
- enabled
- Boolean
啟用即時通訊模式為 true,預設為 false。
傳回
目前的 Builder 建置器,使建構方法能夠串連起來。 這個值不可能為零值。
- 屬性
備註
設定是否啟用並使用即時通訊來進行此訂閱會話。 即時通訊將加速服務發現及此會話中建立的資料路徑。 用於 IsInstantCommunicationModeSupported 檢查裝置是否支援此功能。
由於即時模式耗電較多,工作階段的請求有時間限制(預設為 30 秒)。 更新工作階段可以重新啟動限制。 其他工作階段也可以保持即時模式啟用。
Android 參考資料。android.net.wifi.aware.SubscribeConfig.Builder.setInstantCommunicationModeEnabled
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。