Stay organized with collections
Save and categorize content based on your preferences.
public
final
class
CarInputManager
extends Object
java.lang.Object
|
↳ |
android.car.input.CarInputManager
|
This API allows capturing selected input events.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public static final int INPUT_TYPE_CUSTOM_INPUT_EVENT
This is for HW_CUSTOM_INPUT
events.
Constant Value:
200
(0x000000c8)
public static final int INPUT_TYPE_NAVIGATE_KEYS
This is for all KeyEvent#KEYCODE_NAVIGATE_*
keys and KeyEvent#KEYCODE_BACK
.
Constant Value:
101
(0x00000065)
public static final int INPUT_TYPE_NONE
This is for displays that don't support any input type
Constant Value:
-1
(0xffffffff)
public static final int INPUT_TYPE_ROTARY_NAVIGATION
This covers rotary input device for navigation.
Constant Value:
10
(0x0000000a)
public static final int INPUT_TYPE_ROTARY_VOLUME
Volume knob.
Constant Value:
11
(0x0000000b)
public static final int INPUT_TYPE_SYSTEM_NAVIGATE_KEYS
This is for all KeyEvent#KEYCODE_SYSTEM_NAVIGATE_*
keys.
Constant Value:
102
(0x00000066)
public static final int INPUT_TYPE_TOUCH_SCREEN
This is for touch mode input type.
Constant Value:
210
(0x000000d2)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-17 UTC."],[],[],null,["# CarInputManager\n\nSummary: [Constants](#constants) \\| [Inherited Methods](#inhmethods) \n\nCarInputManager\n===============\n\n\n`\npublic\n\nfinal\n\nclass\nCarInputManager\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|-----------------------------------|\n| java.lang.Object ||\n| ↳ | android.car.input.CarInputManager |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThis API allows capturing selected input events.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [INPUT_TYPE_CUSTOM_INPUT_EVENT](/reference/android/car/input/CarInputManager#INPUT_TYPE_CUSTOM_INPUT_EVENT) This is for `HW_CUSTOM_INPUT` events. |\n| `int` | [INPUT_TYPE_DPAD_KEYS](/reference/android/car/input/CarInputManager#INPUT_TYPE_DPAD_KEYS) This is the group of keys for DPAD. |\n| `int` | [INPUT_TYPE_NAVIGATE_KEYS](/reference/android/car/input/CarInputManager#INPUT_TYPE_NAVIGATE_KEYS) This is for all `KeyEvent#KEYCODE_NAVIGATE_*` keys and [KeyEvent#KEYCODE_BACK](/reference/android/view/KeyEvent#KEYCODE_BACK). |\n| `int` | [INPUT_TYPE_NONE](/reference/android/car/input/CarInputManager#INPUT_TYPE_NONE) This is for displays that don't support any input type |\n| `int` | [INPUT_TYPE_ROTARY_NAVIGATION](/reference/android/car/input/CarInputManager#INPUT_TYPE_ROTARY_NAVIGATION) This covers rotary input device for navigation. |\n| `int` | [INPUT_TYPE_ROTARY_VOLUME](/reference/android/car/input/CarInputManager#INPUT_TYPE_ROTARY_VOLUME) Volume knob. |\n| `int` | [INPUT_TYPE_SYSTEM_NAVIGATE_KEYS](/reference/android/car/input/CarInputManager#INPUT_TYPE_SYSTEM_NAVIGATE_KEYS) This is for all `KeyEvent#KEYCODE_SYSTEM_NAVIGATE_*` keys. |\n| `int` | [INPUT_TYPE_TOUCH_SCREEN](/reference/android/car/input/CarInputManager#INPUT_TYPE_TOUCH_SCREEN) This is for touch mode input type. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nConstants\n---------\n\n### INPUT_TYPE_CUSTOM_INPUT_EVENT\n\n```\npublic static final int INPUT_TYPE_CUSTOM_INPUT_EVENT\n```\n\nThis is for `HW_CUSTOM_INPUT` events.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n200\n(0x000000c8)\n\n\n### INPUT_TYPE_DPAD_KEYS\n\n```\npublic static final int INPUT_TYPE_DPAD_KEYS\n```\n\nThis is the group of keys for DPAD.\nIncluded key events are: [KeyEvent#KEYCODE_DPAD_UP](/reference/android/view/KeyEvent#KEYCODE_DPAD_UP),\n[KeyEvent#KEYCODE_DPAD_DOWN](/reference/android/view/KeyEvent#KEYCODE_DPAD_DOWN), [KeyEvent#KEYCODE_DPAD_LEFT](/reference/android/view/KeyEvent#KEYCODE_DPAD_LEFT),\n[KeyEvent#KEYCODE_DPAD_RIGHT](/reference/android/view/KeyEvent#KEYCODE_DPAD_RIGHT), [KeyEvent#KEYCODE_DPAD_CENTER](/reference/android/view/KeyEvent#KEYCODE_DPAD_CENTER),\n[KeyEvent#KEYCODE_DPAD_DOWN_LEFT](/reference/android/view/KeyEvent#KEYCODE_DPAD_DOWN_LEFT), [KeyEvent#KEYCODE_DPAD_DOWN_RIGHT](/reference/android/view/KeyEvent#KEYCODE_DPAD_DOWN_RIGHT),\n[KeyEvent#KEYCODE_DPAD_UP_LEFT](/reference/android/view/KeyEvent#KEYCODE_DPAD_UP_LEFT), [KeyEvent#KEYCODE_DPAD_UP_RIGHT](/reference/android/view/KeyEvent#KEYCODE_DPAD_UP_RIGHT)\n\n\u003cbr /\u003e\n\nConstant Value:\n\n100\n(0x00000064)\n\n\n### INPUT_TYPE_NAVIGATE_KEYS\n\n```\npublic static final int INPUT_TYPE_NAVIGATE_KEYS\n```\n\nThis is for all `KeyEvent#KEYCODE_NAVIGATE_*` keys and [KeyEvent#KEYCODE_BACK](/reference/android/view/KeyEvent#KEYCODE_BACK).\n\n\u003cbr /\u003e\n\nConstant Value:\n\n101\n(0x00000065)\n\n\n### INPUT_TYPE_NONE\n\n```\npublic static final int INPUT_TYPE_NONE\n```\n\nThis is for displays that don't support any input type\n\n\u003cbr /\u003e\n\nConstant Value:\n\n-1\n(0xffffffff)\n\n\n### INPUT_TYPE_ROTARY_NAVIGATION\n\n```\npublic static final int INPUT_TYPE_ROTARY_NAVIGATION\n```\n\nThis covers rotary input device for navigation.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n10\n(0x0000000a)\n\n\n### INPUT_TYPE_ROTARY_VOLUME\n\n```\npublic static final int INPUT_TYPE_ROTARY_VOLUME\n```\n\nVolume knob.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n11\n(0x0000000b)\n\n\n### INPUT_TYPE_SYSTEM_NAVIGATE_KEYS\n\n```\npublic static final int INPUT_TYPE_SYSTEM_NAVIGATE_KEYS\n```\n\nThis is for all `KeyEvent#KEYCODE_SYSTEM_NAVIGATE_*` keys.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n102\n(0x00000066)\n\n\n### INPUT_TYPE_TOUCH_SCREEN\n\n```\npublic static final int INPUT_TYPE_TOUCH_SCREEN\n```\n\nThis is for touch mode input type.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n210\n(0x000000d2)"]]