BluetoothGattDescriptor.SetValue(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Updates the locally stored value of this descriptor.
[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
Parameters
- value
- Byte[]
New value for this descriptor
Returns
true if the locally stored value has been set, false if the requested value could not be stored locally.
- Attributes
Remarks
Updates the locally stored value of this descriptor.
This function modifies the locally stored cached value of this descriptor. To send the value to the remote device, call BluetoothGatt#writeDescriptor
to send the value to the remote device.
This member is deprecated. Pass the descriptor value directly into BluetoothGatt#writeDescriptor(BluetoothGattDescriptor, byte[])
Java documentation for android.bluetooth.BluetoothGattDescriptor.setValue(byte[])
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.