BluetoothGattConnectionSettings.Builder.SetOpportunisticEnabled Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit si ce client GATT est opportuniste.
[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
Paramètres
- opportunisticEnabled
- Boolean
true si cette connexion est opportuniste, false sinon.
Retours
Ce générateur. Cette valeur ne peut pas être null.
- Attributs
Remarques
Définit si ce client GATT est opportuniste. Un client GATT opportuniste ne dispose pas d’une connexion GATT. Il se déconnecte automatiquement lorsqu’aucune autre connexion GATT n’est active pour l’appareil distant
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.