鸿蒙OS BuiltinKeyEvent
2022-10-13 11:24 更新
BuiltinKeyEvent
java.lang.Object
|---ohos.multimodalinput.event.MultimodalEvent
|---|---ohos.multimodalinput.event.KeyEvent
|---|---|---ohos.multimodalinput.event.BuiltinKeyEvent
public abstract class BuiltinKeyEvent
extends KeyEvent
定义内部输入设备的按键事件。
所有内部输入设备的按键事件,如电视上的按钮、车辆、旋钮等,都由该类定义。 操作系统统一管理内部输入设备的按键事件。 已为此类及其子类中定义的键码授予权限。 这意味着访问关键事件需要相应的权限。
Since:
1
嵌套类摘要
从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 |
---|
Sequenceable.ProducerT |
字段摘要
从类 ohos.multimodalinput.event.KeyEvent 继承的字段 |
---|
KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_A, KEY_ALT_LEFT, KEY_ALT_RIGHT, KEY_APOSTROPHE, KEY_AT, KEY_B, KEY_BACK, KEY_BACKSLASH, KEY_BREAK, KEY_BRIGHTNESS_DOWN, KEY_BRIGHTNESS_UP, KEY_C, KEY_CALL, KEY_CAMERA, KEY_CAPS_LOCK, KEY_CLEAR, KEY_COMMA, KEY_CTRL_LEFT, KEY_CTRL_RIGHT, KEY_CUSTOM1, KEY_D, KEY_DEL, KEY_DPAD_CENTER, KEY_DPAD_DOWN, KEY_DPAD_LEFT, KEY_DPAD_RIGHT, KEY_DPAD_UP, KEY_E, KEY_ENDCALL, KEY_ENTER, KEY_ENVELOPE, KEY_EQUALS, KEY_ESCAPE, KEY_EXPLORER, KEY_F, KEY_F1, KEY_F10, KEY_F11, KEY_F12, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6, KEY_F7, KEY_F8, KEY_F9, KEY_FOCUS, KEY_FORWARD, KEY_FORWARD_DEL, KEY_FUNCTION, KEY_G, KEY_GRAVE, KEY_H, KEY_HEADSETHOOK, KEY_HOME, KEY_I, KEY_INSERT, KEY_J, KEY_K, KEY_L, KEY_LAUNCHER_MENU, KEY_LEFT_BRACKET, KEY_LEFT_KNOB, KEY_LEFT_KNOB_ROLL_DOWN, KEY_LEFT_KNOB_ROLL_UP, KEY_M, KEY_MEDIA_CLOSE, KEY_MEDIA_EJECT, KEY_MEDIA_FAST_FORWARD, KEY_MEDIA_NEXT, KEY_MEDIA_PAUSE, KEY_MEDIA_PLAY, KEY_MEDIA_PLAY_PAUSE, KEY_MEDIA_PREVIOUS, KEY_MEDIA_RECORD, KEY_MEDIA_REWIND, KEY_MEDIA_STOP, KEY_MENU, KEY_META_LEFT, KEY_META_RIGHT, KEY_MINUS, KEY_MOVE_END, KEY_MOVE_HOME, KEY_N, KEY_NOTIFICATION, KEY_NUM_LOCK, KEY_NUMPAD_0, KEY_NUMPAD_1, KEY_NUMPAD_2, KEY_NUMPAD_3, KEY_NUMPAD_4, KEY_NUMPAD_5, KEY_NUMPAD_6, KEY_NUMPAD_7, KEY_NUMPAD_8, KEY_NUMPAD_9, KEY_NUMPAD_ADD, KEY_NUMPAD_COMMA, KEY_NUMPAD_DIVIDE, KEY_NUMPAD_DOT, KEY_NUMPAD_ENTER, KEY_NUMPAD_EQUALS, KEY_NUMPAD_LEFT_PAREN, KEY_NUMPAD_MULTIPLY, KEY_NUMPAD_RIGHT_PAREN, KEY_NUMPAD_SUBTRACT, KEY_O, KEY_P, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_PERIOD, KEY_PLUS, KEY_POUND, KEY_POWER, KEY_PRESSED, KEY_Q, KEY_R, KEY_RELEASED, KEY_RIGHT_BRACKET, KEY_RIGHT_KNOB, KEY_RIGHT_KNOB_ROLL_DOWN, KEY_RIGHT_KNOB_ROLL_UP, KEY_S, KEY_SCROLL_LOCK, KEY_SEARCH, KEY_SEMICOLON, KEY_SHIFT_LEFT, KEY_SHIFT_RIGHT, KEY_SLASH, KEY_SPACE, KEY_STAR, KEY_SYM, KEY_SYSRQ, KEY_T, KEY_TAB, KEY_U, KEY_UNKNOWN, KEY_V, KEY_VOICE_ASSISTANT, KEY_VOICE_SOURCE_SWITCH, KEY_VOLUME_DOWN, KEY_VOLUME_MUTE, KEY_VOLUME_UP, KEY_W, KEY_WEAR_1, KEY_X, KEY_Y, KEY_Z, NOW_MAX_KEY |
从类 ohos.multimodalinput.event.MultimodalEvent 继承的字段 |
---|
BUILTIN_KEY, DEFAULT_TYPE, highLevelEvent, KEYBOARD, MOUSE, ROTATION, SPEECH, STYLUS, TOUCH_PANEL, UNSUPPORTED_DEVICE, uuid |
构造函数摘要
构造函数 | 描述 |
---|---|
BuiltinKeyEvent() |
方法总结
从类 ohos.multimodalinput.event.KeyEvent 继承的方法 |
---|
getKeyCode, getKeyDownDuration, getMaxKeyCode, isKeyDown |
从类 ohos.multimodalinput.event.MultimodalEvent 继承的方法 |
---|
getDeviceId, getInputDeviceId, getOccurredTime, getSourceDevice, getUuid, isSameEvent, marshalling, unmarshalling |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
从接口 ohos.utils.Sequenceable 继承的方法 |
---|
hasFileDescriptor |
构造函数详细信息
BuiltinKeyEvent
public BuiltinKeyEvent()
以上内容是否对您有帮助:
更多建议: