Android.Bluetooth.BluetoothGattServerCallback.OnCharacteristicReadRequest Method
A remote client has requested to read a local characteristic.

Syntax

[Android.Runtime.Register("onCharacteristicReadRequest", "(Landroid/bluetooth/BluetoothDevice;IILandroid/bluetooth/BluetoothGattCharacteristic;)V", "GetOnCharacteristicReadRequest_Landroid_bluetooth_BluetoothDevice_IILandroid_bluetooth_BluetoothGattCharacteristic_Handler")]
public virtual void OnCharacteristicReadRequest (BluetoothDevice device, int requestId, int offset, BluetoothGattCharacteristic characteristic)

Parameters

device
The remote device that has requested the read operation
requestId
The Id of the request
offset
Offset into the value of the characteristic
characteristic
Characteristic to be read

Remarks

A remote client has requested to read a local characteristic.

An application must call BluetoothGattServer.SendResponse(BluetoothDevice, System.Int32, System.Int32, System.Int32, System.Int32) to complete the request.

[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