共用方式為


BluetoothHidDevice.ReplyReport(BluetoothDevice, SByte, SByte, Byte[]) Method

Definition

Sends report to remote host as reply for GET_REPORT request from Callback#onGetReport(BluetoothDevice, byte, byte, int).

[Android.Runtime.Register("replyReport", "(Landroid/bluetooth/BluetoothDevice;BB[B)Z", "", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool ReplyReport (Android.Bluetooth.BluetoothDevice? device, sbyte type, sbyte id, byte[]? data);
[<Android.Runtime.Register("replyReport", "(Landroid/bluetooth/BluetoothDevice;BB[B)Z", "", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.ReplyReport : Android.Bluetooth.BluetoothDevice * sbyte * sbyte * byte[] -> bool

Parameters

type
SByte

Report Type, as in request.

id
SByte

Report Id, as in request.

data
Byte[]

Report data, not including Report Id.

Returns

true if the command is successfully sent; otherwise false.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothHidDevice.replyReport(android.bluetooth.BluetoothDevice, byte, byte, byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to