harmony 鸿蒙Native XComponent

2025-06-12 浏览 (1)

Native XComponent

Overview

Describes the surface and touch event held by the ArkUI XComponent, which can be used for the EGL/OpenGL ES and media data input and displayed on the ArkUI XComponent. For details, see Native XComponent.

NOTE

The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.

Summary

Files

NameDescription
native_interface_xcomponent.hDeclares the APIs for accessing NativeXComponent.
File to include: <ace/xcomponent/native_interface_xcomponent.h>
Library: libace_ndk.z.so
native_xcomponent_key_event.hDeclares the enums used to access NativeXComponent key events.
File to include: <ace/xcomponent/native_xcomponent_key_event.h>
Library: libace_ndk.z.so

Structs

NameDescription
OH_NativeXComponent_TouchPointDescribes the touch point of the touch event.
OH_NativeXComponent_TouchEventDescribes the touch event.
OH_NativeXComponent_MouseEventDescribes the mouse event.
OH_NativeXComponent_CallbackRegisters callbacks for the surface lifecycle and touch event.
OH_NativeXComponent_MouseEvent_CallbackRegisters callbacks for the mouse event.
OH_NativeXComponent_ExpectedRateRangeDefines the expected frame rate range.

Types

NameDescription
OH_NativeXComponentProvides an encapsulated OH_NativeXComponent instance.
OH_NativeXComponent_CallbackRegisters callbacks for the surface lifecycle and touch event.
OH_NativeXComponent_MouseEvent_CallbackRegisters callbacks for the mouse event.
OH_NativeXComponent_KeyEventProvides an encapsulated OH_NativeXComponent_KeyEvent instance.

Enums

