BluetoothGattCharacteristic.AddDescriptor(BluetoothGattDescriptor) 方法

定义

向此特征添加描述符。

[Android.Runtime.Register("addDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;)Z", "GetAddDescriptor_Landroid_bluetooth_BluetoothGattDescriptor_Handler")]
public virtual bool AddDescriptor (Android.Bluetooth.BluetoothGattDescriptor? descriptor);
[<Android.Runtime.Register("addDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;)Z", "GetAddDescriptor_Landroid_bluetooth_BluetoothGattDescriptor_Handler")>]
abstract member AddDescriptor : Android.Bluetooth.BluetoothGattDescriptor -> bool
override this.AddDescriptor : Android.Bluetooth.BluetoothGattDescriptor -> bool

参数

descriptor
BluetoothGattDescriptor

要添加到此特征的描述符。

返回

如果描述符已添加到特征中,则为 true

属性

注解

适用于 . 的 android.bluetooth.BluetoothGattCharacteristic.addDescriptor(android.bluetooth.BluetoothGattDescriptor)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于