語言

BluetoothGattCallback.OnDescriptorRead 方法

定義

多載

名稱 Description
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[]

讀取操作時的描述符值

屬性

備註

回調報告描述符讀取操作的結果。

Java 文件 android.bluetooth.BluetoothGattCallback.onDescriptorRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattDescriptor, int, byte[])。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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[])由於使用時提供描述符值,是記憶體安全的。

Java 文件 android.bluetooth.BluetoothGattCallback.onDescriptorRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattDescriptor, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於