NameDescription
{ OH_NATIVEXCOMPONENT_RESULT_SUCCESS = 0, OH_NATIVEXCOMPONENT_RESULT_FAILED = -1, OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER = -2 }Enumerates the API access states.
OH_NativeXComponent_TouchEventType {
OH_NATIVEXCOMPONENT_DOWN = 0, OH_NATIVEXCOMPONENT_UP, OH_NATIVEXCOMPONENT_MOVE, OH_NATIVEXCOMPONENT_CANCEL,
OH_NATIVEXCOMPONENT_UNKNOWN
}
Enumerates the touch event types.
OH_NativeXComponent_TouchPointToolType {
OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWN = 0, OH_NATIVEXCOMPONENT_TOOL_TYPE_FINGER, OH_NATIVEXCOMPONENT_TOOL_TYPE_PEN, OH_NATIVEXCOMPONENT_TOOL_TYPE_RUBBER,
OH_NATIVEXCOMPONENT_TOOL_TYPE_BRUSH, OH_NATIVEXCOMPONENT_TOOL_TYPE_PENCIL, OH_NATIVEXCOMPONENT_TOOL_TYPE_AIRBRUSH, OH_NATIVEXCOMPONENT_TOOL_TYPE_MOUSE,
OH_NATIVEXCOMPONENT_TOOL_TYPE_LENS
}
Enumerates the touch point tool types.
OH_NativeXComponent_EventSourceType {
OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWN = 0, OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSE, OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREEN, OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPAD,
OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICK, OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD
}
Enumerates the touch event source types.
OH_NativeXComponent_MouseEventAction { OH_NATIVEXCOMPONENT_MOUSE_NONE = 0, OH_NATIVEXCOMPONENT_MOUSE_PRESS, OH_NATIVEXCOMPONENT_MOUSE_RELEASE, OH_NATIVEXCOMPONENT_MOUSE_MOVE }Enumerates the mouse event actions.
OH_NativeXComponent_MouseEventButton {
OH_NATIVEXCOMPONENT_NONE_BUTTON = 0, OH_NATIVEXCOMPONENT_LEFT_BUTTON = 0x01, OH_NATIVEXCOMPONENT_RIGHT_BUTTON = 0x02, OH_NATIVEXCOMPONENT_MIDDLE_BUTTON = 0x04,
OH_NATIVEXCOMPONENT_BACK_BUTTON = 0x08, OH_NATIVEXCOMPONENT_FORWARD_BUTTON = 0x10
}
Enumerates the mouse event buttons.
OH_NativeXComponent_KeyCode {
KEY_UNKNOWN = -1, KEY_FN = 0, KEY_HOME = 1, KEY_BACK = 2,KEY_MEDIA_PLAY_PAUSE = 10, KEY_MEDIA_STOP = 11, KEY_MEDIA_NEXT = 12, KEY_MEDIA_PREVIOUS = 13,
KEY_MEDIA_REWIND = 14, KEY_MEDIA_FAST_FORWARD = 15, KEY_VOLUME_UP = 16, KEY_VOLUME_DOWN = 17,
KEY_POWER = 18, KEY_CAMERA = 19, KEY_VOLUME_MUTE = 22, KEY_MUTE = 23,KEY_BRIGHTNESS_UP = 40, KEY_BRIGHTNESS_DOWN = 41, KEY_0 = 2000, KEY_1 = 2001,
KEY_2 = 2002, KEY_3 = 2003, KEY_4 = 2004, KEY_5 = 2005,
KEY_6 = 2006, KEY_7 = 2007, KEY_8 = 2008, KEY_9 = 2009,
KEY_STAR = 2010, KEY_POUND = 2011, KEY_DPAD_UP = 2012, KEY_DPAD_DOWN = 2013,KEY_DPAD_LEFT = 2014, KEY_DPAD_RIGHT = 2015, KEY_DPAD_CENTER = 2016,
KEY_A = 2017,
KEY_B = 2018, KEY_C = 2019, KEY_D = 2020, KEY_E = 2021,
KEY_F = 2022, KEY_G = 2023, KEY_H = 2024, KEY_I = 2025,
KEY_J = 2026, KEY_K = 2027, KEY_L = 2028, KEY_M = 2029,
KEY_N = 2030, KEY_O = 2031, KEY_P = 2032, KEY_Q = 2033,
KEY_R = 2034, KEY_S = 2035, KEY_T = 2036, KEY_U = 2037,
KEY_V = 2038, KEY_W = 2039, KEY_X = 2040, KEY_Y = 2041,
KEY_Z = 2042, KEY_COMMA = 2043, KEY_PERIOD = 2044, KEY_ALT_LEFT = 2045,
KEY_ALT_RIGHT = 2046, KEY_SHIFT_LEFT = 2047, KEY_SHIFT_RIGHT = 2048, KEY_TAB = 2049,
KEY_SPACE = 2050, KEY_SYM = 2051, KEY_EXPLORER = 2052, KEY_ENVELOPE = 2053,
KEY_ENTER = 2054, KEY_DEL = 2055, KEY_GRAVE = 2056, KEY_MINUS = 2057,
KEY_EQUALS = 2058, KEY_LEFT_BRACKET = 2059, KEY_RIGHT_BRACKET = 2060, KEY_BACKSLASH = 2061,
KEY_SEMICOLON = 2062, KEY_APOSTROPHE = 2063, KEY_SLASH = 2064, KEY_AT = 2065,
KEY_PLUS = 2066, KEY_MENU = 2067, KEY_PAGE_UP = 2068, KEY_PAGE_DOWN = 2069,
KEY_ESCAPE = 2070, KEY_FORWARD_DEL = 2071, KEY_CTRL_LEFT = 2072, KEY_CTRL_RIGHT = 2073,
KEY_CAPS_LOCK = 2074, KEY_SCROLL_LOCK = 2075, KEY_META_LEFT = 2076, KEY_META_RIGHT = 2077,
KEY_FUNCTION = 2078, KEY_SYSRQ = 2079, KEY_BREAK = 2080, KEY_MOVE_HOME = 2081,
KEY_MOVE_END = 2082, KEY_INSERT = 2083, KEY_FORWARD = 2084, KEY_MEDIA_PLAY = 2085,
KEY_MEDIA_PAUSE = 2086, KEY_MEDIA_CLOSE = 2087, KEY_MEDIA_EJECT = 2088, KEY_MEDIA_RECORD = 2089,
KEY_F1 = 2090, KEY_F2 = 2091, KEY_F3 = 2092, KEY_F4 = 2093,
KEY_F5 = 2094, KEY_F6 = 2095, KEY_F7 = 2096, KEY_F8 = 2097,
KEY_F9 = 2098, KEY_F10 = 2099, KEY_F11 = 2100, KEY_F12 = 2101,
KEY_NUM_LOCK = 2102, KEY_NUMPAD_0 = 2103, KEY_NUMPAD_1 = 2104, KEY_NUMPAD_2 = 2105,
KEY_NUMPAD_3 = 2106, KEY_NUMPAD_4 = 2107, KEY_NUMPAD_5 = 2108, KEY_NUMPAD_6 = 2109,
KEY_NUMPAD_7 = 2110, KEY_NUMPAD_8 = 2111, KEY_NUMPAD_9 = 2112, KEY_NUMPAD_DIVIDE = 2113,
KEY_NUMPAD_MULTIPLY = 2114, KEY_NUMPAD_SUBTRACT = 2115, KEY_NUMPAD_ADD = 2116, KEY_NUMPAD_DOT = 2117,
KEY_NUMPAD_COMMA = 2118, KEY_NUMPAD_ENTER = 2119, KEY_NUMPAD_EQUALS = 2120, KEY_NUMPAD_LEFT_PAREN = 2121,
KEY_NUMPAD_RIGHT_PAREN = 2122, KEY_VIRTUAL_MULTITASK = 2210, KEY_SLEEP = 2600, KEY_ZENKAKU_HANKAKU = 2601,
KEY_102ND = 2602, KEY_RO = 2603, KEY_KATAKANA = 2604, KEY_HIRAGANA = 2605,
KEY_HENKAN = 2606, KEY_KATAKANA_HIRAGANA = 2607, KEY_MUHENKAN = 2608, KEY_LINEFEED = 2609,
KEY_MACRO = 2610, KEY_NUMPAD_PLUSMINUS = 2611, KEY_SCALE = 2612, KEY_HANGUEL = 2613,
KEY_HANJA = 2614, KEY_YEN = 2615, KEY_STOP = 2616, KEY_AGAIN = 2617,
KEY_PROPS = 2618, KEY_UNDO = 2619, KEY_COPY = 2620, KEY_OPEN = 2621,
KEY_PASTE = 2622, KEY_FIND = 2623, KEY_CUT = 2624, KEY_HELP = 2625,
KEY_CALC = 2626, KEY_FILE = 2627, KEY_BOOKMARKS = 2628, KEY_NEXT = 2629,
KEY_PLAYPAUSE = 2630, KEY_PREVIOUS = 2631, KEY_STOPCD = 2632, KEY_CONFIG = 2634,
KEY_REFRESH = 2635, KEY_EXIT = 2636, KEY_EDIT = 2637, KEY_SCROLLUP = 2638,
KEY_SCROLLDOWN = 2639, KEY_NEW = 2640, KEY_REDO = 2641, KEY_CLOSE = 2642,
KEY_PLAY = 2643, KEY_BASSBOOST = 2644, KEY_PRINT = 2645, KEY_CHAT = 2646,
KEY_FINANCE = 2647, KEY_CANCEL = 2648, KEY_KBDILLUM_TOGGLE = 2649, KEY_KBDILLUM_DOWN = 2650,
KEY_KBDILLUM_UP = 2651, KEY_SEND = 2652, KEY_REPLY = 2653, KEY_FORWARDMAIL = 2654,
KEY_SAVE = 2655, KEY_DOCUMENTS = 2656, KEY_VIDEO_NEXT = 2657, KEY_VIDEO_PREV = 2658,
KEY_BRIGHTNESS_CYCLE = 2659, KEY_BRIGHTNESS_ZERO = 2660, KEY_DISPLAY_OFF = 2661, KEY_BTN_MISC = 2662,
KEY_GOTO = 2663, KEY_INFO = 2664, KEY_PROGRAM = 2665, KEY_PVR = 2666,
KEY_SUBTITLE = 2667, KEY_FULL_SCREEN = 2668, KEY_KEYBOARD = 2669, KEY_ASPECT_RATIO = 2670,
KEY_PC = 2671, KEY_TV = 2672, KEY_TV2 = 2673, KEY_VCR = 2674,
KEY_VCR2 = 2675, KEY_SAT = 2676, KEY_CD = 2677, KEY_TAPE = 2678,
KEY_TUNER = 2679, KEY_PLAYER = 2680, KEY_DVD = 2681, KEY_AUDIO = 2682,
KEY_VIDEO = 2683, KEY_MEMO = 2684, KEY_CALENDAR = 2685, KEY_RED = 2686,
KEY_GREEN = 2687, KEY_YELLOW = 2688, KEY_BLUE = 2689, KEY_CHANNELUP = 2690,
KEY_CHANNELDOWN = 2691, KEY_LAST = 2692, KEY_RESTART = 2693, KEY_SLOW = 2694,
KEY_SHUFFLE = 2695, KEY_VIDEOPHONE = 2696, KEY_GAMES = 2697, KEY_ZOOMIN = 2698,
KEY_ZOOMOUT = 2699, KEY_ZOOMRESET = 2700, KEY_WORDPROCESSOR = 2701, KEY_EDITOR = 2702,
KEY_SPREADSHEET = 2703, KEY_GRAPHICSEDITOR = 2704, KEY_PRESENTATION = 2705, KEY_DATABASE = 2706,
KEY_NEWS = 2707, KEY_VOICEMAIL = 2708, KEY_ADDRESSBOOK = 2709, KEY_MESSENGER = 2710,
KEY_BRIGHTNESS_TOGGLE = 2711, KEY_SPELLCHECK = 2712, KEY_COFFEE = 2713, KEY_MEDIA_REPEAT = 2714,
KEY_IMAGES = 2715, KEY_BUTTONCONFIG = 2716, KEY_TASKMANAGER = 2717, KEY_JOURNAL = 2718,
KEY_CONTROLPANEL = 2719, KEY_APPSELECT = 2720, KEY_SCREENSAVER = 2721, KEY_ASSISTANT = 2722,
KEY_KBD_LAYOUT_NEXT = 2723, KEY_BRIGHTNESS_MIN = 2724, KEY_BRIGHTNESS_MAX = 2725, KEY_KBDINPUTASSIST_PREV = 2726,
KEY_KBDINPUTASSIST_NEXT = 2727, KEY_KBDINPUTASSIST_PREVGROUP = 2728, KEY_KBDINPUTASSIST_NEXTGROUP = 2729, KEY_KBDINPUTASSIST_ACCEPT = 2730,
KEY_KBDINPUTASSIST_CANCEL = 2731, KEY_FRONT = 2800, KEY_SETUP = 2801, KEY_WAKEUP = 2802,
KEY_SENDFILE = 2803, KEY_DELETEFILE = 2804, KEY_XFER = 2805, KEY_PROG1 = 2806,
KEY_PROG2 = 2807, KEY_MSDOS = 2808, KEY_SCREENLOCK = 2809, KEY_DIRECTION_ROTATE_DISPLAY = 2810,
KEY_CYCLEWINDOWS = 2811, KEY_COMPUTER = 2812, KEY_EJECTCLOSECD = 2813, KEY_ISO = 2814,
KEY_MOVE = 2815, KEY_F13 = 2816, KEY_F14 = 2817, KEY_F15 = 2818,
KEY_F16 = 2819, KEY_F17 = 2820, KEY_F18 = 2821, KEY_F19 = 2822,
KEY_F20 = 2823, KEY_F21 = 2824, KEY_F22 = 2825, KEY_F23 = 2826,
KEY_F24 = 2827, KEY_PROG3 = 2828, KEY_PROG4 = 2829, KEY_DASHBOARD = 2830,
KEY_SUSPEND = 2831, KEY_HP = 2832, KEY_SOUND = 2833, KEY_QUESTION = 2834,
KEY_CONNECT = 2836, KEY_SPORT = 2837, KEY_SHOP = 2838, KEY_ALTERASE = 2839,
KEY_SWITCHVIDEOMODE = 2841, KEY_BATTERY = 2842, KEY_BLUETOOTH = 2843, KEY_WLAN = 2844,
KEY_UWB = 2845, KEY_WWAN_WIMAX = 2846, KEY_RFKILL = 2847, KEY_CHANNEL = 3001,
KEY_BTN_0 = 3100, KEY_BTN_1 = 3101, KEY_BTN_2 = 3102, KEY_BTN_3 = 3103,
KEY_BTN_4 = 3104, KEY_BTN_5 = 3105, KEY_BTN_6 = 3106, KEY_BTN_7 = 3107,
KEY_BTN_8 = 3108, KEY_BTN_9 = 3109
}
Enumerates the mouse event key codes.
OH_NativeXComponent_KeyAction { OH_NATIVEXCOMPONENT_KEY_ACTION_UNKNOWN = -1, OH_NATIVEXCOMPONENT_KEY_ACTION_DOWN = 0, OH_NATIVEXCOMPONENT_KEY_ACTION_UP }Enumerates the key event actions.

Functions

