BluetoothGatt.ReadDescriptor(BluetoothGattDescriptor) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從相關遠端裝置讀取指定描述符的值。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。