BluetoothGattCharacteristic.GetValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取此特征的存储值。
[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()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。