Partager via


BluetoothHidDevice.ReportError(BluetoothDevice, SByte) Méthode

Définition

Envoie le message d’établissement d’une liaison d’erreur comme réponse pour une demande de SET_REPORT non valide à partir de 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

Paramètres

error
SByte

Erreur à envoyer pour SET_REPORT via HANDSHAKE.

Retours

true si la commande est correctement envoyée ; sinon false.

Attributs

Remarques

Documentation Java pour android.bluetooth.BluetoothHidDevice.reportError(android.bluetooth.BluetoothDevice, byte).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à