BluetoothGattCallback.OnDescriptorRead 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus, Byte[]) |
回调报告描述符读取操作的结果。 |
| OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus) |
回调报告描述符读取操作的结果。 |
OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus, Byte[])
回调报告描述符读取操作的结果。
[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
参数
- gatt
- BluetoothGatt
调用 GATT 客户端 BluetoothGatt#readDescriptor
- descriptor
- BluetoothGattDescriptor
从关联的远程设备读取的描述符。
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS 如果读取操作成功完成,则为
- value
- Byte[]
读取操作时的描述符值
- 特性
注解
回调报告描述符读取操作的结果。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus)
回调报告描述符读取操作的结果。
[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
参数
- gatt
- BluetoothGatt
调用 GATT 客户端 BluetoothGatt#readDescriptor
- descriptor
- BluetoothGattDescriptor
从关联的远程设备读取的描述符。
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS 如果读取操作成功完成,则为
- 特性
注解
回调报告描述符读取操作的结果。
此成员已弃用。
BluetoothGattCallback#onDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, int, byte[])在读取时提供描述符值,将其用作内存安全。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。