BluetoothHidDevice Class

Definition

Provides the public APIs to control the Bluetooth HID Device profile.

[Android.Runtime.Register("android/bluetooth/BluetoothHidDevice", ApiSince=28, DoNotGenerateAcw=true)]
public sealed class BluetoothHidDevice : Java.Lang.Object, Android.Bluetooth.IBluetoothProfile, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/bluetooth/BluetoothHidDevice", ApiSince=28, DoNotGenerateAcw=true)>]
type BluetoothHidDevice = class
    inherit Object
    interface IBluetoothProfile
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
BluetoothHidDevice
Attributes
Implements

Remarks

Java documentation for android.bluetooth.BluetoothHidDevice.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fields

ActionConnectionStateChanged

Intent used to broadcast the change in connection state of the Input Host profile.

ErrorRspInvalidParam

Constant representing error response for Set Report due to "invalid parameter".

ErrorRspInvalidRptId

Constant representing error response for Set Report due to "invalid report ID".

ErrorRspNotReady

Constant representing error response for Set Report due to "not ready".

ErrorRspSuccess

Constant representing success response for Set Report.

ErrorRspUnknown

Constant representing error response for Set Report with unknown reason.

ErrorRspUnsupportedReq

Constant representing error response for Set Report due to "unsupported request".

ProtocolBootMode

Constant representing boot protocol mode used set by host.

ProtocolReportMode

Constant representing report protocol mode used set by host.

ReportTypeFeature

Constant representing HID Feature Report type.

ReportTypeInput

Constant representing HID Input Report type.

ReportTypeOutput

Constant representing HID Output Report type.

Subclass1Combo

Constant representing combo keyboard and mouse subclass.

Subclass1Keyboard

Constant representing keyboard subclass.

Subclass1Mouse

Constant representing mouse subclass.

Subclass1None

Constant representing unspecified HID device subclass.

Subclass2CardReader

Constant representing card reader subclass.

Subclass2DigitizerTablet

Constant representing digitizer tablet subclass.

Subclass2Gamepad

Constant representing gamepad subclass.

Subclass2Joystick

Constant representing joystick subclass.

Subclass2RemoteControl

Constant representing remote control subclass.

Subclass2SensingDevice

Constant representing sensing device subclass.

Subclass2Uncategorized

Constant representing uncategorized HID device subclass.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ConnectedDevices

To be added

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Connect(BluetoothDevice)

Initiates connection to host which is currently paired with this device.

Disconnect(BluetoothDevice)

Disconnects from currently connected host.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetConnectionState(BluetoothDevice)

To be added

GetDevicesMatchingConnectionStates(ProfileState[])

To be added

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
RegisterApp(BluetoothHidDeviceAppSdpSettings, BluetoothHidDeviceAppQosSettings, BluetoothHidDeviceAppQosSettings, IExecutor, BluetoothHidDevice+Callback)

Registers application to be used for HID device.

ReplyReport(BluetoothDevice, SByte, SByte, Byte[])

Sends report to remote host as reply for GET_REPORT request from Callback#onGetReport(BluetoothDevice, byte, byte, int).

ReportError(BluetoothDevice, SByte)

Sends error handshake message as reply for invalid SET_REPORT request from Callback#onSetReport(BluetoothDevice, byte, byte, byte[]).

SendReport(BluetoothDevice, Int32, Byte[])

Sends report to remote host using interrupt channel.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterApp()

Unregisters application.

UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to