Language

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

整数値が見つかるオフセット。

返品

特性のキャッシュ値またはオフセットの null が値サイズを超えています。

属性

注釈

この特性の格納された値を返します。

formatType パラメーターは、特性値の解釈方法を決定します。 たとえば、formatType を #FORMAT_UINT16 に設定すると、指定されたオフセットにある特性値の最初の 2 バイトが戻り値を生成するように解釈されます。

このメンバーは非推奨です。 BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)を使用して特性値を取得する

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象