NameDescription
OH_NativeXComponent_GetXComponentId (OH_NativeXComponent *component, char *id, uint64_t *size)Obtains the ID of the ArkUI XComponent.
OH_NativeXComponent_GetXComponentSize (OH_NativeXComponent *component, const void *window, uint64_t *width, uint64_t *height)Obtains the size of the surface held by the ArkUI XComponent.
OH_NativeXComponent_GetXComponentOffset (OH_NativeXComponent *component, const void *window, double *x, double *y)Obtains the offset of the surface held by the XComponent relative to the upper left corner of its parent component.
OH_NativeXComponent_GetTouchEvent (OH_NativeXComponent *component, const void *window, OH_NativeXComponent_TouchEvent *touchEvent)Obtains the touch event scheduled by the ArkUI XComponent.
OH_NativeXComponent_GetTouchPointToolType (OH_NativeXComponent *component, uint32_t pointIndex, OH_NativeXComponent_TouchPointToolType *toolType)Obtains the ArkUI XComponent touch point tool type.
OH_NativeXComponent_GetTouchPointTiltX (OH_NativeXComponent *component, uint32_t pointIndex, float *tiltX)Obtains the angle between the Y-Z plane of the ArkUI XComponent touch point and the x-axis.
OH_NativeXComponent_GetTouchPointTiltY (OH_NativeXComponent *component, uint32_t pointIndex, float *tiltY)Obtains the angle between the X-Z plane of the ArkUI XComponent touch point and the y-axis.
OH_NativeXComponent_GetMouseEvent (OH_NativeXComponent *component, const void *window, OH_NativeXComponent_MouseEvent *mouseEvent)Obtains the mouse event scheduled by ArkUI XComponent.
OH_NativeXComponent_RegisterCallback (OH_NativeXComponent *component, OH_NativeXComponent_Callback *callback)Registers a callback for this OH_NativeXComponent instance.
OH_NativeXComponent_RegisterMouseEventCallback (OH_NativeXComponent *component, OH_NativeXComponent_MouseEvent_Callback *callback)Registers the mouse event callback for this OH_NativeXComponent instance.
OH_NativeXComponent_RegisterFocusEventCallback (OH_NativeXComponent *component, void(*callback)(OH_NativeXComponent *component, void *window))Registers the focus obtaining event callback for this OH_NativeXComponent instance.
OH_NativeXComponent_RegisterKeyEventCallback (OH_NativeXComponent *component, void(*callback)(OH_NativeXComponent *component, void *window))Registers the key event callback for this OH_NativeXComponent instance.
OH_NativeXComponent_RegisterBlurEventCallback (OH_NativeXComponent *component, void(*callback)(OH_NativeXComponent *component, void *window))Registers the focus loss event callback for this OH_NativeXComponent instance.
OH_NativeXComponent_GetKeyEvent (OH_NativeXComponent *component, OH_NativeXComponent_KeyEvent **keyEvent)Obtains the key event scheduled by the ArkUI XComponent.
OH_NativeXComponent_GetKeyEventAction (OH_NativeXComponent_KeyEvent *keyEvent, OH_NativeXComponent_KeyAction *action)Obtains the action of the specified key event.
OH_NativeXComponent_GetKeyEventCode (OH_NativeXComponent_KeyEvent *keyEvent, OH_NativeXComponent_KeyCode *code)Obtains the key code of the specified key event.
OH_NativeXComponent_GetKeyEventSourceType (OH_NativeXComponent_KeyEvent *keyEvent, OH_NativeXComponent_EventSourceType *sourceType)Obtains the source type of the specified key event.
OH_NativeXComponent_GetKeyEventDeviceId (OH_NativeXComponent_KeyEvent *keyEvent, int64_t *deviceId)Obtains the device ID of the specified key event.
OH_NativeXComponent_GetKeyEventTimeStamp (OH_NativeXComponent_KeyEvent *keyEvent, int64_t *timeStamp)Obtains the timestamp of the specified key event.
OH_NativeXComponent_SetExpectedFrameRateRange (OH_NativeXComponent *component, OH_NativeXComponent_ExpectedRateRange *range)Sets the expected frame rate range.
OH_NativeXComponent_RegisterOnFrameCallback (OH_NativeXComponent *component, void(*callback)(OH_NativeXComponent *component, uint64_t timestamp, uint64_t targetTimestamp))Registers the display update callback for this OH_NativeXComponent instance and enables the callback for each frame.
OH_NativeXComponent_UnregisterOnFrameCallback (OH_NativeXComponent *component)Deregisters the display update callback for this OH_NativeXComponent instance and disables the callback for each frame.
int32_t OH_NativeXComponent_AttachNativeRootNode (OH_NativeXComponent *component, ArkUI_NodeHandle root)Attaches the UI component created through the native API of ArkUI to this OH_NativeXComponent instance.
int32_t OH_NativeXComponent_DetachNativeRootNode (OH_NativeXComponent *component, ArkUI_NodeHandle root)Detaches the native component of ArkUI from this OH_NativeXComponent instance.
int32_t OH_NativeXComponent_RegisterUIInputEventCallback (OH_NativeXComponent *component, void(*callback)(OH_NativeXComponent *component, ArkUI_UIInputEvent *event, ArkUI_UIInputEvent_Type type), ArkUI_UIInputEvent_Type type)Registers a UI input event callback for an OH_NativeXComponent instance and enables the callback to be invoked when a UI input event is received.
int32_t OH_NativeXComponent_RegisterOnTouchInterceptCallback (OH_NativeXComponent *component, HitTestMode(*callback)(OH_NativeXComponent *component, ArkUI_UIInputEvent *event))Registers a custom event intercept callback for an OH_NativeXComponent and enables the callback during the hit test.
int32_t OH_NativeXComponent_SetNeedSoftKeyboard (OH_NativeXComponent *component, bool isNeedSoftKeyboard)Sets whether the soft keyboard is required for an OH_NativeXComponent instance.
int32_t OH_NativeXComponent_RegisterSurfaceShowCallback (OH_NativeXComponent *component, void(*callback)(OH_NativeXComponent *component, void *window))Registers a surface display callback for an OH_NativeXComponent instance. The callback is invoked whenever the application is switched to the foreground.
int32_t OH_NativeXComponent_RegisterSurfaceHideCallback (OH_NativeXComponent *component, void(*callback)(OH_NativeXComponent *component, void *window))Registers a surface hiding callback for an OH_NativeXComponent instance. The callback is invoked whenever the application is switched to the background.
int32_t OH_NativeXComponent_GetTouchEventSourceType (OH_NativeXComponent *component, int32_t pointId, OH_NativeXComponent_EventSourceType *sourceType)Obtains the touch event source type of an OH_NativeXComponent instance.
OH_NativeXComponent * OH_NativeXComponent_GetNativeXComponent (ArkUI_NodeHandle node)Obtains the pointer to an OH_NativeXComponent instance based on the specified component instance created by the native API.
int32_t OH_NativeXComponent_GetNativeAccessibilityProvider(OH_NativeXComponent* component, ArkUI_AccessibilityProvider** handle);

Variables

NameDescription
OH_XCOMPONENT_ID_LEN_MAX = 128Maximum length of the ArkUI XComponent ID.
OH_MAX_TOUCH_POINTS_NUMBER = 10Maximum number of identifiable touch points in a touch event.
OH_NativeXComponent_TouchPoint::id = 0Unique identifier of the finger.
OH_NativeXComponent_TouchPoint::screenX = 0.0X coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.
OH_NativeXComponent_TouchPoint::screenY = 0.0Y coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.
OH_NativeXComponent_TouchPoint::x = 0.0X coordinate of the touch point relative to the left edge of the XComponent.
OH_NativeXComponent_TouchPoint::y = 0.0Y coordinate of the touch point relative to the upper edge of the XComponent.
OH_NativeXComponent_TouchPoint::type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWNTouch type of the touch event.
OH_NativeXComponent_TouchPoint::size = 0.0Contact area between the finger pad and the screen.
OH_NativeXComponent_TouchPoint::force = 0.0Pressure of the touch event.
OH_NativeXComponent_TouchPoint::timeStamp = 0Timestamp of the touch point.
OH_NativeXComponent_TouchPoint::isPressed = falseWhether the current point is pressed.
OH_NativeXComponent_TouchEvent::id = 0Unique identifier of the finger.
OH_NativeXComponent_TouchEvent::screenX = 0.0X coordinate of the touch point relative to the left edge of the screen.
OH_NativeXComponent_TouchEvent::screenY = 0.0Y coordinate of the touch point relative to the upper edge of the screen.
OH_NativeXComponent_TouchEvent::x = 0.0X coordinate of the touch point relative to the left edge of the XComponent.
OH_NativeXComponent_TouchEvent::y = 0.0Y coordinate of the touch point relative to the upper edge of the XComponent.
OH_NativeXComponent_TouchEvent::type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWNTouch type of the touch event.
OH_NativeXComponent_TouchEvent::size = 0.0Contact area between the finger pad and the screen.
OH_NativeXComponent_TouchEvent::force = 0.0Pressure of the touch event.
OH_NativeXComponent_TouchEvent::deviceId = 0ID of the device where the current touch event is triggered.
OH_NativeXComponent_TouchEvent::timeStamp = 0Timestamp of the touch event.
OH_NativeXComponent_TouchEvent::touchPoints [OH_MAX_TOUCH_POINTS_NUMBER]Array of the touch points.
OH_NativeXComponent_TouchEvent::numPoints = 0Number of current touch points.
OH_NativeXComponent_MouseEvent::x = 0.0X coordinate of the clicked point relative to the upper left corner of the component.
OH_NativeXComponent_MouseEvent::y= 0.0Y coordinate of the clicked point relative to the upper left corner of the component.
OH_NativeXComponent_MouseEvent::screenX= 0.0X coordinate of the clicked point relative to the upper left corner of the screen.
OH_NativeXComponent_MouseEvent::screenY= 0.0Y coordinate of the clicked point relative to the upper left corner of the screen.
OH_NativeXComponent_MouseEvent::timestamp= 0Timestamp of the mouse event.
OH_NativeXComponent_MouseEvent::action= OH_NativeXComponent_MouseEventAction::OH_NATIVEXCOMPONENT_MOUSE_NONEAction of the mouse event.
OH_NativeXComponent_MouseEvent::button= OH_NativeXComponent_MouseEventButton::OH_NATIVEXCOMPONENT_NONE_BUTTONEnumerates the mouse event buttons.
OH_NativeXComponent_Callback::OnSurfaceCreatedInvoked when a surface is created.
OH_NativeXComponent_Callback::OnSurfaceChangedInvoked when the surface changes.
OH_NativeXComponent_Callback::OnSurfaceDestroyedInvoked when the surface is destroyed.
OH_NativeXComponent_Callback::DispatchTouchEventInvoked when a touch event is triggered.
OH_NativeXComponent_MouseEvent_Callback::DispatchMouseEventInvoked when a mouse event is triggered.
OH_NativeXComponent_MouseEvent_Callback::DispatchHoverEventInvoked when a hover event is triggered.

