BluetoothGattCallback.OnCharacteristicRead Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, GattStatus) |
Devolución de llamada que informa del resultado de una operación de lectura característica. |
| OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, Byte[], GattStatus) |
Devolución de llamada que informa del resultado de una operación de lectura característica. |
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, GattStatus)
Devolución de llamada que informa del resultado de una operación de lectura característica.
[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
Parámetros
- gatt
- BluetoothGatt
Cliente GATT invocado BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)
- characteristic
- BluetoothGattCharacteristic
Característica que se leyó desde el dispositivo remoto asociado.
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS si la operación de lectura se completó correctamente.
- Atributos
Comentarios
Devolución de llamada que informa del resultado de una operación de lectura característica.
Este miembro está en desuso. Úselo BluetoothGattCallback#onCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, byte[], int) ya que es seguro para la memoria
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
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, Byte[], GattStatus)
Devolución de llamada que informa del resultado de una operación de lectura característica.
[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
Parámetros
- gatt
- BluetoothGatt
Cliente GATT invocado BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)
- characteristic
- BluetoothGattCharacteristic
Característica que se leyó desde el dispositivo remoto asociado.
- value
- Byte[]
el valor de la característica
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS si la operación de lectura se completó correctamente.
- Atributos
Comentarios
Devolución de llamada que informa del resultado de una operación de lectura característica.
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.