語言

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()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於