Language

BluetoothGattConnectionSettings.Builder.SetAutoConnectEnabled(Boolean) Method

Definition

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

Android reference for android.bluetooth.BluetoothGattConnectionSettings.Builder.setAutoConnectEnabled.

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.

Applies to