語言

BluetoothGattConnectionSettings.Builder.SetAutoConnectEnabled(Boolean) 方法

定義

將此設定為 true,當遠端裝置可用時,即可自動連線。

[Android.Runtime.Register("setAutoConnectEnabled", "(Z)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)]
public Android.Bluetooth.BluetoothGattConnectionSettings.Builder SetAutoConnectEnabled(bool autoConnectEnabled);
[<Android.Runtime.Register("setAutoConnectEnabled", "(Z)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)>]
member this.SetAutoConnectEnabled : bool -> Android.Bluetooth.BluetoothGattConnectionSettings.Builder

參數

autoConnectEnabled
Boolean

如果啟用自動連線,則為 true;否則為 false。

傳回

這個建築商。 這個值不可能為零值。

屬性

備註

將此設定為 true,當遠端裝置可用時,即可自動連線。 將它設為 False 會觸發直接連接遠端裝置

Android 參考資料。android.bluetooth.BluetoothGattConnectionSettings.Builder.setAutoConnectEnabled

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於