java.lang.Object | |
↳ | android.view.InputEvent |
Known Direct Subclasses |
Common base class for input events.
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
||||||||||
|
Gets the device that this event came from.
|
||||||||||
|
Gets the id for the device that this event came from.
|
||||||||||
|
Retrieve the time this event occurred,
in the
uptimeMillis()
time base.
|
||||||||||
|
Gets the source of the event.
|
||||||||||
|
Determines whether the event is from the given source.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.os.Parcelable
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Gets the device that this event came from.
Gets the id for the device that this event came from. An id of zero indicates that the event didn't come from a physical device and maps to the default keymap. The other numbers are arbitrary and you shouldn't depend on the values.
Retrieve the time this event occurred,
in the
uptimeMillis()
time base.
uptimeMillis()
time base.
Determines whether the event is from the given source.
source |
The input source to check against. This can be a specific device type, such as
SOURCE_TOUCH_NAVIGATION
, or a more generic device class, such as
SOURCE_CLASS_POINTER
.
|
---|