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

要從遠端裝置讀取的描述項值

傳回

true,如果已成功起始讀取作業

屬性

備註

android.bluetooth.BluetoothGatt.readDescriptor(android.bluetooth.BluetoothGattDescriptor)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於