语言

BluetoothGattDescriptor.SetValue(Byte[]) 方法

定义

更新此描述符的本地存储值。

[Android.Runtime.Register("setValue", "([B)Z", "GetSetValue_arrayBHandler")]
public virtual bool SetValue(byte[]? value);
[<Android.Runtime.Register("setValue", "([B)Z", "GetSetValue_arrayBHandler")>]
abstract member SetValue : byte[] -> bool
override this.SetValue : byte[] -> bool

参数

value
Byte[]

此描述符的新值

返回

如果已设置本地存储值,则为 true;如果请求的值无法本地存储,则为 false。

特性

注解

更新此描述符的本地存储值。

此函数修改此描述符的本地存储缓存值。 若要将值发送到远程设备,请调用 BluetoothGatt#writeDescriptor 以将值发送到远程设备。

此成员已弃用。 将描述符值直接传递到 BluetoothGatt#writeDescriptor(BluetoothGattDescriptor, byte[])

Java文档android.bluetooth.BluetoothGattDescriptor.setValue(byte[])。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于