Compartir a través de


BluetoothGattCharacteristic.GetFloatValue(GattFormat, Int32) Method

Definition

Return the stored value of this characteristic.

[Android.Runtime.Register("getFloatValue", "(II)Ljava/lang/Float;", "GetGetFloatValue_IIHandler")]
public virtual Java.Lang.Float? GetFloatValue (Android.Bluetooth.GattFormat formatType, int offset);
[<Android.Runtime.Register("getFloatValue", "(II)Ljava/lang/Float;", "GetGetFloatValue_IIHandler")>]
abstract member GetFloatValue : Android.Bluetooth.GattFormat * int -> Java.Lang.Float
override this.GetFloatValue : Android.Bluetooth.GattFormat * int -> Java.Lang.Float

Parameters

formatType
GattFormat

The format type used to interpret the characteristic value.

offset
Int32

Offset at which the float value can be found.

Returns

Cached value of the characteristic at a given offset or null if the requested offset exceeds the value size.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGattCharacteristic.getFloatValue(int, int).

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