BluetoothGattConnectionSettings.Builder.SetAutomaticMtuEnabled 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定是否需要協商 MTU(最大傳輸單元)以達成特定連線。
[Android.Runtime.Register("setAutomaticMtuEnabled", "(Z)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)]
public Android.Bluetooth.BluetoothGattConnectionSettings.Builder SetAutomaticMtuEnabled(bool automaticMtuEnabled);
[<Android.Runtime.Register("setAutomaticMtuEnabled", "(Z)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)>]
member this.SetAutomaticMtuEnabled : bool -> Android.Bluetooth.BluetoothGattConnectionSettings.Builder
參數
- automaticMtuEnabled
- Boolean
若此連線需套用預設 MTU 設定,則為 true;否則為 false。
傳回
這個建築商。 這個值不可能為零值。
- 屬性
備註
設定是否需要協商 MTU(最大傳輸單元)以達成特定連線。 預設為 true,讓 MTU 交換在連線結束後發生。 應用程式必須將 False 設定為 false 才能停用自動協商。 將此設定為 false 並不會阻止用戶端使用 BluetoothGatt.requestMtu 明確請求 MTU 協商,或是由其他設定檔內部觸發。
Android 參考資料。android.bluetooth.BluetoothGattConnectionSettings.Builder.setAutomaticMtuEnabled
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。