BluetoothGattCallback.OnCharacteristicRead 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.
Surcharges
| Nom | Description |
|---|---|
| OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, GattStatus) |
Rappel signalant le résultat d’une opération de lecture caractéristique. |
| OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, Byte[], GattStatus) |
Rappel signalant le résultat d’une opération de lecture caractéristique. |
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, GattStatus)
Rappel signalant le résultat d’une opération de lecture caractéristique.
[Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")]
public virtual void OnCharacteristicRead(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.BluetoothGattCharacteristic? characteristic, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")>]
abstract member OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * Android.Bluetooth.GattStatus -> unit
override this.OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * Android.Bluetooth.GattStatus -> unit
Paramètres
- gatt
- BluetoothGatt
Client GATT appelé BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)
- characteristic
- BluetoothGattCharacteristic
Caractéristique qui a été lue à partir de l’appareil distant associé.
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS si l’opération de lecture a été effectuée avec succès.
- Attributs
Remarques
Rappel signalant le résultat d’une opération de lecture caractéristique.
Ce membre est déconseillé. Utiliser BluetoothGattCallback#onCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, byte[], int) comme il s’agit d’une mémoire sécurisée
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.
S’applique à
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, Byte[], GattStatus)
Rappel signalant le résultat d’une opération de lecture caractéristique.
[Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[BI)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBIHandler", ApiSince=33)]
public virtual void OnCharacteristicRead(Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, byte[] value, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[BI)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBIHandler", ApiSince=33)>]
abstract member OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] * Android.Bluetooth.GattStatus -> unit
override this.OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] * Android.Bluetooth.GattStatus -> unit
Paramètres
- gatt
- BluetoothGatt
Client GATT appelé BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)
- characteristic
- BluetoothGattCharacteristic
Caractéristique qui a été lue à partir de l’appareil distant associé.
- value
- Byte[]
la valeur de la caractéristique
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS si l’opération de lecture a été effectuée avec succès.
- Attributs
Remarques
Rappel signalant le résultat d’une opération de lecture caractéristique.
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.