Sdílet prostřednictvím


BluetoothGatt.WriteDescriptor Method

Definition

Overloads

WriteDescriptor(BluetoothGattDescriptor)

Write the value of a given descriptor to the associated remote device.

WriteDescriptor(BluetoothGattDescriptor, Byte[])

WriteDescriptor(BluetoothGattDescriptor)

Write the value of a given descriptor to the associated remote device.

[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

Parameters

descriptor
BluetoothGattDescriptor

Descriptor to write to the associated remote device

Returns

true, if the write operation was initiated successfully

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGatt.writeDescriptor(android.bluetooth.BluetoothGattDescriptor).

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.

Applies to

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

Parameters

value
Byte[]

Returns

Attributes

Applies to