Partager via


BluetoothGattCallback.OnDescriptorRead Method

Definition

Overloads

OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus, Byte[])

Callback reporting the result of a descriptor read operation.

OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus)

Callback reporting the result of a descriptor read operation.

OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus, Byte[])

Callback reporting the result of a descriptor read operation.

[Android.Runtime.Register("onDescriptorRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattDescriptor;I[B)V", "GetOnDescriptorRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattDescriptor_IarrayBHandler", ApiSince=33)]
public virtual void OnDescriptorRead (Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattDescriptor descriptor, Android.Bluetooth.GattStatus status, byte[] value);
[<Android.Runtime.Register("onDescriptorRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattDescriptor;I[B)V", "GetOnDescriptorRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattDescriptor_IarrayBHandler", ApiSince=33)>]
abstract member OnDescriptorRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattDescriptor * Android.Bluetooth.GattStatus * byte[] -> unit
override this.OnDescriptorRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattDescriptor * Android.Bluetooth.GattStatus * byte[] -> unit

Parameters

gatt
BluetoothGatt

GATT client invoked BluetoothGatt#readDescriptor

descriptor
BluetoothGattDescriptor

Descriptor that was read from the associated remote device.

status
GattStatus

BluetoothGatt#GATT_SUCCESS if the read operation was completed successfully

value
Byte[]

the descriptor value at the time of the read operation

Attributes

Remarks

Callback reporting the result of a descriptor read operation.

Java documentation for android.bluetooth.BluetoothGattCallback.onDescriptorRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattDescriptor, int, byte[]).

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

OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus)

Callback reporting the result of a descriptor read operation.

[Android.Runtime.Register("onDescriptorRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattDescriptor;I)V", "GetOnDescriptorRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattDescriptor_IHandler")]
public virtual void OnDescriptorRead (Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.BluetoothGattDescriptor? descriptor, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onDescriptorRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattDescriptor;I)V", "GetOnDescriptorRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattDescriptor_IHandler")>]
abstract member OnDescriptorRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattDescriptor * Android.Bluetooth.GattStatus -> unit
override this.OnDescriptorRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattDescriptor * Android.Bluetooth.GattStatus -> unit

Parameters

gatt
BluetoothGatt

GATT client invoked BluetoothGatt#readDescriptor

descriptor
BluetoothGattDescriptor

Descriptor that was read from the associated remote device.

status
GattStatus

BluetoothGatt#GATT_SUCCESS if the read operation was completed successfully

Attributes

Remarks

Callback reporting the result of a descriptor read operation.

This member is deprecated. Use BluetoothGattCallback#onDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, int, byte[]) as it is memory safe by providing the descriptor value at the time it was read.

Java documentation for android.bluetooth.BluetoothGattCallback.onDescriptorRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattDescriptor, int).

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