Поделиться через


BluetoothGattCallback.OnCharacteristicChanged Метод

Определение

Перегрузки

OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic)

Обратный вызов активируется в результате удаленного уведомления о характеристике.

OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, Byte[])

OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic)

Обратный вызов активируется в результате удаленного уведомления о характеристике.

[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

Параметры

gatt
BluetoothGatt

Клиент GATT, с которым связана характеристика

characteristic
BluetoothGattCharacteristic

Характеристика, которая была обновлена в результате события удаленного уведомления.

Атрибуты

Комментарии

Документация по Java для android.bluetooth.BluetoothGattCallback.onCharacteristicChanged(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattCharacteristic).

Части этой страницы — это изменения на основе работы, созданной и общей проектом с открытым исходным кодом Android и используемой в соответствии с условиями, описанными в лицензии Creative Commons 2.5 Attribution.

Применяется к

OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, Byte[])

[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

Параметры

value
Byte[]
Атрибуты

Применяется к