BluetoothGattCharacteristic.SetValue メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| SetValue(Byte[]) |
この特性のローカルに格納されている値を更新します。 |
| SetValue(String) |
この特性のローカルに格納されている値を設定します。 |
| SetValue(Int32, GattFormat, Int32) |
この特性のローカルに格納されている値を設定します。 |
| SetValue(Int32, Int32, GattFormat, Int32) |
この特性のローカルに格納されている値を設定します。 |
SetValue(Byte[])
この特性のローカルに格納されている値を更新します。
[Android.Runtime.Register("setValue", "([B)Z", "GetSetValue_arrayBHandler")]
public virtual bool SetValue(byte[]? value);
[<Android.Runtime.Register("setValue", "([B)Z", "GetSetValue_arrayBHandler")>]
abstract member SetValue : byte[] -> bool
override this.SetValue : byte[] -> bool
パラメーター
- value
- Byte[]
この特性の新しい値
返品
ローカルに格納された値が設定されている場合は true、要求された値をローカルに格納できなかった場合は false。
- 属性
注釈
この特性のローカルに格納されている値を更新します。
この関数は、この特性のローカルに格納されているキャッシュされた値を変更します。 リモート デバイスに値を送信するには、 BluetoothGatt#writeCharacteristic を呼び出して値をリモート デバイスに送信します。
このメンバーは非推奨です。 特性値を直接 BluetoothGatt#writeCharacteristic(BluetoothGattCharacteristic, byte[], int)
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetValue(String)
この特性のローカルに格納されている値を設定します。
[Android.Runtime.Register("setValue", "(Ljava/lang/String;)Z", "GetSetValue_Ljava_lang_String_Handler")]
public virtual bool SetValue(string? value);
[<Android.Runtime.Register("setValue", "(Ljava/lang/String;)Z", "GetSetValue_Ljava_lang_String_Handler")>]
abstract member SetValue : string -> bool
override this.SetValue : string -> bool
パラメーター
- value
- String
この特性の新しい値
返品
ローカルに格納されている値が設定されている場合は true
- 属性
注釈
この特性のローカルに格納されている値を設定します。
詳細については、#setValue(byte[]) を参照してください。
このメンバーは非推奨です。 特性値を直接 BluetoothGatt#writeCharacteristic(BluetoothGattCharacteristic, byte[], int)
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetValue(Int32, GattFormat, Int32)
この特性のローカルに格納されている値を設定します。
[Android.Runtime.Register("setValue", "(III)Z", "GetSetValue_IIIHandler")]
public virtual bool SetValue(int value, Android.Bluetooth.GattFormat formatType, int offset);
[<Android.Runtime.Register("setValue", "(III)Z", "GetSetValue_IIIHandler")>]
abstract member SetValue : int * Android.Bluetooth.GattFormat * int -> bool
override this.SetValue : int * Android.Bluetooth.GattFormat * int -> bool
パラメーター
- value
- Int32
この特性の新しい値
- formatType
- GattFormat
値パラメーターの変換に使用される整数形式の型
- offset
- Int32
値を配置するオフセット
返品
ローカルに格納されている値が設定されている場合は true
- 属性
注釈
この特性のローカルに格納されている値を設定します。
詳細については、#setValue(byte[]) を参照してください。
このメンバーは非推奨です。 特性値を直接 BluetoothGatt#writeCharacteristic(BluetoothGattCharacteristic, byte[], int)
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
SetValue(Int32, Int32, GattFormat, Int32)
この特性のローカルに格納されている値を設定します。
[Android.Runtime.Register("setValue", "(IIII)Z", "GetSetValue_IIIIHandler")]
public virtual bool SetValue(int mantissa, int exponent, Android.Bluetooth.GattFormat formatType, int offset);
[<Android.Runtime.Register("setValue", "(IIII)Z", "GetSetValue_IIIIHandler")>]
abstract member SetValue : int * int * Android.Bluetooth.GattFormat * int -> bool
override this.SetValue : int * int * Android.Bluetooth.GattFormat * int -> bool
パラメーター
- mantissa
- Int32
この特性のための仮数
- exponent
- Int32
この特性の指数値
- formatType
- GattFormat
値パラメーターの変換に使用される Float 形式の型
- offset
- Int32
値を配置するオフセット
返品
ローカルに格納されている値が設定されている場合は true
- 属性
注釈
この特性のローカルに格納されている値を設定します。
詳細については、#setValue(byte[]) を参照してください。
このメンバーは非推奨です。 特性値を直接 BluetoothGatt#writeCharacteristic(BluetoothGattCharacteristic, byte[], int)
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。