语言

BluetoothGattCharacteristic.GetValue 方法

定义

获取此特征的存储值。

[Android.Runtime.Register("getValue", "()[B", "GetGetValueHandler")]
public virtual byte[]? GetValue();
[<Android.Runtime.Register("getValue", "()[B", "GetGetValueHandler")>]
abstract member GetValue : unit -> byte[]
override this.GetValue : unit -> byte[]

返回

Byte[]

特征的缓存值

特性

注解

获取此特征的存储值。

此函数通过调用 BluetoothGatt#readCharacteristic返回此特征的存储值。 特征的缓存值因读取特征操作或收到特征更新通知而更新。

此成员已弃用。 请改用 BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)

Java文档android.bluetooth.BluetoothGattCharacteristic.getValue()。

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

适用于