BluetoothGattCallback.OnCharacteristicChanged 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 |
|---|---|
| OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic) |
Devolución de llamada desencadenada como resultado de una notificación de características remotas. |
| OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, Byte[]) |
Devolución de llamada desencadenada como resultado de una notificación de características remotas. |
OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic)
Devolución de llamada desencadenada como resultado de una notificación de características remotas.
[Android.Runtime.Register("onCharacteristicChanged", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;)V", "GetOnCharacteristicChanged_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_Handler")]
public virtual void OnCharacteristicChanged(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.BluetoothGattCharacteristic? characteristic);
[<Android.Runtime.Register("onCharacteristicChanged", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;)V", "GetOnCharacteristicChanged_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_Handler")>]
abstract member OnCharacteristicChanged : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic -> unit
override this.OnCharacteristicChanged : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic -> unit
Parámetros
- gatt
- BluetoothGatt
Cliente GATT al que está asociada la característica
- characteristic
- BluetoothGattCharacteristic
Característica que se ha actualizado como resultado de un evento de notificación remota.
- Atributos
Comentarios
Devolución de llamada desencadenada como resultado de una notificación de características remotas.
Este miembro está en desuso. Use BluetoothGattCallback#onCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, byte[]) tal como es seguro para la memoria proporcionando el valor de característica en el momento de la notificación.
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
OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, Byte[])
Devolución de llamada desencadenada como resultado de una notificación de características remotas.
[Android.Runtime.Register("onCharacteristicChanged", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[B)V", "GetOnCharacteristicChanged_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBHandler", ApiSince=33)]
public virtual void OnCharacteristicChanged(Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, byte[] value);
[<Android.Runtime.Register("onCharacteristicChanged", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[B)V", "GetOnCharacteristicChanged_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBHandler", ApiSince=33)>]
abstract member OnCharacteristicChanged : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] -> unit
override this.OnCharacteristicChanged : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] -> unit
Parámetros
- gatt
- BluetoothGatt
Cliente GATT al que está asociada la característica
- characteristic
- BluetoothGattCharacteristic
Característica que se ha actualizado como resultado de un evento de notificación remota.
- value
- Byte[]
valor de característica notificado
- Atributos
Comentarios
Devolución de llamada desencadenada como resultado de una notificación de características remotas. Tenga en cuenta que el valor dentro del objeto de característica puede haber cambiado desde que recibe la notificación de característica remota, por lo que compruebe el valor del parámetro para el valor en el momento de la notificación.
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.