Partager via


BluetoothGattCharacteristic.GetValue Method

Definition

Get the stored value for this characteristic.

[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[]

Returns

Byte[]

Cached value of the characteristic

Attributes

Remarks

Get the stored value for this characteristic.

This function returns the stored value for this characteristic as retrieved by calling BluetoothGatt#readCharacteristic. The cached value of the characteristic is updated as a result of a read characteristic operation or if a characteristic update notification has been received.

This member is deprecated. Use BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic) instead

Java documentation for android.bluetooth.BluetoothGattCharacteristic.getValue().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to