Поделиться через


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, если операция записи была успешно инициирована

Атрибуты

Комментарии

Документация по Java для android.bluetooth.BluetoothGatt.writeDescriptor(android.bluetooth.BluetoothGattDescriptor).

Части этой страницы — это изменения на основе работы, созданной и общей проектом с открытым исходным кодом Android и используемой в соответствии с условиями, описанными в лицензии Creative Commons 2.5 Attribution.

Применяется к

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[]

Возвращаемое значение

Атрибуты

Применяется к