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 |
public BuiltinKeyEvent()
备案信息: 粤ICP备15087711号-2
Copyright © 2008-2024 啊嘎哇在线工具箱 All Rights.
本站所有资料来源于网络,版权归原作者所有,仅作学习交流使用,如不慎侵犯了您的权利,请联系我们。