語言

BluetoothGattCharacteristic.GetIntValue(GattFormat, Int32) 方法

定義

回傳這個特性的儲存值。

[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

參數

formatType
GattFormat

用於解讀特徵值的格式類型。

offset
Int32

整數值可找到的偏移量。

傳回

特徵值或偏移量空值的快取值超過值大小。

屬性

備註

回傳這個特性的儲存值。

formatType 參數決定特徵值的解讀方式。 例如,將 formatType 設為 , #FORMAT_UINT16 指定特徵值在給定偏移量處的前兩個位元組被解讀為回傳值。

此會員已被棄用。 用來 BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic) 取得特徵值

Java 文件 android.bluetooth.BluetoothGattCharacteristic.getIntValue(int, int)。

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

適用於