Type Description

OH_NativeXComponent

typedef struct OH_NativeXComponent OH_NativeXComponent

Description

Provides an encapsulated OH_NativeXComponent instance.

Since

8

OH_NativeXComponent_Callback

typedef struct OH_NativeXComponent_Callback OH_NativeXComponent_Callback

Description

Registers callbacks for the surface lifecycle and touch event.

Since

8

OH_NativeXComponent_KeyEvent

typedef struct OH_NativeXComponent_KeyEvent OH_NativeXComponent_KeyEvent

Description

Provides an encapsulated OH_NativeXComponent_KeyEvent instance.

Since

10

OH_NativeXComponent_MouseEvent_Callback

typedef struct OH_NativeXComponent_MouseEvent_Callback OH_NativeXComponent_MouseEvent_Callback

Description

Registers callbacks for the mouse event.

Since

9

Enum Description

anonymous enum

anonymous enum

Description

Enumerates the API access states.

ValueDescription
OH_NATIVEXCOMPONENT_RESULT_SUCCESSSuccess.
OH_NATIVEXCOMPONENT_RESULT_FAILEDFailure.
OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETERInvalid parameter.

Since

8

OH_NativeXComponent_EventSourceType

enum OH_NativeXComponent_EventSourceType

Description

Enumerates the touch event source types.

ValueDescription
OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWNUnknown source type.
OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSESource that generates a mouse multi-click event.
OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREENSource that generates a touchscreen multi-touch event.
OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPADSource that generates a touchpad multi-touch event.
OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICKSource that generates a joystick multi-touch event.
OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD10+Source that generates a key event.

Since

9

OH_NativeXComponent_KeyAction

enum OH_NativeXComponent_KeyAction

Description

Enumerates the key event actions.

ValueDescription
OH_NATIVEXCOMPONENT_KEY_ACTION_UNKNOWNUnknown key event action.
OH_NATIVEXCOMPONENT_KEY_ACTION_DOWNButton press.
OH_NATIVEXCOMPONENT_KEY_ACTION_UPButton release.

Since

10

OH_NativeXComponent_KeyCode

enum OH_NativeXComponent_KeyCode

Description

Enumerates the mouse event key codes.

