BluetoothGattConnectionSettings.Builder.SetAutoConnectEnabled(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Setting this to true will enable the automatic connection to remote device when It is available.
[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
Parameters
- autoConnectEnabled
- Boolean
true if auto connection is enabled, false otherwise.
Returns
This builder. This value cannot be null.
- Attributes
Remarks
Setting this to true will enable the automatic connection to remote device when It is available. Setting it to False would trigger direct connect to remote device
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.