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

属性

注釈

特定の記述子の値を、関連付けられているリモート デバイスに書き込みます。

BluetoothGattCallback#onDescriptorWriteコールバックがトリガーされ、書き込み操作の結果が報告されます。

このメンバーは非推奨です。 基になるフィールドがこのメソッドの外部で変更される可能性があるBluetoothGattDescriptor オブジェクトに依存するため、BluetoothGatt#writeDescriptor(BluetoothGattDescriptor, byte[])はメモリセーフではないため、使用してください。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

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

パラメーター

descriptor
BluetoothGattDescriptor

関連付けられているリモート デバイスに書き込む記述子

value
Byte[]

返品

書き込み操作が正常に開始された場合は true

属性

注釈

特定の記述子の値を、関連付けられているリモート デバイスに書き込みます。

BluetoothGattCallback#onDescriptorWriteコールバックがトリガーされ、書き込み操作の結果が報告されます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象