Module native_node_napi

Module native_node_napi 

Source
Available on crate feature api-12 only.

Functions§

OH_ArkUI_GetContextFromNapiValue
Obtains a UIContext object on the ArkTS side and maps it to an ArkUI_ContextHandle object on the native side.
OH_ArkUI_GetDrawableDescriptorFromNapiValue
Obtains a DrawableDescriptor object on the ArkTS side and maps it to an ArkUI_DrawableDescriptro object on the native side.
OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue
Obtains a Resource object on the ArkTS side and maps it to an ArkUI_DrawableDescriptro object on the native side.
OH_ArkUI_GetNavDestinationId
Obtain the ID of the NavDestination component where the node is located.
OH_ArkUI_GetNavDestinationIndex
Obtain the index of the NavDestination component on the Navigation stack where the node is located.
OH_ArkUI_GetNavDestinationName
Obtain the name of the NavDestination component where the node is located.
OH_ArkUI_GetNavDestinationNameByIndex
Based on the given index value, obtain the page name of the corresponding position in the navigation stack where the node is located. Index values are counted from 0, with 0 being the bottom of the stack.
OH_ArkUI_GetNavDestinationParam
Obtain the parameters of the NavDestination component where the node is located.
OH_ArkUI_GetNavDestinationState
Obtain the state of the NavDestination component where the node is located.
OH_ArkUI_GetNavStackLength
Based on the given index value, obtain the length of the Navigation stack where the node is located.
OH_ArkUI_GetNavigationId
Obtain the ID of the Navigation component where the node is located.
OH_ArkUI_GetNodeContentFromNapiValue
Obtains a NodeContent object on the ArkTS side and maps it to an ArkUI_NodeContentHandle object on the native side.
OH_ArkUI_GetNodeHandleFromNapiValue
Obtains a FrameNode object on the ArkTS side and maps it to an ArkUI_NodeHandle object on the native side.
OH_ArkUI_GetRouterPageId
Obtain the ID of the page where the node is located.
OH_ArkUI_GetRouterPageIndex
Obtain the index of the page where the node resides in the Router page stack.
OH_ArkUI_GetRouterPageName
Obtain the name of the page where the node is located.
OH_ArkUI_GetRouterPagePath
Obtain the path of the page where the node is located.
OH_ArkUI_GetRouterPageState
Obtain the state of the page where the node is located.
OH_ArkUI_InitModuleForArkTSEnvapi-20
Initialize the ArkTS method for the specified env environment. Cannot be called on the non-UI thread. Checking for non-UI thread calls will abort.
OH_ArkUI_NotifyArkTSEnvDestroyapi-20
Notify the specified env environment is invalid. Cannot be called on the non-UI thread. Checking for non-UI thread calls will abort.
OH_ArkUI_PostFrameCallbackapi-18
Register a callback to be executed when rendering in the next frame. Cannot be called on the non-UI thread. Checking for non-UI thread calls will abort.
OH_ArkUI_PostIdleCallbackapi-20
Register a callback to be executed at the end of the next idle frame. If there is no next frame, will request one automatically.