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

リモート通知イベントの結果として更新された特性。

属性

注釈

リモート特性通知の結果としてトリガーされるコールバック。

このメンバーは非推奨です。 BluetoothGattCallback#onCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, byte[])は、通知時に特性値を指定することで、メモリセーフであるため使用します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

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

パラメーター

gatt
BluetoothGatt

特性が関連付けられている GATT クライアント

characteristic
BluetoothGattCharacteristic

リモート通知イベントの結果として更新された特性。

value
Byte[]

通知された特性値

属性

注釈

リモート特性通知の結果としてトリガーされるコールバック。 特性オブジェクト内の値は、リモート特性通知を受信してから変更されている可能性があるので、通知時の値のパラメーター値を確認してください。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象