BluetoothGattCallback.OnCharacteristicRead Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, GattStatus) |
Callback reporting the result of a characteristic read operation. |
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, Byte[], GattStatus) |
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, GattStatus)
Callback reporting the result of a characteristic read operation.
[Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")]
public virtual void OnCharacteristicRead (Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.BluetoothGattCharacteristic? characteristic, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")>]
abstract member OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * Android.Bluetooth.GattStatus -> unit
override this.OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * Android.Bluetooth.GattStatus -> unit
Parameters
- gatt
- BluetoothGatt
GATT client invoked BluetoothGatt#readCharacteristic
- characteristic
- BluetoothGattCharacteristic
Characteristic that was read from the associated remote device.
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS
if the read operation was completed
successfully.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, Byte[], GattStatus)
[Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[BI)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBIHandler", ApiSince=33)]
public virtual void OnCharacteristicRead (Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, byte[] value, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[BI)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBIHandler", ApiSince=33)>]
abstract member OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] * Android.Bluetooth.GattStatus -> unit
override this.OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] * Android.Bluetooth.GattStatus -> unit
Parameters
- gatt
- BluetoothGatt
- characteristic
- BluetoothGattCharacteristic
- value
- Byte[]
- status
- GattStatus
- Attributes