語言

BluetoothGattDescriptor.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#writeDescriptor 將值傳送給遠端裝置。

此會員已被棄用。 直接將描述符值傳遞到 BluetoothGatt#writeDescriptor(BluetoothGattDescriptor, byte[])

Java 文件 android.bluetooth.BluetoothGattDescriptor.setValue(byte[])。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於