BluetoothGatt.ReadCharacteristic(BluetoothGattCharacteristic) メソッド

定義

関連付けられているリモート デバイスから要求された特性を読み取ります。

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

パラメーター

characteristic
BluetoothGattCharacteristic

リモート デバイスから読み取る特性

返品

読み取り操作が正常に開始された場合は true

属性

注釈

関連付けられているリモート デバイスから要求された特性を読み取ります。

これは非同期操作です。 読み取り操作の結果は、 BluetoothGattCallback#onCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, byte[], int) コールバックによって報告されます。

Javaドキュメント。

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

適用対象