BluetoothGatt.WriteCharacteristic メソッド

定義

オーバーロード

WriteCharacteristic(BluetoothGattCharacteristic)
古い.

指定された特性とその値を、関連付けられているリモート デバイスに書き込みます。

WriteCharacteristic(BluetoothGattCharacteristic, Byte[], Int32)

WriteCharacteristic(BluetoothGattCharacteristic)

注意事項

deprecated

指定された特性とその値を、関連付けられているリモート デバイスに書き込みます。

[Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
[System.Obsolete("deprecated")]
public bool WriteCharacteristic (Android.Bluetooth.BluetoothGattCharacteristic? characteristic);
[<Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
[<System.Obsolete("deprecated")>]
member this.WriteCharacteristic : Android.Bluetooth.BluetoothGattCharacteristic -> bool

パラメーター

characteristic
BluetoothGattCharacteristic

リモート デバイスで書き込む特性

戻り値

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

属性

注釈

android.bluetooth.BluetoothGatt.writeCharacteristic(android.bluetooth.BluetoothGattCharacteristic)Java ドキュメント。

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

適用対象

WriteCharacteristic(BluetoothGattCharacteristic, Byte[], Int32)

[Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;[BI)I", "", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public int WriteCharacteristic (Android.Bluetooth.BluetoothGattCharacteristic characteristic, byte[] value, int writeType);
[<Android.Runtime.Register("writeCharacteristic", "(Landroid/bluetooth/BluetoothGattCharacteristic;[BI)I", "", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.WriteCharacteristic : Android.Bluetooth.BluetoothGattCharacteristic * byte[] * int -> int

パラメーター

value
Byte[]
writeType
Int32

戻り値

属性

適用対象