BluetoothGattCharacteristic.GetIntValue(GattFormat, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the stored value of this characteristic.
[Android.Runtime.Register("getIntValue", "(II)Ljava/lang/Integer;", "GetGetIntValue_IIHandler")]
public virtual Java.Lang.Integer? GetIntValue (Android.Bluetooth.GattFormat formatType, int offset);
[<Android.Runtime.Register("getIntValue", "(II)Ljava/lang/Integer;", "GetGetIntValue_IIHandler")>]
abstract member GetIntValue : Android.Bluetooth.GattFormat * int -> Java.Lang.Integer
override this.GetIntValue : Android.Bluetooth.GattFormat * int -> Java.Lang.Integer
Parameters
- formatType
- GattFormat
The format type used to interpret the characteristic value.
- offset
- Int32
Offset at which the integer value can be found.
Returns
Cached value of the characteristic or null of offset exceeds value size.
- Attributes
Remarks
Return the stored value of this characteristic.
The formatType parameter determines how the characteristic value is to be interpreted. For example, setting formatType to #FORMAT_UINT16
specifies that the first two bytes of the characteristic value at the given offset are interpreted to generate the return value.
This member is deprecated. Use BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)
to get the characteristic value
Java documentation for android.bluetooth.BluetoothGattCharacteristic.getIntValue(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.