InputDevice InputDevice Class

Definition

Describes the capabilities of a particular input device.

[Android.Runtime.Register("android/view/InputDevice", ApiSince=9, DoNotGenerateAcw=true)]
public sealed class InputDevice : Java.Lang.Object, Android.OS.IParcelable, IDisposable
type InputDevice = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
Inheritance
InputDeviceInputDevice
Attributes
Implements

Remarks

Android platform documentation

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

KeyboardTypeAlphabetic KeyboardTypeAlphabetic

The keyboard supports a complement of alphabetic keys.

KeyboardTypeNonAlphabetic KeyboardTypeNonAlphabetic

The keyboard is not fully alphabetic.

KeyboardTypeNone KeyboardTypeNone

There is no keyboard.

MotionRangeOrientation MotionRangeOrientation

Android.Views.MotionEvent.AXIS_ORIENTATION

MotionRangePressure MotionRangePressure

Android.Views.MotionEvent.AXIS_PRESSURE

MotionRangeSize MotionRangeSize

Android.Views.MotionEvent.AXIS_SIZE

MotionRangeToolMajor MotionRangeToolMajor

Android.Views.MotionEvent.AXIS_TOOL_MAJOR

MotionRangeToolMinor MotionRangeToolMinor

Android.Views.MotionEvent.AXIS_TOOL_MINOR

MotionRangeTouchMajor MotionRangeTouchMajor

Android.Views.MotionEvent.AXIS_TOUCH_MAJOR

MotionRangeTouchMinor MotionRangeTouchMinor

Android.Views.MotionEvent.AXIS_TOUCH_MINOR

MotionRangeX MotionRangeX

Android.Views.MotionEvent.AXIS_X

MotionRangeY MotionRangeY

Android.Views.MotionEvent.AXIS_Y

SourceAny SourceAny

A special input source constant that is used when filtering input devices to match devices that provide any type of input source.

SourceBluetoothStylus SourceBluetoothStylus
SourceClassButton SourceClassButton

The input source has buttons or keys.

SourceClassJoystick SourceClassJoystick

The input source is a joystick.

SourceClassMask SourceClassMask

A mask for input source classes.

SourceClassNone SourceClassNone

The input source has no class.

SourceClassPointer SourceClassPointer

The input source is a pointing device associated with a display.

SourceClassPosition SourceClassPosition

The input source is an absolute positioning device not associated with a display (unlike SourceClassPointer).

SourceClassTrackball SourceClassTrackball

The input source is a trackball navigation device.

SourceDpad SourceDpad

The input source is a DPad.

SourceGamepad SourceGamepad

The input source is a game pad.

SourceHdmi SourceHdmi

The input source is a device connected through HDMI-based bus.

SourceJoystick SourceJoystick

The input source is a joystick.

SourceKeyboard SourceKeyboard

The input source is a keyboard.

SourceMouse SourceMouse

The input source is a mouse pointing device.

SourceMouseRelative SourceMouseRelative
SourceRotaryEncoder SourceRotaryEncoder
SourceStylus SourceStylus

The input source is a stylus pointing device.

SourceTouchNavigation SourceTouchNavigation

The input source is a touch device whose motions should be interpreted as navigation events.

SourceTouchpad SourceTouchpad

The input source is a touch pad or digitizer tablet that is not associated with a display (unlike SourceTouchscreen).

SourceTouchscreen SourceTouchscreen

The input source is a touch screen pointing device.

SourceTrackball SourceTrackball

The input source is a trackball.

SourceUnknown SourceUnknown

The input source is unknown.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
ControllerNumber ControllerNumber

The controller number for a given input device.

Creator Creator
Descriptor Descriptor

Gets the input device descriptor, which is a stable identifier for an input device.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasMicrophone HasMicrophone
Id Id

Gets the input device id.

IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsEnabled IsEnabled
IsVirtual IsVirtual

Android.Views.KeyCharacterMap.VIRTUAL_KEYBOARD

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
KeyboardType KeyboardType

Gets the keyboard type.

KeyCharacterMap KeyCharacterMap

Gets the key character map associated with this input device.

MotionRanges MotionRanges

Gets the ranges for all axes supported by the device.

Name Name

Gets the name of this input device.

PeerReference PeerReference Inherited from Object
ProductId ProductId

Gets the product id for the given device, if available.

Sources Sources

Gets the input sources supported by this input device as a combined bitfield.

ThresholdClass ThresholdClass

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

(Inherited from Object)
ThresholdType ThresholdType

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

(Inherited from Object)
VendorId VendorId

Gets the vendor id for the given device, if available.

Vibrator Vibrator

Gets the vibrator service associated with the device, if there is one.

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
DescribeContents() DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

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

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetDevice(Int32) GetDevice(Int32)

Gets information about the input device with the specified id.

GetDeviceIds() GetDeviceIds()

Gets the ids of all input devices in the system.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetMotionRange(Axis) GetMotionRange(Axis)

Gets information about the range of values for a particular MotionEvent axis.

GetMotionRange(Axis, InputSourceType) GetMotionRange(Axis, InputSourceType)

Gets information about the range of values for a particular MotionEvent axis used by a particular source on the device.

GetMotionRange(Int32) GetMotionRange(Int32)
HasKeys(Int32[]) HasKeys(Int32[])
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SupportsSource(InputSourceType) SupportsSource(InputSourceType)

Determines whether the input device supports the given source or sources.

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

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags) WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to