BluetoothGattCharacteristic.GetFloatValue(GattFormat, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳這個特性的儲存值。
[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
參數
- formatType
- GattFormat
用於解讀特徵值的格式類型。
- offset
- Int32
偏移量,浮點值可在此處找到。
傳回
特徵在特定偏移量處的快取值,若請求偏移量超過該值大小則為空值。
- 屬性
備註
回傳這個特性的儲存值。
如需詳細資訊,請參閱 #getValue。
此會員已被棄用。 用來 BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic) 取得特徵值
Java 文件 android.bluetooth.BluetoothGattCharacteristic.getFloatValue(int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。