共用方式為


BluetoothGatt.WriteDescriptor 方法

定義

多載

WriteDescriptor(BluetoothGattDescriptor)

將指定描述元的值寫入相關聯遠端裝置。

WriteDescriptor(BluetoothGattDescriptor, Byte[])

WriteDescriptor(BluetoothGattDescriptor)

將指定描述元的值寫入相關聯遠端裝置。

[Android.Runtime.Register("writeDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool WriteDescriptor (Android.Bluetooth.BluetoothGattDescriptor? descriptor);
[<Android.Runtime.Register("writeDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.WriteDescriptor : Android.Bluetooth.BluetoothGattDescriptor -> bool

參數

descriptor
BluetoothGattDescriptor

要寫入相關聯遠端裝置的描述項

傳回

如果成功起始寫入作業,則為 true

屬性

備註

android.bluetooth.BluetoothGatt.writeDescriptor(android.bluetooth.BluetoothGattDescriptor)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

WriteDescriptor(BluetoothGattDescriptor, Byte[])

[Android.Runtime.Register("writeDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;[B)I", "", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public int WriteDescriptor (Android.Bluetooth.BluetoothGattDescriptor descriptor, byte[] value);
[<Android.Runtime.Register("writeDescriptor", "(Landroid/bluetooth/BluetoothGattDescriptor;[B)I", "", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.WriteDescriptor : Android.Bluetooth.BluetoothGattDescriptor * byte[] -> int

參數

value
Byte[]

傳回

屬性

適用於