Language

BluetoothGattConnectionSettings.Builder.SetOpportunisticEnabled Method

Definition

Sets whether this GATT client is opportunistic.

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

Parameters

opportunisticEnabled
Boolean

true if this connection is opportunistic, false otherwise.

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets whether this GATT client is opportunistic. An opportunistic GATT client does not hold a GATT connection. It automatically disconnects when no other GATT connections are active for the remote device

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

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