BluetoothGattCallback.OnCharacteristicChanged 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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[])
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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[]
通知特徵值
- 屬性
備註
回撥是由遠端特性通知觸發的。 請注意,特徵物件內的值可能因收到遠端特徵通知而改變,因此請檢查通知時該值的參數值。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。