Class BluetoothHidDevice
Definition
- Assembly:
- Tizen.Network.Bluetooth.dll
A class which is used to provide the HID Device role.
public class BluetoothHidDevice : BluetoothProfile
- Inheritance
Remarks
In HID profile, there are two roles Host and Device. The Host(BluetoothHid) is a device that uses or requests the service of a HID. The Device(BluetoothHidDevice) is a device that provides the service of human data input/output to/from the host.
Methods
View SourceConnectAsync()
Connects to the remote device asynchronously.
Declaration
public Task ConnectAsync()
Returns
Type | Description |
---|---|
Task | A task indicating whether the method is done or not. |
Remarks
In HID profile, there are two roles Host and Device. The Host(BluetoothHid) is a device that uses or requests the service of a HID. The Device(BluetoothHidDevice) is a device that provides the service of human data input/output to/from the host.
DisconnectAsync()
Disconnects to the remote device asynchronously.
Declaration
public Task DisconnectAsync()
Returns
Type | Description |
---|---|
Task | A task indicating whether the method is done or not. |
Remarks
In HID profile, there are two roles Host and Device. The Host(BluetoothHid) is a device that uses or requests the service of a HID. The Device(BluetoothHidDevice) is a device that provides the service of human data input/output to/from the host.
ReplyToReport(BluetoothHidHeaderType, BluetoothHidParamType, byte[])
Replies to reports from the HID Host.
Declaration
public void ReplyToReport(BluetoothHidHeaderType headerType, BluetoothHidParamType paramType, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
BluetoothHidHeaderType | headerType | The header type to be there in response. |
BluetoothHidParamType | paramType | The Parameter type to be there in response. |
byte[] | data | Data to be present in data payload of response. |
Remarks
In HID profile, there are two roles Host and Device. The Host(BluetoothHid) is a device that uses or requests the service of a HID. The Device(BluetoothHidDevice) is a device that provides the service of human data input/output to/from the host.
SendKeyEvent(BluetoothHidKeyData)
Sends the key event data to the remote device.
Declaration
public void SendKeyEvent(BluetoothHidKeyData keyData)
Parameters
Type | Name | Description |
---|---|---|
BluetoothHidKeyData | keyData | The key data to be passed to the remote device. |
Remarks
In HID profile, there are two roles Host and Device. The Host(BluetoothHid) is a device that uses or requests the service of a HID. The Device(BluetoothHidDevice) is a device that provides the service of human data input/output to/from the host.
SendMouseEvent(BluetoothHidMouseData)
Sends the mouse event data to the remote device.
Declaration
public void SendMouseEvent(BluetoothHidMouseData mouseData)
Parameters
Type | Name | Description |
---|---|---|
BluetoothHidMouseData | mouseData | The mouse data to be passed to the remote device. |
Remarks
In HID profile, there are two roles Host and Device. The Host(BluetoothHid) is a device that uses or requests the service of a HID. The Device(BluetoothHidDevice) is a device that provides the service of human data input/output to/from the host.
Events
View SourceConnectionStateChanged
The ConnectionStateChanged event is called when the HID device connection state is changed.
Declaration
public event EventHandler<HidDeviceConnectionStateChangedEventArgs> ConnectionStateChanged
Event Type
Type | Description |
---|---|
EventHandler<><HidDeviceConnectionStateChangedEventArgs> |
Remarks
In HID profile, there are two roles Host and Device. The Host(BluetoothHid) is a device that uses or requests the service of a HID. The Device(BluetoothHidDevice) is a device that provides the service of human data input/output to/from the host.
DataReceived
The DataReceived event is called when the device receives data from the HID Host.
Declaration
public event EventHandler<HidDeviceDataReceivedEventArgs> DataReceived
Event Type
Type | Description |
---|---|
EventHandler<><HidDeviceDataReceivedEventArgs> |
Remarks
In HID profile, there are two roles Host and Device. The Host(BluetoothHid) is a device that uses or requests the service of a HID. The Device(BluetoothHidDevice) is a device that provides the service of human data input/output to/from the host.