Lenguaje

BluetoothGattConnectionSettings.Builder.SetOpportunisticEnabled Método

Definición

Establece si este cliente GATT es oportunista.

[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

Parámetros

opportunisticEnabled
Boolean

true si esta conexión es oportunista, false de lo contrario.

Devoluciones

Este generador. Este valor no puede ser nulo.

Atributos

Comentarios

Establece si este cliente GATT es oportunista. Un cliente GATT oportunista no mantiene una conexión GATT. Se desconecta automáticamente cuando ninguna otra conexión GATT está activa para el dispositivo remoto.

Referencia de Android para android.bluetooth.BluetoothGattConnectionSettings.Builder.setOpportunisticEnabled.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a