語言

BluetoothGatt.ReadDescriptor(BluetoothGattDescriptor) 方法

定義

從相關遠端裝置讀取指定描述符的值。

[Android.Runtime.Register("readDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool ReadDescriptor(Android.Bluetooth.BluetoothGattDescriptor? descriptor);
[<Android.Runtime.Register("readDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.ReadDescriptor : Android.Bluetooth.BluetoothGattDescriptor -> bool

參數

descriptor
BluetoothGattDescriptor

描述符值用於從遠端裝置讀取

傳回

如果讀取操作成功啟動,則為真

屬性

備註

從相關遠端裝置讀取指定描述符的值。

讀取操作完成後, BluetoothGattCallback#onDescriptorRead 回調會被觸發,並告知操作結果。

Java 文件 android.bluetooth.BluetoothGatt.readDescriptor(android.bluetooth.BluetoothGattDescriptor)。

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

適用於