Expand description
Source:
English Documentation Chinese Documentation
§Feature flags
api-16— Enables bindings for OpenHarmony API-level 16.api-17— Enables bindings for OpenHarmony API-level 17.api-18— Enables bindings for OpenHarmony API-level 18 (5.1.0).api-19— Enables bindings for OpenHarmony API-level 19.api-20— Enables bindings for OpenHarmony API-level 20.api-21— Enables bindings for OpenHarmony API-level 21.arkui— Enables XComponent APIs that depend on ArkUI.keyboard-types— Provides optional conversion from the OH keyboard enum to the keyboard-types enum.document-features— Document available features when building the documentation
Modules§
- keyboard_
types_ compat keyboard-types
Structs§
- ArkUI_
XComponent_ Image Analyzer State api-18 - Status code for AI analyzer.
- OH_
ArkUI_ Surface Callback api-19 - Define the surface lifecycle callback.
- OH_
ArkUI_ Surface Holder api-19 - Provides an encapsulated OH_ArkUI_SurfaceHolder instance.
- OH_
NativeX Component - Provides an encapsulated OH_NativeXComponent instance.
- OH_
NativeX Component_ Callback - Registers the surface lifecycle and touch event callbacks.
- OH_
NativeX Component_ Event Source Type - Represents the touch event source type.
- OH_
NativeX Component_ Expected Rate Range api-11 - Defines the expected frame rate range struct.
- OH_
NativeX Component_ Extra Mouse Event Info api-20 - Provides an encapsulated OH_NativeXComponent_ExtraMouseEventInfo instance which has extra info compared to OH_NativeXComponent_MouseEvent.
- OH_
NativeX Component_ Historical Point - Represents the historical point.
- OH_
NativeX Component_ KeyAction - Represents the key event action.
- OH_
NativeX Component_ KeyCode - Represents the key event code.
- OH_
NativeX Component_ KeyEvent - Provides an encapsulated OH_NativeXComponent_KeyEvent instance.
- OH_
NativeX Component_ Mouse Event - Represents the mouse event information.
- OH_
NativeX Component_ Mouse Event Action - Represents the mouse event action.
- OH_
NativeX Component_ Mouse Event Button - Represents the mouse event button.
- OH_
NativeX Component_ Mouse Event_ Callback - Registers the mouse event callbacks.
- OH_
NativeX Component_ Touch Event - Represents the touch event.
- OH_
NativeX Component_ Touch Event Type - Represents the type of touch event.
- OH_
NativeX Component_ Touch Event_ Source Tool - Represents the source tool type of TouchEvent
- OH_
NativeX Component_ Touch Point - Represents the touch point information of touch event.
- OH_
NativeX Component_ Touch Point Tool Type - Represents the touch point tool type.
- Xcomponent
Result - Enumerates the API access states.
Constants§
- OH_
MAX_ TOUCH_ POINTS_ NUMBER - OH_
NATIVE_ XCOMPONENT_ MAX_ TOUCH_ POINTS_ NUMBER - OH_
NATIVE_ XCOMPONENT_ OBJ - OH_
XCOMPONENT_ ID_ LEN_ MAX
Functions§
- OH_
ArkUI_ ⚠Accessibility Provider_ Create api-20 - Create a ArkUI_AccessibilityProvider object from an XComponent node.
- OH_
ArkUI_ ⚠Accessibility Provider_ Dispose api-20 - Disposes of an ArkUI_AccessibilityProvider object.
- OH_
ArkUI_ ⚠Surface Callback_ Create api-19 - Create a OH_ArkUI_SurfaceCallback object.
- OH_
ArkUI_ ⚠Surface Callback_ Dispose api-19 - Disposes of a OH_ArkUI_SurfaceCallback object.
- OH_
ArkUI_ ⚠Surface Callback_ SetSurface Changed Event api-19 - Set the surface changed event of the surface callback.
- OH_
ArkUI_ ⚠Surface Callback_ SetSurface Created Event api-19 - Set the surface created event of the surface callback.
- OH_
ArkUI_ ⚠Surface Callback_ SetSurface Destroyed Event api-19 - Set the surface destroyed event of the surface callback.
- OH_
ArkUI_ ⚠Surface Callback_ SetSurface Hide Event api-20 - Set the surface hide event of the surface callback.
- OH_
ArkUI_ ⚠Surface Callback_ SetSurface Show Event api-20 - Set the surface show event of the surface callback.
- OH_
ArkUI_ ⚠Surface Holder_ AddSurface Callback api-19 - Adds a surface lifecycle callback for this OH_ArkUI_SurfaceHolder instance.
- OH_
ArkUI_ ⚠Surface Holder_ Create api-19 - Create a OH_ArkUI_SurfaceHolder object from an XComponent node.
- OH_
ArkUI_ ⚠Surface Holder_ Dispose api-19 - Disposes of a OH_ArkUI_SurfaceHolder object.
- OH_
ArkUI_ ⚠Surface Holder_ GetUser Data api-19 - Obtains the custom data saved on the OH_ArkUI_SurfaceHolder instance.
- OH_
ArkUI_ ⚠Surface Holder_ Remove Surface Callback api-19 - Removes a previously added surface lifecycle callback from this OH_ArkUI_SurfaceHolder instance.
- OH_
ArkUI_ ⚠Surface Holder_ SetUser Data api-19 - Saves custom data on the OH_ArkUI_SurfaceHolder instance.
- OH_
ArkUI_ ⚠XComponent_ Finalize api-19 - Finalize the XComponent node.
- OH_
ArkUI_ ⚠XComponent_ GetNative Window api-19 - Obtains the nativeWindow associated with a OH_ArkUI_SurfaceHolder instance.
- OH_
ArkUI_ ⚠XComponent_ Initialize api-19 - Initialize the XComponent node.
- OH_
ArkUI_ ⚠XComponent_ IsInitialized api-19 - Obtains whether the XComponent node has initalized or not.
- OH_
ArkUI_ ⚠XComponent_ Register OnFrame Callback api-20 - Registers an onFrame callback for the XComponent node.
- OH_
ArkUI_ ⚠XComponent_ SetAuto Initialize api-19 - Set whether the XComponent node needs to initialize automatically.
- OH_
ArkUI_ ⚠XComponent_ SetExpected Frame Rate Range api-20 - Set the Expected FrameRateRange for the XComponent node.
- OH_
ArkUI_ ⚠XComponent_ SetNeed Soft Keyboard api-20 - Set whether the XComponent node needs soft keyboard when focused.
- OH_
ArkUI_ ⚠XComponent_ Start Image Analyzer api-18 - Start image analyzer for the specified XComponent instance created by the native API.
- OH_
ArkUI_ ⚠XComponent_ Stop Image Analyzer api-18 - Stop image analyzer for the specified XComponent instance created by the native API.
- OH_
ArkUI_ ⚠XComponent_ Unregister OnFrame Callback api-20 - UnRegister the onFrame callback for the XComponent node.
- OH_
NativeX ⚠Component_ Attach Native Root Node Deprecated api-12 - Attaches the UI component created through the native API of ArkUI to this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Detach Native Root Node Deprecated api-12 - Detaches the native component of ArkUI from this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ GetExtra Mouse Event Info api-20 - Obtains the extra mouse event dispatched by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetHistorical Points - Obtains the touch event dispatched by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetKey Event - Obtains the key event dispatched by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetKey Event Action - Obtains the action of the key event.
- OH_
NativeX ⚠Component_ GetKey Event Caps Lock State api-20 - Obtains the Caps Lock state of the key event.
- OH_
NativeX ⚠Component_ GetKey Event Code - Obtains the keyCode of the key event.
- OH_
NativeX ⚠Component_ GetKey Event Device Id - Obtains the deviceId of the key event.
- OH_
NativeX ⚠Component_ GetKey Event Modifier KeyStates api-20 - Obtains the state of the modifier keys of the key event.
- OH_
NativeX ⚠Component_ GetKey Event NumLock State api-20 - Obtains the Num Lock state of the key event.
- OH_
NativeX ⚠Component_ GetKey Event Scroll Lock State api-20 - Obtains the Scroll Lock state of the key event.
- OH_
NativeX ⚠Component_ GetKey Event Source Type - Obtains the sourceType of the key event.
- OH_
NativeX ⚠Component_ GetKey Event Timestamp - Obtains the timestamp of the key event.
- OH_
NativeX ⚠Component_ GetMouse Event - Obtains the mouse event dispatched by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetMouse Event Modifier KeyStates api-20 - Obtains the state of the modifier keys of the mouse event.
- OH_
NativeX ⚠Component_ GetNative Accessibility Provider api-13 - Obtains the pointer to the ArkUI_AccessibilityProvider instance of this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ GetTouch Event - Obtains the touch event dispatched by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetTouch Event Source Type api-12 - Obtains the touch event’s source type dispatched by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetTouch Point DisplayX api-12 - Obtains the x coordinate of a specific touch point relative to the upper left corner of
- OH_
NativeX ⚠Component_ GetTouch Point DisplayY api-12 - Obtains the y coordinate of a specific touch point relative to the upper left corner of
- OH_
NativeX ⚠Component_ GetTouch Point TiltX - Obtains the touch pointer tiltX by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetTouch Point TiltY - Obtains the touch pointer tiltX by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetTouch Point Tool Type - Obtains the touch pointer tool type by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetTouch Point WindowX api-12 - Obtains the x coordinate of a specific touch point relative to the upper left corner of
- OH_
NativeX ⚠Component_ GetTouch Point WindowY api-12 - Obtains the y coordinate of a specific touch point relative to the upper left corner of
- OH_
NativeX ⚠Component_ GetX Component Id - Obtains the ID of the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetX Component Offset - Obtains the offset of the surface held by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ GetX Component Size - Obtains the size of the surface held by the ArkUI XComponent.
- OH_
NativeX ⚠Component_ Register Blur Event Callback - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Register Callback - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Register Focus Event Callback - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Register KeyEvent Callback - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Register KeyEvent Callback With Result api-14 - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Register Mouse Event Callback - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Register OnFrame Callback api-11 - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Register OnTouch Intercept Callback api-12 - Registers a custom event intercept callback for an OH_NativeXComponent instance. This enables the specified during hit testing. UI input-related operations are not supported on event objects received through this callback. For full functionality, use the NODE_ON_TOUCH_INTERCEPT event on native nodes instead.
- OH_
NativeX ⚠Component_ Register Surface Hide Callback api-12 - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ Register Surface Show Callback api-12 - Registers a callback for this OH_NativeXComponent instance.
- OH_
NativeX ⚠Component_ RegisterUI Input Event Callback api-12 - 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. Currently, only axis events are supported.
- OH_
NativeX ⚠Component_ SetExpected Frame Rate Range api-11 - Set the Expected FrameRateRange.
- OH_
NativeX ⚠Component_ SetNeed Soft Keyboard api-12 - Set whether the OH_NativeXComponent instance needs soft keyboard.
- OH_
NativeX ⚠Component_ Unregister OnFrame Callback api-11 - UnRegister a callback for this OH_NativeXComponent instance.