BluetoothGattCallback.OnCharacteristicWrite メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
特性書き込み操作の結果を示すコールバック。
[Android.Runtime.Register("onCharacteristicWrite", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicWrite_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")]
public virtual void OnCharacteristicWrite(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.BluetoothGattCharacteristic? characteristic, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onCharacteristicWrite", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicWrite_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")>]
abstract member OnCharacteristicWrite : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * Android.Bluetooth.GattStatus -> unit
override this.OnCharacteristicWrite : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * Android.Bluetooth.GattStatus -> unit
パラメーター
- gatt
- BluetoothGatt
呼び出された GATT クライアント BluetoothGatt#writeCharacteristic(BluetoothGattCharacteristic, byte[], int)
- characteristic
- BluetoothGattCharacteristic
関連付けられているリモート デバイスに書き込まれた特性。
- status
- GattStatus
書き込み操作の結果は、操作が成功した場合に BluetoothGatt#GATT_SUCCESS 。
- 属性
注釈
特性書き込み操作の結果を示すコールバック。
信頼できる書き込みトランザクションの進行中にこのコールバックが呼び出された場合、特性の値はリモート デバイスによって報告された値を表します。 アプリケーションでは、この値を書き込む目的の値と比較する必要があります。 値が一致しない場合、アプリケーションは信頼性の高い書き込みトランザクションを中止する必要があります。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。