Class BluetoothHidDevice
Definition
- Namespace:
- Tizen.Network.Bluetooth
- Assembly:
- Tizen.Network.Bluetooth.dll
- API Level:
- 6
A class which is used to provide the HID Device role.
C#Copypublic 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
Declaration
C#Copypublic Task ConnectAsync()
Returns
Type | Description |
---|---|
Task | A task indicating whether the method is done or not. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.hid_device
Declaration
C#Copypublic Task DisconnectAsync()
Returns
Type | Description |
---|---|
Task | A task indicating whether the method is done or not. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.hid_device
ReplyToReport(BluetoothHidHeaderType, BluetoothHidParamType, Byte[])
Replies to reports from the HID Host.
Declaration
C#Copypublic 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. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.hid_device
Declaration
C#Copypublic void SendKeyEvent(BluetoothHidKeyData keyData)
Parameters
Type | Name | Description |
---|---|---|
BluetoothHidKeyData | keyData | The key data to be passed to the remote device. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.hid_device
Declaration
C#Copypublic void SendMouseEvent(BluetoothHidMouseData mouseData)
Parameters
Type | Name | Description |
---|---|---|
BluetoothHidMouseData | mouseData | The mouse data to be passed to the remote device. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/bluetooth
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.hid_device
Events
ConnectionStateChanged
The ConnectionStateChanged event is called when the HID device connection state is changed.
Declaration
C#Copypublic event EventHandler<HidDeviceConnectionStateChangedEventArgs> ConnectionStateChanged
Event Type
Type | Description |
---|---|
EventHandler<HidDeviceConnectionStateChangedEventArgs> |
API Level: 6
DataReceived
The DataReceived event is called when the device receives data from the HID Host.
Declaration
C#Copypublic event EventHandler<HidDeviceDataReceivedEventArgs> DataReceived
Event Type
Type | Description |
---|---|
EventHandler<HidDeviceDataReceivedEventArgs> |