Langue

BluetoothHidDevice.Callback.OnSetReport Méthode

Définition

Rappel appelé lorsque SET_REPORT est reçu de l’hôte distant.

[Android.Runtime.Register("onSetReport", "(Landroid/bluetooth/BluetoothDevice;BB[B)V", "GetOnSetReport_Landroid_bluetooth_BluetoothDevice_BBarrayBHandler", ApiSince=28)]
public virtual void OnSetReport(Android.Bluetooth.BluetoothDevice? device, sbyte type, sbyte id, byte[]? data);
[<Android.Runtime.Register("onSetReport", "(Landroid/bluetooth/BluetoothDevice;BB[B)V", "GetOnSetReport_Landroid_bluetooth_BluetoothDevice_BBarrayBHandler", ApiSince=28)>]
abstract member OnSetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * byte[] -> unit
override this.OnSetReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * byte[] -> unit

Paramètres

type
SByte

Type de rapport.

id
SByte

ID de rapport.

data
Byte[]

Données du rapport.

Attributs

Remarques

Rappel appelé lorsque SET_REPORT est reçu de l’hôte distant. Si les données reçues ne sont pas valides, l’application doit répondre avec BluetoothHidDevice#reportError(BluetoothDevice, byte).

Java documentation pour android.bluetooth.BluetoothHidDevice.Callback.onSetReport(android.bluetooth.BluetoothDevice, byte, byte, byte[]).

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

S’applique à