W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
java.lang.Object
|---ohos.multimodalinput.event.MultimodalEvent
|---|---ohos.multimodalinput.event.KeyEvent
|---|---|---ohos.multimodalinput.event.BuiltinKeyEvent
public abstract class BuiltinKeyEvent
extends KeyEvent
定義內(nèi)部輸入設(shè)備的按鍵事件。
所有內(nèi)部輸入設(shè)備的按鍵事件,如電視上的按鈕、車輛、旋鈕等,都由該類定義。 操作系統(tǒng)統(tǒng)一管理內(nèi)部輸入設(shè)備的按鍵事件。 已為此類及其子類中定義的鍵碼授予權(quán)限。 這意味著訪問(wèn)關(guān)鍵事件需要相應(yīng)的權(quán)限。
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 |
構(gòu)造函數(shù) | 描述 |
---|---|
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()
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: