BluetoothGatt.ReadCharacteristic(BluetoothGattCharacteristic) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
関連付けられているリモート デバイスから要求された特性を読み取ります。
[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) コールバックによって報告されます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。