Class BluetoothHid

Definition

Namespace:
Tizen.Network.Bluetooth
Assembly:
Tizen.Network.Bluetooth.dll
API Level:
3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/bluetooth

A class which is used to handle the connection to Bluetooth HID like keyboards and mouse.

C#
Copy
public class BluetoothHid : BluetoothProfile
Inheritance
System.Object
BluetoothHid

Methods

View Source

Connect()

Connects the remote device with the HID service.

Declaration
C#
Copy
public void Connect()
Remarks

The device must be bonded with the remote device by CreateBond(). If connection request succeeds, the HidConnectionStateChanged event will be invoked.

Exceptions
Type Condition
System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when the connection attempt to the remote device fails.

API Level: 3
View Source

Disconnect()

Disconnects the remote device with the HID service.

Declaration
C#
Copy
public void Disconnect()
Exceptions
Type Condition
System.InvalidOperationException

Thrown when the Bluetooth is not enabled or when the disconnection attempt to the remote device fails.

API Level: 3

Events

View Source

HidConnectionStateChanged

The HidConnectionStateChanged event is called when the HID host connection state is changed.

Declaration
C#
Copy
public event EventHandler<HidConnectionStateChangedEventArgs> HidConnectionStateChanged
Event Type
Type Description
System.EventHandler<HidConnectionStateChangedEventArgs>
API Level: 3