ValueDescription
KEY_UNKNOWNUnknown key.
KEY_FNFunction (Fn) key.
KEY_HOMEFunction (Home) key.
KEY_BACKBack key.
KEY_MEDIA_PLAY_PAUSEMultimedia key - play/pause.
KEY_MEDIA_STOPMultimedia key - stop.
KEY_MEDIA_NEXTMultimedia key - next song.
KEY_MEDIA_PREVIOUSMultimedia key - previous song.
KEY_MEDIA_REWINDMultimedia key - rewind.
KEY_MEDIA_FAST_FORWARDMultimedia key - fast-forward.
KEY_VOLUME_UPVolume Up key.
KEY_VOLUME_DOWNVolume Down key.
KEY_POWERPower key.
KEY_CAMERACamera key.
KEY_VOLUME_MUTESpeaker Mute key.
KEY_MUTEMicrophone Mute key.
KEY_BRIGHTNESS_UPBrightness key - turn up.
KEY_BRIGHTNESS_DOWNBrightness key - turn down.
KEY_0Key 0.
KEY_1Key 1.
KEY_2Key 2.
KEY_3Key 3.
KEY_4Key 4.
KEY_5Key 5.
KEY_6Key 6.
KEY_7Key 7.
KEY_8Key 8.
KEY_9Key 9.
KEY_STARKey *.
KEY_POUNDKey #.
KEY_DPAD_UPNavigation key - up.
KEY_DPAD_DOWNNavigation key - down.
KEY_DPAD_LEFTNavigation key - left.
KEY_DPAD_RIGHTNavigation key - right.
KEY_DPAD_CENTERNavigation key - OK.
KEY_AKey A.
KEY_BKey B.
KEY_CKey C.
KEY_DKey D.
KEY_EKey E.
KEY_FKey F.
KEY_GKey G.
KEY_HKey H.
KEY_IKey I.
KEY_JKey J.
KEY_KKey K.
KEY_LKey L.
KEY_MKey M.
KEY_NKey N.
KEY_OKey O.
KEY_PKey P.
KEY_QKey Q.
KEY_RKey R.
KEY_SKey S.
KEY_TKey T.
KEY_UKey U.
KEY_VKey V.
KEY_WKey W.
KEY_XKey X.
KEY_YKey Y.
KEY_ZKey Z.
KEY_COMMAKey ,.
KEY_PERIODKey ..
KEY_ALT_LEFTLeft Alt key.
KEY_ALT_RIGHTRight Alt key.
KEY_SHIFT_LEFTLeft Shift key.
KEY_SHIFT_RIGHTRight Shift key.
KEY_TABTab key.
KEY_SPACESpace key.
KEY_SYMSymbol key.
KEY_EXPLORERExplorer key, which is used to start the explorer application.
KEY_ENVELOPEEmail key, which is used to start the email application.
KEY_ENTEREnter key.
KEY_DELDelete key.
KEY_GRAVEKey `.
KEY_MINUSKey -.
KEY_EQUALSKey =.
KEY_LEFT_BRACKETKey [.
KEY_RIGHT_BRACKETKey ].
KEY_BACKSLASHKey ****.
KEY_SEMICOLONKey ;.
KEY_APOSTROPHEKey '.
KEY_SLASHKey /.
KEY_ATKey @.
KEY_PLUSKey +.
KEY_MENUMenu key.
KEY_PAGE_UPPage Up key.
KEY_PAGE_DOWNPage Down key.
KEY_ESCAPEESC key.
KEY_FORWARD_DELDelete key.
KEY_CTRL_LEFTLeft Ctrl key.
KEY_CTRL_RIGHTRight Ctrl key.
KEY_CAPS_LOCKCaps Lock key.
KEY_SCROLL_LOCKScroll Lock key.
KEY_META_LEFTLeft Meta key.
KEY_META_RIGHTRight Meta key.
KEY_FUNCTIONFunction key.
KEY_SYSRQSystem Request/Print Screen key.
KEY_BREAKBreak/Pause key.
KEY_MOVE_HOMEMove to Home key.
KEY_MOVE_ENDMove to End key.
KEY_INSERTInsert key.
KEY_FORWARDForward key.
KEY_MEDIA_PLAYMultimedia key - play.
KEY_MEDIA_PAUSEMultimedia key - pause.
KEY_MEDIA_CLOSEMultimedia key - close.
KEY_MEDIA_EJECTMultimedia key - eject.
KEY_MEDIA_RECORDMultimedia key - record.
KEY_F1F1 key.
KEY_F2F2 key.
KEY_F3F3 key.
KEY_F4F4 key.
KEY_F5F5 key.
KEY_F6F6 key.
KEY_F7F7 key.
KEY_F8F8 key.
KEY_F9F9 key.
KEY_F10F10 key.
KEY_F11F11 key.
KEY_F12F12 key.
KEY_NUM_LOCKNumber Lock key.
KEY_NUMPAD_0Key 0 on numeric keypad.
KEY_NUMPAD_1Key 1 on numeric keypad.
KEY_NUMPAD_2Key 2 on numeric keypad.
KEY_NUMPAD_3Key 3 on numeric keypad.
KEY_NUMPAD_4Key 4 on numeric keypad.
KEY_NUMPAD_5Key 5 on numeric keypad.
KEY_NUMPAD_6Key 6 on numeric keypad.
KEY_NUMPAD_7Key 7 on numeric keypad.
KEY_NUMPAD_8Key 8 on numeric keypad.
KEY_NUMPAD_9Key 9 on numeric keypad.
KEY_NUMPAD_DIVIDEKey / on numeric keypad.
KEY_NUMPAD_MULTIPLYKey ***** on numeric keypad.
KEY_NUMPAD_SUBTRACTKey - on numeric keypad.
KEY_NUMPAD_ADDKey + on numeric keypad.
KEY_NUMPAD_DOTKey . on numeric keypad.
KEY_NUMPAD_COMMAKey , on numeric keypad.
KEY_NUMPAD_ENTEREnter key on numeric keypad.
KEY_NUMPAD_EQUALSKey = on numeric keypad.
KEY_NUMPAD_LEFT_PARENKey ( on numeric keypad.
KEY_NUMPAD_RIGHT_PARENKey ) on numeric keypad.
KEY_VIRTUAL_MULTITASKMulti-task key.
KEY_SLEEPSleep key.
KEY_ZENKAKU_HANKAKUZenkaku/Hankaku key.
KEY_102ND102nd key.
KEY_RORo key.
KEY_KATAKANAKatakana key.
KEY_HIRAGANAHiragana key.
KEY_HENKANHenkan key.
KEY_KATAKANA_HIRAGANAKatakana/Hiragana key.
KEY_MUHENKANMuhenkan key.
KEY_LINEFEEDLinefeed key.
KEY_MACROMacro key.
KEY_NUMPAD_PLUSMINUSPlus/Minus key on the numeric keypad.
KEY_SCALEScale key.
KEY_HANGUELHanguel key.
KEY_HANJAHanja key.
KEY_YENYen key.
KEY_STOPStop key.
KEY_AGAINAgain key.
KEY_PROPSProps key.
KEY_UNDOUndo key.
KEY_COPYCopy key.
KEY_OPENOpen key.
KEY_PASTEPaste key.
KEY_FINDFind key.
KEY_CUTCut key.
KEY_HELPHelp key.
KEY_CALCCalc key, which is used to start the calculator application.
KEY_FILEFile key.
KEY_BOOKMARKSBookmarks key.
KEY_NEXTNext key.
KEY_PLAYPAUSEPlay/Pause key.
KEY_PREVIOUSPrevious key.
KEY_STOPCDStop CD key.
KEY_CONFIGConfig key.
KEY_REFRESHRefresh key.
KEY_EXITExit key.
KEY_EDITEdit key.
KEY_SCROLLUPScroll Up key.
KEY_SCROLLDOWNScroll Down key.
KEY_NEWNew key.
KEY_REDORedo key.
KEY_CLOSEClose key.
KEY_PLAYPlay key.
KEY_BASSBOOSTBass Boost key.
KEY_PRINTPrint key.
KEY_CHATChat key.
KEY_FINANCEFinance key.
KEY_CANCELCancel key.
KEY_KBDILLUM_TOGGLEKeyboard Illumination Toggle key.
KEY_KBDILLUM_DOWNKeyboard Illumination Up key.
KEY_KBDILLUM_UPKeyboard Illumination Down key.
KEY_SENDSend key.
KEY_REPLYReply key.
KEY_FORWARDMAILForward Mail key.
KEY_SAVESave key.
KEY_DOCUMENTSDocuments key.
KEY_VIDEO_NEXTNext Video key.
KEY_VIDEO_PREVPrevious Video key.
KEY_BRIGHTNESS_CYCLEBrightness Cycle key.
KEY_BRIGHTNESS_ZEROBrightness Zero key.
KEY_DISPLAY_OFFDisplay Off Key.
KEY_BTN_MISCMisc Button key.
KEY_GOTOGoto key.
KEY_INFOInfo key.
KEY_PROGRAMProgram key.
KEY_PVRPVR key.
KEY_SUBTITLESubtitle key.
KEY_FULL_SCREENFull Screen key.
KEY_KEYBOARDKeyboard.
KEY_ASPECT_RATIOAspect Ratio key.
KEY_PCPort Control key.
KEY_TVTV key.
KEY_TV2TV key 2.
KEY_VCRVCR key.
KEY_VCR2VCR key 2.
KEY_SATSAT key.
KEY_CDCD key.
KEY_TAPETape key.
KEY_TUNERTuner key.
KEY_PLAYERPlayer key.
KEY_DVDDVD key.
KEY_AUDIOAudio key.
KEY_VIDEOVideo key.
KEY_MEMOMemo key.
KEY_CALENDARCalendar key.
KEY_REDRed indicator.
KEY_GREENGreen indicator.
KEY_YELLOWYellow indicator.
KEY_BLUEBlue indicator.
KEY_CHANNELUPChannel Up key.
KEY_CHANNELDOWNChannel Down key.
KEY_LASTLast key.
KEY_RESTARTRestart key.
KEY_SLOWSlow key.
KEY_SHUFFLEShuffle key.
KEY_VIDEOPHONEVideophone key.
KEY_GAMESGames key.
KEY_ZOOMINZoom in key.
KEY_ZOOMOUTZoom out key.
KEY_ZOOMRESETZoom Reset key.
KEY_WORDPROCESSORWord Processor key.
KEY_EDITOREditor key.
KEY_SPREADSHEETSpreadsheet key.
KEY_GRAPHICSEDITORGraphics Editor key.
KEY_PRESENTATIONPresentation key.
KEY_DATABASEDatabase key.
KEY_NEWSNews key.
KEY_VOICEMAILVoicemail key.
KEY_ADDRESSBOOKAddress book key.
KEY_MESSENGERMessenger key.
KEY_BRIGHTNESS_TOGGLEBrightness Toggle key.
KEY_SPELLCHECKSpell Check key.
KEY_COFFEECoffee key, which is used to launch screen lock or screen saver.
KEY_MEDIA_REPEATMedia Repeat key.
KEY_IMAGESImages key.
KEY_BUTTONCONFIGButton Configuration key.
KEY_TASKMANAGERTask Manager key.
KEY_JOURNALLog key.
KEY_CONTROLPANELControl Panel key.
KEY_APPSELECTApp Select key.
KEY_SCREENSAVERScreen Saver key.
KEY_ASSISTANTAssistant key.
KEY_KBD_LAYOUT_NEXTNext Keyboard Layout key.
KEY_BRIGHTNESS_MINMin Brightness key.
KEY_BRIGHTNESS_MAXMax Brightness key.
KEY_KBDINPUTASSIST_PREVKeyboard Input-assisted Previous key.
KEY_KBDINPUTASSIST_NEXTKeyboard Input-assisted Next key.
KEY_KBDINPUTASSIST_PREVGROUPKeyboard Input-assisted Previous key.
KEY_KBDINPUTASSIST_NEXTGROUPKeyboard Input-assisted Next key.
KEY_KBDINPUTASSIST_ACCEPTKeyboard Input-assisted Accept key.
KEY_KBDINPUTASSIST_CANCELKeyboard Input-assisted Cancel key.
KEY_FRONTFront key, which is used to launch the windshield defogger.
KEY_SETUPSetup key.
KEY_WAKEUPWakeup key.
KEY_SENDFILESend File key.
KEY_DELETEFILEDelete File key.
KEY_XFERXFER key, which is used to start file transfer.
KEY_PROG1Program key 1.
KEY_PROG2Program key 2.
KEY_MSDOSMS-DOS key.
KEY_SCREENLOCKScreen Lock key.
KEY_DIRECTION_ROTATE_DISPLAYDirectional Rotation Display key.
KEY_CYCLEWINDOWSWindows Cycle key.
KEY_COMPUTERKeys.
KEY_EJECTCLOSECDEject CD key.
KEY_ISOISO key.
KEY_MOVEMove key.
KEY_F13F13 key.
KEY_F14F14 key.
KEY_F15F15 key.
KEY_F16F16 key.
KEY_F17F17 key.
KEY_F18F18 key.
KEY_F19F19 key.
KEY_F20F20 key.
KEY_F21F21 key.
KEY_F22F22 key.
KEY_F23F23 key.
KEY_F24F24 key.
KEY_PROG3Program key 3.
KEY_PROG4Program key 4.
KEY_DASHBOARDDashboard.
KEY_SUSPENDSuspend key.
KEY_HPHP key.
KEY_SOUNDSound key.
KEY_QUESTIONQuestion key.
KEY_CONNECTConnect key.
KEY_SPORTSport key.
KEY_SHOPShop key.
KEY_ALTERASEAlternate key.
KEY_SWITCHVIDEOMODESwitch Video Mode key (monitor, LCD, and TV, etc.).
KEY_BATTERYBattery key.
KEY_BLUETOOTHBluetooth key.
KEY_WLANWLAN key.
KEY_UWBUltra-wideband key.
KEY_WWAN_WIMAXWWAN WiMAX key.
KEY_RFKILLRF Kill key.
KEY_CHANNELChannel key.
KEY_BTN_0Button 0.
KEY_BTN_1Button 1.
KEY_BTN_2Button 2.
KEY_BTN_3Button 3.
KEY_BTN_4Button 4.
KEY_BTN_5Button 5.
KEY_BTN_6Button 6.
KEY_BTN_7Button 7.
KEY_BTN_8Button 8.
KEY_BTN_9Button 9.

Since

10

OH_NativeXComponent_MouseEventAction

enum OH_NativeXComponent_MouseEventAction

Description

Enumerates the mouse event actions.

ValueDescription
OH_NATIVEXCOMPONENT_MOUSE_NONEInvalid mouse event.
OH_NATIVEXCOMPONENT_MOUSE_PRESSMouse button press.
OH_NATIVEXCOMPONENT_MOUSE_RELEASEMouse button release.
OH_NATIVEXCOMPONENT_MOUSE_MOVEMouse movement.

Since

9

OH_NativeXComponent_MouseEventButton

enum OH_NativeXComponent_MouseEventButton

Description

Enumerates the mouse event buttons.

ValueDescription
OH_NATIVEXCOMPONENT_NONE_BUTTONNo button.
OH_NATIVEXCOMPONENT_LEFT_BUTTONLeft mouse button.
OH_NATIVEXCOMPONENT_RIGHT_BUTTONRight mouse button.
OH_NATIVEXCOMPONENT_MIDDLE_BUTTONMiddle mouse button.
OH_NATIVEXCOMPONENT_BACK_BUTTONBack button on the left of the mouse.
OH_NATIVEXCOMPONENT_FORWARD_BUTTONForward key on the left of the mouse.

Since

9

OH_NativeXComponent_TouchEventType

enum OH_NativeXComponent_TouchEventType

Description

Enumerates the touch event types.

ValueDescription
OH_NATIVEXCOMPONENT_DOWNThe touch event is triggered when a finger is pressed.
OH_NATIVEXCOMPONENT_UPThe touch event is triggered when a finger is lifted.
OH_NATIVEXCOMPONENT_MOVEThe touch event is triggered when a finger is moved on the screen.
OH_NATIVEXCOMPONENT_CANCELThe event is triggered when a touch event is canceled.
OH_NATIVEXCOMPONENT_UNKNOWNInvalid touch type.

Since

8

OH_NativeXComponent_TouchPointToolType

enum OH_NativeXComponent_TouchPointToolType

Description

Enumerates the touch point tool types.

ValueDescription
OH_NATIVEXCOMPONENT_TOOL_TYPE_UNKNOWNUnknown tool type.
OH_NATIVEXCOMPONENT_TOOL_TYPE_FINGERFinger.
OH_NATIVEXCOMPONENT_TOOL_TYPE_PENStylus.
OH_NATIVEXCOMPONENT_TOOL_TYPE_RUBBERRubber.
OH_NATIVEXCOMPONENT_TOOL_TYPE_BRUSHBrush.
OH_NATIVEXCOMPONENT_TOOL_TYPE_PENCILPencil.
OH_NATIVEXCOMPONENT_TOOL_TYPE_AIRBRUSHAir brush.
OH_NATIVEXCOMPONENT_TOOL_TYPE_MOUSEMouse.
OH_NATIVEXCOMPONENT_TOOL_TYPE_LENSLens.

Since

9

Function Description

OH_NativeXComponent_AttachNativeRootNode()

int32_t OH_NativeXComponent_AttachNativeRootNode (OH_NativeXComponent * component, ArkUI_NodeHandle root )

Description

Attaches the UI component created through the native API of ArkUI to this OH_NativeXComponent instance.

Since: 12

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
rootPointer to the component instance created through the native API.

Returns

0: success

401: parameter error

OH_NativeXComponent_DetachNativeRootNode()

int32_t OH_NativeXComponent_DetachNativeRootNode (OH_NativeXComponent * component, ArkUI_NodeHandle root )

Description

Detaches the native component of ArkUI from this OH_NativeXComponent instance.

Since: 12

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
rootPointer to the component instance created through the native API.

Returns

0: success

401: parameter error

OH_NativeXComponent_GetKeyEvent()

int32_t OH_NativeXComponent_GetKeyEvent (OH_NativeXComponent * component, OH_NativeXComponent_KeyEvent ** keyEvent )

Description

Obtains the key event scheduled by ArkUI XComponent.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
keyEventPointer to the current key event.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_GetKeyEventAction()

int32_t OH_NativeXComponent_GetKeyEventAction (OH_NativeXComponent_KeyEvent * keyEvent, OH_NativeXComponent_KeyAction * action )

Description

Obtains the action of the specified key event.

Parameters

NameDescription
keyEventPointer to the OH_NativeXComponent_KeyEvent instance.
actionPointer to the key event action.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_GetKeyEventCode()

int32_t OH_NativeXComponent_GetKeyEventCode (OH_NativeXComponent_KeyEvent * keyEvent, OH_NativeXComponent_KeyCode * code )

Description

Obtains the key code of the specified key event.

Parameters

NameDescription
keyEventPointer to the OH_NativeXComponent_KeyEvent instance.
codePointer to the key code of the key event.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_GetKeyEventDeviceId()

int32_t OH_NativeXComponent_GetKeyEventDeviceId (OH_NativeXComponent_KeyEvent * keyEvent, int64_t * deviceId )

Description

Obtains the device ID of the specified key event.

Parameters

NameDescription
keyEventPointer to the OH_NativeXComponent_KeyEvent instance.
deviceIdPointer to the device ID of the key event.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_GetKeyEventSourceType()

int32_t OH_NativeXComponent_GetKeyEventSourceType (OH_NativeXComponent_KeyEvent * keyEvent, OH_NativeXComponent_EventSourceType * sourceType )

Description

Obtains the source type of the specified key event.

Parameters

NameDescription
keyEventPointer to the OH_NativeXComponent_KeyEvent instance.
sourceTypePointer to the source type of the key event.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_GetKeyEventTimeStamp()

int32_t OH_NativeXComponent_GetKeyEventTimeStamp (OH_NativeXComponent_KeyEvent * keyEvent, int64_t * timeStamp )

Description

Obtains the timestamp of the specified key event.

Parameters

NameDescription
keyEventPointer to the OH_NativeXComponent_KeyEvent instance.
timeStampPointer to the timestamp of the key event.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_GetMouseEvent()

int32_t OH_NativeXComponent_GetMouseEvent (OH_NativeXComponent * component, const void * window, OH_NativeXComponent_MouseEvent * mouseEvent )

Description

Obtains the mouse event scheduled by ArkUI XComponent.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
windowHandle to the NativeWindow instance.
mouseEventPointer to the current mouse event.

Returns

Returns the status code of the execution.

Since

9

OH_NativeXComponent_GetNativeXComponent()

OH_NativeXComponent* OH_NativeXComponent_GetNativeXComponent (ArkUI_NodeHandle node)

Description

Obtains the pointer to an OH_NativeXComponent instance based on the specified component instance created by the native API.

Since: 12

Parameters

NameDescription
nodePointer to the component instance created through the native API.

Returns

Pointer to the OH_NativeXComponent instance.

OH_NativeXComponent_GetTouchEvent()

int32_t OH_NativeXComponent_GetTouchEvent (OH_NativeXComponent * component, const void * window, OH_NativeXComponent_TouchEvent * touchEvent )

Description

Obtains the touch event scheduled by the ArkUI XComponent.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
windowHandle to the NativeWindow instance.
touchEventPointer to the current touch event.

Returns

Returns the status code of the execution.

Since

8

OH_NativeXComponent_GetTouchPointTiltX()

int32_t OH_NativeXComponent_GetTouchPointTiltX (OH_NativeXComponent * component, uint32_t pointIndex, float * tiltX )

Description

Obtains the angle between the Y-Z plane of the ArkUI XComponent touch point and the x-axis.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
pointIndexPointer to the index of the touch point.
tiltXPointer to the angle between the Y-Z plane of the touch point and the x-axis.

Returns

Returns the status code of the execution.

Since

9

OH_NativeXComponent_GetTouchPointTiltY()

int32_t OH_NativeXComponent_GetTouchPointTiltY (OH_NativeXComponent * component, uint32_t pointIndex, float * tiltY )

Description

Obtains the angle between the X-Z plane of the ArkUI XComponent touch point and the y-axis.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
pointIndexPointer to the index of the touch point.
tiltYPointer to the angle between the X-Z plane of the touch point and the y-axis.

Returns

Returns the status code of the execution.

Since

9

OH_NativeXComponent_GetTouchPointWindowX()

int32_t OH_NativeXComponent_GetTouchPointWindowX(OH_NativeXComponent * component, uint32_t pointIndex, float * windowX )

Description

Obtains the X coordinate of the touch point relative to the upper left corner of the application window where the ArkUI XComponent is located.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
pointIndexPointer to the index of the touch point.
windowXPointer to the X coordinate of the touch point relative to the upper left corner of the application window.

Returns

Returns the status code of the execution.

Since

12

OH_NativeXComponent_GetTouchPointWindowY()

int32_t OH_NativeXComponent_GetTouchPointWindowY(OH_NativeXComponent * component, uint32_t pointIndex, float * windowY )

Description

Obtains the Y coordinate of the touch point relative to the upper left corner of the application window where the ArkUI XComponent is located.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
pointIndexPointer to the index of the touch point.
windowYPointer to the Y coordinate of the touch point relative to the upper left corner of the application window.

Returns

Returns the status code of the execution.

Since

12

OH_NativeXComponent_GetTouchPointDisplayX()

int32_t OH_NativeXComponent_GetTouchPointDisplayX(OH_NativeXComponent * component, uint32_t pointIndex, float * displayX )

Description

Obtains the X coordinate of the touch point relative to the upper left corner of the screen where the ArkUI XComponent is located.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
pointIndexPointer to the index of the touch point.
displayXPointer to the X coordinate of the touch point relative to the upper left corner of the screen.

Returns

Returns the status code of the execution.

Since

12

OH_NativeXComponent_GetTouchPointDisplayY()

int32_t OH_NativeXComponent_GetTouchPointDisplayY(OH_NativeXComponent * component, uint32_t pointIndex, float * displayY )

Description

Obtains the Y coordinate of the touch point relative to the upper left corner of the screen where the ArkUI XComponent is located.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
pointIndexPointer to the index of the touch point.
displayYPointer to the Y coordinate of the touch point relative to the upper left corner of the screen.

Returns

Returns the status code of the execution.

Since

12

OH_NativeXComponent_GetTouchPointToolType()

int32_t OH_NativeXComponent_GetTouchPointToolType (OH_NativeXComponent * component, uint32_t pointIndex, OH_NativeXComponent_TouchPointToolType * toolType )

Description

Obtains the ArkUI XComponent touch point tool type.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
pointIndexPointer to the index of the touch point.
toolTypePointer to the tool type.

Returns

Returns the status code of the execution.

Since

9

OH_NativeXComponent_GetXComponentId()

int32_t OH_NativeXComponent_GetXComponentId (OH_NativeXComponent * component, char * id, uint64_t * size )

Description

Obtains the ID of ArkUI XComponent.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
idPointer to the character buffer for storing the ID of the OH_NativeXComponent instance. Note that null terminators will be attached to the character buffer, so the size of the character buffer should be at least one unit greater than the length of the real ID. The recommended size is [OH_XCOMPONENT_ID_LEN_MAX + 1].
sizePointer to the ID length, which is used to receive the ID length information.

Returns

Returns the status code of the execution.

Since

8

OH_NativeXComponent_GetXComponentOffset()

int32_t OH_NativeXComponent_GetXComponentOffset (OH_NativeXComponent * component, const void * window, double * x, double * y )

Description

Obtains the offset of the surface held by the XComponent relative to the upper left corner of its parent component.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
windowHandle to the NativeWindow instance.
xPointer to the X coordinate of the current surface relative to the upper left corner of the XComponent's parent component.
yPointer to the Y coordinate of the current surface relative to the upper left corner of the XComponent's parent component.

Returns

Returns the status code of the execution.

Since

8

OH_NativeXComponent_GetXComponentSize()

int32_t OH_NativeXComponent_GetXComponentSize (OH_NativeXComponent * component, const void * window, uint64_t * width, uint64_t * height )

Description

Obtains the size of the surface held by the ArkUI XComponent.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
windowHandle to the NativeWindow instance.
widthPointer to the width of the current surface.
heightPointer to the height of the current surface.

Returns

Returns the status code of the execution.

Since

8

OH_NativeXComponent_RegisterBlurEventCallback()

int32_t OH_NativeXComponent_RegisterBlurEventCallback (OH_NativeXComponent * component, void(*callback)(OH_NativeXComponent *component, void *window))

Description

Registers the focus loss event callback for this OH_NativeXComponent instance.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the focus loss event callback.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_RegisterCallback()

int32_t OH_NativeXComponent_RegisterCallback (OH_NativeXComponent * component, OH_NativeXComponent_Callback * callback )

Description

Registers a callback for this OH_NativeXComponent instance.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the surface lifecycle and touch event callback.

Returns

Returns the status code of the execution.

Since

8

OH_NativeXComponent_RegisterFocusEventCallback()

int32_t OH_NativeXComponent_RegisterFocusEventCallback (OH_NativeXComponent * component, void(*callback)(OH_NativeXComponent *component, void *window))

Description

Registers the focus obtaining event callback for this OH_NativeXComponent instance.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the focus obtaining event callback.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_RegisterKeyEventCallback()

int32_t OH_NativeXComponent_RegisterKeyEventCallback (OH_NativeXComponent * component, void(*callback)(OH_NativeXComponent *component, void *window))

Description

Registers the key event callback for this OH_NativeXComponent instance.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the key event callback.

Returns

Returns the status code of the execution.

Since

10

OH_NativeXComponent_RegisterMouseEventCallback()

int32_t OH_NativeXComponent_RegisterMouseEventCallback (OH_NativeXComponent * component, OH_NativeXComponent_MouseEvent_Callback * callback )

Description

Registers the mouse event callback for this OH_NativeXComponent instance.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the mouse event callback.

Returns

Returns the status code of the execution.

Since

9

OH_NativeXComponent_RegisterOnFrameCallback()

int32_t OH_NativeXComponent_RegisterOnFrameCallback (OH_NativeXComponent* component, void (*callback)(OH_NativeXComponent *component, uint64_t timestamp, uint64_t targetTimestamp))

Description

Registers the display update callback for this OH_NativeXComponent instance and enables the callback for each frame.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the display update callback.

Returns

Returns the status code of the execution.

Since

11

OH_NativeXComponent_RegisterOnTouchInterceptCallback()

int32_t OH_NativeXComponent_RegisterOnTouchInterceptCallback (OH_NativeXComponent * component, HitTestMode(*callback)(OH_NativeXComponent *component, ArkUI_UIInputEvent *event))

Description

Registers a custom event intercept callback for an OH_NativeXComponent and enables the callback during the hit test.

Since: 12

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the custom event intercept callback.

Returns

Returns 0 if the operation is successful; returns 401 if a parameter error occurs.

OH_NativeXComponent_RegisterUIInputEventCallback()

int32_t OH_NativeXComponent_RegisterUIInputEventCallback (OH_NativeXComponent * component, void(*callback)(OH_NativeXComponent *component, ArkUI_UIInputEvent *event, ArkUI_UIInputEvent_Type type), ArkUI_UIInputEvent_Type type )

Description

Registers a UI input event callback for an OH_NativeXComponent instance and enables the callback to be invoked when a UI input event is received.

Since: 12

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the UI input event callback.
typeType of the current UI input event.

Returns

Returns the status code of the execution.

OH_NativeXComponent_SetExpectedFrameRateRange()

int32_t OH_NativeXComponent_SetExpectedFrameRateRange (OH_NativeXComponent * component, OH_NativeXComponent_ExpectedRateRange * range )

Description

Sets the expected frame rate range.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
rangePointer to the expected frame rate range.

Returns

Returns the status code of the execution.

Since

11

OH_NativeXComponent_UnregisterOnFrameCallback()

int32_t OH_NativeXComponent_UnregisterOnFrameCallback (OH_NativeXComponent * component)

Description

Deregisters the display update callback for this OH_NativeXComponent instance and disables the callback for each frame.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.

Returns

Returns the status code of the execution.

Since

11

OH_NativeXComponent_SetNeedSoftKeyboard()

int32_t OH_NativeXComponent_SetNeedSoftKeyboard(OH_NativeXComponent* component, bool isNeedSoftKeyboard)

Description

Sets whether the soft keyboard is required for an OH_NativeXComponent instance.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
isNeedSoftKeyboardWhether the soft keyboard is required for the OH_NativeXComponent instance.

Returns

Returns the status code of the execution.

Since

12

OH_NativeXComponent_RegisterSurfaceShowCallback()

int32_t OH_NativeXComponent_RegisterSurfaceShowCallback (OH_NativeXComponent * component, void(*callback)(OH_NativeXComponent *component, void *window))

Description

Registers a surface display callback for an OH_NativeXComponent instance. The callback is invoked whenever the application is switched to the foreground.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the surface display callback.

Returns

Returns the status code of the execution.

Since

12

OH_NativeXComponent_RegisterSurfaceHideCallback()

int32_t OH_NativeXComponent_RegisterSurfaceHideCallback (OH_NativeXComponent * component, void(*callback)(OH_NativeXComponent *component, void *window))

Description

Registers a surface hiding callback for an OH_NativeXComponent instance. The callback is invoked whenever the application is switched to the background.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
callbackPointer to the surface hiding callback.

Returns

Returns the status code of the execution.

Since

12

OH_NativeXComponent_GetTouchEventSourceType()

int32_t OH_NativeXComponent_GetTouchEventSourceType (OH_NativeXComponent* component, int32_t pointId, OH_NativeXComponent_EventSourceType* sourceType);

Description

Obtains the touch event source type of an OH_NativeXComponent instance.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
pointIdID of the touch point.
NOTE
The touch event source type can be correctly returned only when the ID passed in is the ID of the touch point that triggers the touch event. Otherwise, OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER is returned.
sourceTypePointer to the touch event source type.

Returns

Returns OH_NATIVEXCOMPONENT_RESULT_SUCCESS if the operation is successful.

Returns OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER if a parameter error occurs.

Returns OH_NATIVEXCOMPONENT_RESULT_FAILED if any other error occurs.

Since

12

OH_NativeXComponent_GetNativeAccessibilityProvider()

int32_t OH_NativeXComponent_GetNativeAccessibilityProvider(
    OH_NativeXComponent* component, ArkUI_AccessibilityProvider** handle);

Description

Obtains the accessibility provider handle for an ArkUI XComponent.

Parameters

NameDescription
componentPointer to the OH_NativeXComponent instance.
handlePointer to the accessibility provider handle.

Returns

Returns OH_NATIVEXCOMPONENT_RESULT_SUCCESS if the operation is successful.

Returns OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER if a parameter error occurs.

Returns OH_NATIVEXCOMPONENT_RESULT_FAILED if any other error occurs.

Since

13

Variable Description

OH_XCOMPONENT_ID_LEN_MAX

const uint32_t OH_XCOMPONENT_ID_LEN_MAX = 128

Description

Maximum length of the ArkUI XComponent ID.

Since

8

OH_MAX_TOUCH_POINTS_NUMBER

const uint32_t OH_MAX_TOUCH_POINTS_NUMBER = 10

Description

Maximum number of identifiable touch points in a touch event.

Since

8

action

OH_NativeXComponent_MouseEventAction OH_NativeXComponent_MouseEvent::action

Description

Action of the mouse event.

Since

8

button

OH_NativeXComponent_MouseEventButton OH_NativeXComponent_MouseEvent::button

Description

Mouse event button.

Since

8

deviceId

int64_t OH_NativeXComponent_TouchEvent::deviceId = 0

Description

ID of the device where the current touch event is triggered.

Since

8

DispatchHoverEvent

void(* OH_NativeXComponent_MouseEvent_Callback::DispatchHoverEvent) (OH_NativeXComponent *component, bool isHover)

Description

Invoked when a hover event is triggered.

Since

8

DispatchMouseEvent

void(* OH_NativeXComponent_MouseEvent_Callback::DispatchMouseEvent) (OH_NativeXComponent *component, void *window)

Description

Invoked when a mouse event is triggered.

Since

8

DispatchTouchEvent

void(* OH_NativeXComponent_Callback::DispatchTouchEvent) (OH_NativeXComponent *component, void *window)

Description

Invoked when a touch event is triggered.

Since

8

force [1/2]

float OH_NativeXComponent_TouchPoint::force = 0.0

Description

Pressure of the touch event.

Since

8

force [2/2]

float OH_NativeXComponent_TouchEvent::force = 0.0

Description

Pressure of the touch event.

Since

8

id [1/2]

int32_t OH_NativeXComponent_TouchPoint::id = 0

Description

Unique identifier of the finger.

Since

8

id [2/2]

int32_t OH_NativeXComponent_TouchEvent::id = 0

Description

Unique identifier of the finger.

Since

8

isPressed

bool OH_NativeXComponent_TouchPoint::isPressed = false

Description

Whether the current point is pressed.

Since

8

numPoints

uint32_t OH_NativeXComponent_TouchEvent::numPoints = 0

Description

Number of current touch points.

Since

8

OnSurfaceChanged

void(* OH_NativeXComponent_Callback::OnSurfaceChanged) (OH_NativeXComponent *component, void *window)

Description

Invoked when the surface changes.

Since

8

OnSurfaceCreated

void(* OH_NativeXComponent_Callback::OnSurfaceCreated) (OH_NativeXComponent *component, void *window)

Description

Invoked when a surface is created.

Since

8

OnSurfaceDestroyed

void(* OH_NativeXComponent_Callback::OnSurfaceDestroyed) (OH_NativeXComponent *component, void *window)

Description

Invoked when the surface is destroyed.

Since

8

screenX [1/3]

float OH_NativeXComponent_TouchPoint::screenX = 0.0

Description

X coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.

Since

8

screenX [2/3]

float OH_NativeXComponent_TouchEvent::screenX = 0.0

Description

X coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.

Since

8

screenX [3/3]

float OH_NativeXComponent_MouseEvent::screenX

Description

X coordinate of the click point relative to the upper left corner of the application screen where the XComponent is located.

Since

8

screenY [1/3]

float OH_NativeXComponent_TouchPoint::screenY = 0.0

Description

Y coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.

Since

8

screenY [2/3]

float OH_NativeXComponent_TouchEvent::screenY = 0.0

Description

Y coordinate of the touch point relative to the upper left corner of the application window where the XComponent is located.

Since

8

screenY [3/3]

float OH_NativeXComponent_MouseEvent::screenY

Description

Y coordinate of the click point relative to the upper left corner of the application window where the XComponent is located.

Since

8

size [1/2]

double OH_NativeXComponent_TouchPoint::size = 0.0

Description

Contact area between the finger pad and the screen.

Since

8

size [2/2]

double OH_NativeXComponent_TouchEvent::size = 0.0

Description

Contact area between the finger pad and the screen.

Since

8

timeStamp [1/2]

long long OH_NativeXComponent_TouchPoint::timeStamp = 0

Description

Timestamp of the touch point.

Since

8

timeStamp [2/2]

long long OH_NativeXComponent_TouchEvent::timeStamp = 0

Description

Timestamp of the touch point.

Since

8

timestamp

int64_t OH_NativeXComponent_MouseEvent::timestamp

Description

Timestamp of the mouse event.

Since

8

touchPoints

OH_NativeXComponent_TouchPoint OH_NativeXComponent_TouchEvent::touchPoints[OH_MAX_TOUCH_POINTS_NUMBER]

Description

Array of the touch points.

Since

8

type [1/2]

OH_NativeXComponent_TouchEventType OH_NativeXComponent_TouchPoint::type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN

Description

Touch type of the touch point.

Since

8

type [2/2]

OH_NativeXComponent_TouchEventType OH_NativeXComponent_TouchEvent::type = OH_NativeXComponent_TouchEventType::OH_NATIVEXCOMPONENT_UNKNOWN

Description

Touch type of the touch point.

Since

8

x [1/3]

float OH_NativeXComponent_TouchPoint::x = 0.0

Description

X coordinate of the touch point relative to the left edge of the XComponent.

Since

8

x [2/3]

float OH_NativeXComponent_TouchEvent::x = 0.0

Description

X coordinate of the touch point relative to the left edge of the XComponent.

Since

8

x [3/3]

float OH_NativeXComponent_MouseEvent::x

Description

X coordinate of the clicked point relative to the upper left corner of the component.

Since

8

y [1/3]

float OH_NativeXComponent_TouchPoint::y = 0.0

Description

Y coordinate of the touch point relative to the upper edge of the XComponent.

Since

8

y [2/3]

float OH_NativeXComponent_TouchEvent::y = 0.0

Description

Y coordinate of the touch point relative to the upper edge of the XComponent.

Since

8

y [3/3]

float OH_NativeXComponent_MouseEvent::y

Description

Y coordinate of the clicked point relative to the upper left corner of the component.

Since

8

expected

int32_t OH_NativeXComponent_ExpectedRateRange::expected

Description

Expected frame rate range.

Since

11

max

int32_t OH_NativeXComponent_ExpectedRateRange::max

Description

Maximum value of the expected frame rate range.

Since

11

min

int32_t OH_NativeXComponent_ExpectedRateRange::min

Description

Minimum value of the expected frame rate range.

Since

11

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI

harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent

harmony 鸿蒙ARKUI_TextPickerRangeContent

harmony 鸿蒙ArkUI_AnimateCompleteCallback

harmony 鸿蒙ArkUI_AttributeItem

harmony 鸿蒙ArkUI_ColorStop

harmony 鸿蒙ArkUI_ContextCallback

harmony 鸿蒙ArkUI_EventModule

harmony 鸿蒙ArkUI_ExpectedFrameRateRange

harmony 鸿蒙ArkUI_IntOffset

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/OGz5Rw