BluetoothGattServerCallback.OnDescriptorReadRequest 方法

定义

远程客户端已请求读取本地描述符。

[Android.Runtime.Register("onDescriptorReadRequest", "(Landroid/bluetooth/BluetoothDevice;IILandroid/bluetooth/BluetoothGattDescriptor;)V", "GetOnDescriptorReadRequest_Landroid_bluetooth_BluetoothDevice_IILandroid_bluetooth_BluetoothGattDescriptor_Handler")]
public virtual void OnDescriptorReadRequest(Android.Bluetooth.BluetoothDevice? device, int requestId, int offset, Android.Bluetooth.BluetoothGattDescriptor? descriptor);
[<Android.Runtime.Register("onDescriptorReadRequest", "(Landroid/bluetooth/BluetoothDevice;IILandroid/bluetooth/BluetoothGattDescriptor;)V", "GetOnDescriptorReadRequest_Landroid_bluetooth_BluetoothDevice_IILandroid_bluetooth_BluetoothGattDescriptor_Handler")>]
abstract member OnDescriptorReadRequest : Android.Bluetooth.BluetoothDevice * int * int * Android.Bluetooth.BluetoothGattDescriptor -> unit
override this.OnDescriptorReadRequest : Android.Bluetooth.BluetoothDevice * int * int * Android.Bluetooth.BluetoothGattDescriptor -> unit

参数

device
BluetoothDevice

已请求读取操作的远程设备

requestId
Int32

请求的 ID

offset
Int32

偏移到特征的值

descriptor
BluetoothGattDescriptor

要读取的描述符

属性

注解

远程客户端已请求读取本地描述符。

应用程序必须调用 BluetoothGattServer#sendResponse 才能完成请求。

Java文档android.bluetooth.BluetoothGattServerCallback.onDescriptorReadRequest(android.bluetooth.BluetoothDevice, int, int, android.bluetooth.BluetoothGattDescriptor)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于