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#
Copy
public class BluetoothHidDevice : BluetoothProfile
Inheritance
BluetoothHidDevice
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 Source

ConnectAsync()

Connects to the remote device asynchronously.

Declaration
C#
Copy
public 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
View Source

DisconnectAsync()

Disconnects to the remote device asynchronously.

Declaration
C#
Copy
public 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
View Source

ReplyToReport(BluetoothHidHeaderType, BluetoothHidParamType, Byte[])

Replies to reports from the HID Host.

Declaration
C#
Copy
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.

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
View Source

SendKeyEvent(BluetoothHidKeyData)

Sends the key event data to the remote device.

Declaration
C#
Copy
public 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
View Source

SendMouseEvent(BluetoothHidMouseData)

Sends the mouse event data to the remote device.

Declaration
C#
Copy
public 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

View Source

ConnectionStateChanged

The ConnectionStateChanged event is called when the HID device connection state is changed.

Declaration
C#
Copy
public event EventHandler<HidDeviceConnectionStateChangedEventArgs> ConnectionStateChanged
Event Type
Type Description
EventHandler<HidDeviceConnectionStateChangedEventArgs>
API Level: 6
View Source

DataReceived

The DataReceived event is called when the device receives data from the HID Host.

Declaration
C#
Copy
public event EventHandler<HidDeviceDataReceivedEventArgs> DataReceived
Event Type
Type Description
EventHandler<HidDeviceDataReceivedEventArgs>
API Level: 6
Feature: http://tizen.org/feature/network.bluetoothhttp://tizen.org/feature/network.bluetooth.hid_device

Extension Methods