Android.Bluetooth.BluetoothGattCallback.OnCharacteristicWrite Method
Callback indicating the result of a characteristic write operation.

Syntax

[Android.Runtime.Register("onCharacteristicWrite", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicWrite_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")]
public virtual void OnCharacteristicWrite (BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, [Android.Runtime.GeneratedEnum] GattStatus status)

Parameters

gatt
GATT client invoked BluetoothGatt.WriteCharacteristic(BluetoothGattCharacteristic)
characteristic
Characteristic that was written to the associated remote device.
status
The result of the write operation BluetoothGatt.GattSuccess if the operation succeeds.

Remarks

Callback indicating the result of a characteristic write operation.

If this callback is invoked while a reliable write transaction is in progress, the value of the characteristic represents the value reported by the remote device. An application should compare this value to the desired value to be written. If the values don't match, the application must abort the reliable write transaction.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18