Class BluetoothHidDevice

    Definition

    Namespace:
    Tizen.Network.Bluetooth
    Assembly:
    Tizen.Network.Bluetooth.dll

    A class which is used to provide the HID Device role.

    public class BluetoothHidDevice : BluetoothProfile
    Inheritance
    object
    BluetoothProfile
    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
    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.

    View Source

    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.

    View Source

    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.

    View Source

    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.

    View Source

    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 Source

    ConnectionStateChanged

    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.

    View Source

    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.

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX