Available on crate feature
api-12 only.Structs§
- ArkUI_
Attribute Item - Defines the general input parameter structure of the [
setAttribute] function. - ArkUI_
Inspector Error Code api-15 - Enumerates the inspector error codes.
- ArkUI_
Native NodeAPI_ 1 - Declares a collection of native node APIs provided by ArkUI.
- ArkUI_
Node Adapter - ArkUI_
Node Adapter Event - Defines the component adapter event.
- ArkUI_
Node Adapter Event Type - Enumerates component adapter events.
- ArkUI_
Node Attribute Type - Defines the ArkUI style attributes that can be set on the native side.
- ArkUI_
Node Component Event - Defines the parameter type of the component callback event.
- ArkUI_
Node Content Event - Defines the general structure of a node content event.
- ArkUI_
Node Content Event Type - Defines the node content event type.
- ArkUI_
Node Custom Event - Defines the general structure of a custom component event.
- ArkUI_
Node Custom Event Type - Defines the custom component event type.
- ArkUI_
Node Dirty Flag - Defines the dirty area flag passed in the ::markDirty API.
- ArkUI_
Node Event - Defines the common structure type of a component event.
- ArkUI_
Node Event Type - Enumerates the event types supported by the NativeNode component.
- ArkUI_
Node Type - Enumerates ArkUI component types that can be created on the native side.
- ArkUI_
String Async Event - Defines the string type parameter used by the component callback event.
- ArkUI_
Text Change Event api-15 - Defines a hybrid data structure for component events.
Functions§
- OH_
ArkUI_ ⚠AddSupportedUI States api-20 - Adds the UI state style supported by the component. To handle states change efficiently, need to specify the states of interest and the corresponding handler. When a state of interest occurs, the handler will be executed.
- OH_
ArkUI_ ⚠GetContext ByNode - Obtain the UIContext pointer to the page where the node is located.
- OH_
ArkUI_ ⚠GetNode Snapshot api-15 - Get the snapshot pixelmap for the given node synchronously, will get error if the node is not on the tree or is not rendered yet. Note: the pixelmap should be released through OH_PixelmapNative_Release when it’s not used any more.
- OH_
ArkUI_ ⚠List_ Close AllSwipe Actions - Collapse the ListItem in its expanded state.
- OH_
ArkUI_ ⚠Native Module_ Invalidate Attributes api-21 - Triggers node updates in the current frame. When node attributes are modified after the current frame’s build phase (i.e., after the unified processing of dirty nodes), the node updates will be deferred to the next frame. This function forces immediate node updates within the current frame to ensure rendering effects are applied synchronously.
- OH_
ArkUI_ ⚠Native Module_ Register Common Event api-21 - Register common event callback of target node.
- OH_
ArkUI_ ⚠Native Module_ Register Common Visible Area Approximate Change Event api-21 - Register common visible area approximate change event callback of target node.
- OH_
ArkUI_ ⚠Native Module_ Unregister Common Event api-21 - Unregister common event callback of target node.
- OH_
ArkUI_ ⚠Native Module_ Unregister Common Visible Area Approximate Change Event api-21 - Unregister common visible area approximate change event callback of target node.
- OH_
ArkUI_ ⚠Node Adapter Event_ GetHost Node - Obtains the scrollable container node that uses the specified adapter.
- OH_
ArkUI_ ⚠Node Adapter Event_ GetItem Index - Obtains the index of the element to be operated for the specified adapter event.
- OH_
ArkUI_ ⚠Node Adapter Event_ GetRemoved Node - Obtains the element to be removed for the event to be destroyed.
- OH_
ArkUI_ ⚠Node Adapter Event_ GetType - Obtains the event type.
- OH_
ArkUI_ ⚠Node Adapter Event_ GetUser Data - Obtains the custom data passed in during registration of the specified event.
- OH_
ArkUI_ ⚠Node Adapter Event_ SetItem - Sets the component to be added to the specified adapter.
- OH_
ArkUI_ ⚠Node Adapter Event_ SetNode Id - Sets the component ID to be generated.
- OH_
ArkUI_ ⚠Node Adapter_ Create - Creates a component adapter.
- OH_
ArkUI_ ⚠Node Adapter_ Dispose - Destroys a component adapter.
- OH_
ArkUI_ ⚠Node Adapter_ GetAll Items - Obtains all elements stored in the specified adapter.
- OH_
ArkUI_ ⚠Node Adapter_ GetTotal Node Count - Obtains the total number of elements in the specified adapter.
- OH_
ArkUI_ ⚠Node Adapter_ Insert Item - Instructs the specified adapter to insert certain elements.
- OH_
ArkUI_ ⚠Node Adapter_ Move Item - Instructs the specified adapter to move certain elements.
- OH_
ArkUI_ ⚠Node Adapter_ Register Event Receiver - Registers an event callback for the adapter.
- OH_
ArkUI_ ⚠Node Adapter_ Reload AllItems - Instructs the specified adapter to reload all elements.
- OH_
ArkUI_ ⚠Node Adapter_ Reload Item - Instructs the specified adapter to reload certain elements.
- OH_
ArkUI_ ⚠Node Adapter_ Remove Item - Instructs the specified adapter to remove certain elements.
- OH_
ArkUI_ ⚠Node Adapter_ SetTotal Node Count - Sets the total number of elements in the specified adapter.
- OH_
ArkUI_ ⚠Node Adapter_ Unregister Event Receiver - Deregisters an event callback for the adapter.
- OH_
ArkUI_ ⚠Node Content Event_ GetEvent Type - Obtains the type of a node content event.
- OH_
ArkUI_ ⚠Node Content Event_ GetNode Content Handle - Obtains the node content object that triggers a node content event.
- OH_
ArkUI_ ⚠Node Content_ AddNode - Add a node to a node content.
- OH_
ArkUI_ ⚠Node Content_ GetUser Data - Obtains the custom data saved on the specified node content.
- OH_
ArkUI_ ⚠Node Content_ Insert Node - insert a node into a node content at a given position.
- OH_
ArkUI_ ⚠Node Content_ Register Callback - register a callback function to a node content.
- OH_
ArkUI_ ⚠Node Content_ Remove Node - remove a node from a node content.
- OH_
ArkUI_ ⚠Node Content_ SetUser Data - Saves custom data on the specified node content.
- OH_
ArkUI_ ⚠Node Custom Event_ GetCustom Span Draw Info - Obtains the drawing information of a custom span through a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ GetCustom Span Measure Info - Obtains the measurement information of a custom span through a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ GetDraw Context InDraw - Obtains the drawing context through a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ GetEvent Target Id - Obtains the ID of a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ GetEvent Type - Obtains the event type through a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ GetLayout Constraint InMeasure - Obtains the size constraint for measurement through a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ GetNode Handle - Obtains a component object through a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ GetPosition InLayout - Obtains the expected position of a component relative to its parent component in the layout phase through a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ GetUser Data - Obtains custom event parameters through a custom component event.
- OH_
ArkUI_ ⚠Node Custom Event_ SetCustom Span Metrics - Sets the measurement metrics of a custom span through a custom component event.
- OH_
ArkUI_ ⚠Node Event_ GetEvent Type - Obtains the type of a component event.
- OH_
ArkUI_ ⚠Node Event_ GetInput Event - Obtains input event (for example, touch event) data for a component event.
- OH_
ArkUI_ ⚠Node Event_ GetNode Component Event - Obtains the numerical data in a component event.
- OH_
ArkUI_ ⚠Node Event_ GetNode Handle - Obtains the component object that triggers a component event.
- OH_
ArkUI_ ⚠Node Event_ GetNumber Value - Obtains the numeric-type parameter of a component event.
- OH_
ArkUI_ ⚠Node Event_ GetString Async Event - Obtains the string data in a component event.
- OH_
ArkUI_ ⚠Node Event_ GetString Value - Obtains the string-type parameter of a component event. The string data is valid only during an event callback. To use it outside an event callback, you are advised to copy the string data.
- OH_
ArkUI_ ⚠Node Event_ GetTarget Id - Obtains the custom ID of a component event.
- OH_
ArkUI_ ⚠Node Event_ GetText Change Event api-15 - Obtains the ArkUI_TextChangeEvent data from a component event.
- OH_
ArkUI_ ⚠Node Event_ GetUser Data - Obtains the custom data in a component event.
- OH_
ArkUI_ ⚠Node Event_ SetReturn Number Value - Sets the return value for a component event.
- OH_
ArkUI_ ⚠Node Utils_ AddCustom Property api-13 - Add the custom property of the component. This interface only works on the main thread.
- OH_
ArkUI_ ⚠Node Utils_ GetActive Children Info api-14 - Retrieve all active child nodes of a node. Span will not be counted in the children.
- OH_
ArkUI_ ⚠Node Utils_ GetAttached Node Handle ById api-15 - Get the node handle by id.
- OH_
ArkUI_ ⚠Node Utils_ GetChild With Expand Mode api-15 - Obtains a subnode by position with the expand mode.
- OH_
ArkUI_ ⚠Node Utils_ GetCross Language Option api-15 - Get the cross-language option of the target node handle.
- OH_
ArkUI_ ⚠Node Utils_ GetCurrent Page Root Node api-14 - Retrieve the root node of the current page.
- OH_
ArkUI_ ⚠Node Utils_ GetCustom Property api-14 - Get the value of the custom property of the component.
- OH_
ArkUI_ ⚠Node Utils_ GetFirst Child Index Without Expand api-15 - Obtains the index of the current FrameNode’s first child node which is on the tree.
- OH_
ArkUI_ ⚠Node Utils_ GetLast Child Index Without Expand api-15 - Obtains the index of the current FrameNode’s last child node which is on the tree.
- OH_
ArkUI_ ⚠Node Utils_ GetLayout Position - Obtain the position of the component layout area relative to the parent component. The relative position of the layout area does not include graphic variation attributes, such as translation.
- OH_
ArkUI_ ⚠Node Utils_ GetLayout Position InGlobal Display api-20 - Obtains the offset of a component relative to the global display. The relative position does not count in transformation attributes, such as translate.
- OH_
ArkUI_ ⚠Node Utils_ GetLayout Position InScreen - Obtain the position of the component layout area relative to the screen. The relative position of the layout area does not include graphic variation attributes, such as translation.
- OH_
ArkUI_ ⚠Node Utils_ GetLayout Position InWindow - Obtain the position of the component layout area relative to the window. The relative position of the layout area does not include graphic variation attributes, such as translation.
- OH_
ArkUI_ ⚠Node Utils_ GetLayout Size - Get the size of the component layout area. The layout area size does not include graphic variation attributes such as scaling.
- OH_
ArkUI_ ⚠Node Utils_ GetNode Handle ByUnique Id api-20 - Get the node handle by uniqueId.
- OH_
ArkUI_ ⚠Node Utils_ GetNode Type api-14 - Get the type of node.
- OH_
ArkUI_ ⚠Node Utils_ GetNode Unique Id api-20 - Get the uniqueId of the target node handle.
- OH_
ArkUI_ ⚠Node Utils_ GetParent InPage Tree api-14 - Get the parent node to obtain the component nodes created by ArkTs.
- OH_
ArkUI_ ⚠Node Utils_ GetPosition ToParent api-15 - Obtains the offset of a specific node relative to its parent node.
- OH_
ArkUI_ ⚠Node Utils_ GetPosition With Translate InScreen - Obtain the position of the component on the screen, including the attributes of graphic translation changes.
- OH_
ArkUI_ ⚠Node Utils_ GetPosition With Translate InWindow - Obtain the position of the component in the window, including the properties of graphic translation changes.
- OH_
ArkUI_ ⚠Node Utils_ GetWindow Info api-15 - Get info of the window to which the node belongs.
- OH_
ArkUI_ ⚠Node Utils_ IsCreated ByNDK api-14 - Retrieve whether the component is labeled by C-API.
- OH_
ArkUI_ ⚠Node Utils_ Move To api-18 - Move the node handle to target parent node as child.
- OH_
ArkUI_ ⚠Node Utils_ Remove Custom Property api-13 - Remove the custom property of the component.
- OH_
ArkUI_ ⚠Node Utils_ SetCross Language Option api-15 - Set the cross-language option of the target node handle.
- OH_
ArkUI_ ⚠Register Draw Callback OnNode Handle api-15 - Registers a callback for node when draw is completed.
- OH_
ArkUI_ ⚠Register Layout Callback OnNode Handle api-15 - Registers a callback for node when layout is completed.
- OH_
ArkUI_ ⚠Register System Color Mode Change Event - The event called when the system color mode changes. Only one system color change callback can be registered for the same component.
- OH_
ArkUI_ ⚠Register System Font Style Change Event - The event called when the system font style changes. Only one system font change callback can be registered for the same component.
- OH_
ArkUI_ ⚠Remove SupportedUI States api-20 - Removes registered UI states. When all states registered using OH_ArkUI_AddSupportedUIStates are removed, the registered stateChangeHandler will no longer be executed.
- OH_
ArkUI_ ⚠RunTask InScope api-20 - Run a custom function inside the UIContext scope.
- OH_
ArkUI_ ⚠SetForce Dark Config api-20 - Sets the inverse color algorithm for components and instances.
- OH_
ArkUI_ ⚠System Font Style Event_ GetFont Size Scale - Retrieve the font size value for system font change events.
- OH_
ArkUI_ ⚠System Font Style Event_ GetFont Weight Scale - Retrieve the font thickness values for system font change events.
- OH_
ArkUI_ ⚠Unregister Draw Callback OnNode Handle api-15 - Unregisters the draw completed callback for node.
- OH_
ArkUI_ ⚠Unregister Layout Callback OnNode Handle api-15 - Unregisters the layout completed callback for node.
- OH_
ArkUI_ ⚠Unregister System Color Mode Change Event - Unregister the event callback when the system color mode changes.
- OH_
ArkUI_ ⚠Unregister System Font Style Change Event - Unregister the event callback when the system font style changes.
Type Aliases§
- ArkUI_
Node Adapter Handle - Defines the component adapter, which is used for lazy loading of elements of scrollable components.
- ArkUI_
Node Content Callback - Defines the callback function of a node content event.