Condividi tramite


BluetoothHidDevice.ReportError(BluetoothDevice, SByte) Metodo

Definizione

Invia il messaggio di handshake di errore come risposta per la richiesta di SET_REPORT non valida da Callback#onSetReport(BluetoothDevice, byte, byte, byte[]).

[Android.Runtime.Register("reportError", "(Landroid/bluetooth/BluetoothDevice;B)Z", "", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool ReportError (Android.Bluetooth.BluetoothDevice? device, sbyte error);
[<Android.Runtime.Register("reportError", "(Landroid/bluetooth/BluetoothDevice;B)Z", "", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.ReportError : Android.Bluetooth.BluetoothDevice * sbyte -> bool

Parametri

error
SByte

Errore da inviare per SET_REPORT tramite HANDSHAKE.

Restituisce

true se il comando viene inviato correttamente; in caso contrario false.

Attributi

Commenti

Documentazione java per android.bluetooth.BluetoothHidDevice.reportError(android.bluetooth.BluetoothDevice, byte).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a