다음을 통해 공유


BluetoothGattCharacteristic.SetValue 메서드

정의

오버로드

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입니다.

특성

설명

에 대한 android.bluetooth.BluetoothGattCharacteristic.setValue(byte[])Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

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입니다.

특성

설명

에 대한 android.bluetooth.BluetoothGattCharacteristic.setValue(java.lang.String)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

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입니다.

특성

설명

에 대한 android.bluetooth.BluetoothGattCharacteristic.setValue(int, int, int)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

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입니다.

특성

설명

에 대한 android.bluetooth.BluetoothGattCharacteristic.setValue(int, int, int, int)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상