harmony 鸿蒙native_node_napi.h
native_node_napi.h
Overview
Declares the functions used to convert FrameNodes on the ArkTS side into NodeHandles.
Library: libace_ndk.z.so
System capability: SystemCapability.ArkUI.ArkUI.Full
Since: 12
Related module: ArkUI_NativeModule
Summary
Functions
Name | Description |
---|---|
int32_t OH_ArkUI_GetNodeHandleFromNapiValue (napi_env env, napi_value frameNode, ArkUI_NodeHandle *handle) | Obtains a FrameNode object on the ArkTS side and maps it to an ArkUI_NodeHandle object on the native side. |
int32_t OH_ArkUI_GetContextFromNapiValue (napi_env env, napi_value value, ArkUI_ContextHandle *context) | Obtains a UIContext object on the ArkTS side and maps it to an ArkUI_ContextHandle object on the native side. |
int32_t OH_ArkUI_GetNodeContentFromNapiValue (napi_env env, napi_value value, ArkUI_NodeContentHandle *content) | Obtains a NodeContent object on the ArkTS side and maps it to an ArkUI_NodeContentHandle object on the native side. |
int32_t OH_ArkUI_GetDrawableDescriptorFromNapiValue (napi_env env, napi_value value, ArkUI_DrawableDescriptor **drawableDescriptor) | Maps a DrawableDescriptor object on the ArkTS side to an ArkUI_DrawableDescriptor object on the native side. |
int32_t OH_ArkUI_GetDrawableDescriptorFromResourceNapiValue (napi_env env, napi_value value, ArkUI_DrawableDescriptor **drawableDescriptor) | Maps an $r resource object on the ArkTS side to an ArkUI_DrawableDescriptor object on the native side. |
ArkUI_ErrorCode OH_ArkUI_GetNavigationId (ArkUI_NodeHandle node, char *buffer, int32_t bufferSize, int32_t *writeLength) | Obtains the ID of the Navigation component where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetNavDestinationName (ArkUI_NodeHandle node, char *buffer, int32_t bufferSize, int32_t *writeLength) | Obtains the name of the Navigation component where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetNavStackLength (ArkUI_NodeHandle node, int32_t *length) | Obtains the length of the navigation stack where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetNavDestinationNameByIndex (ArkUI_NodeHandle node, int32_t index, char *buffer, int32_t bufferSize, int32_t *writeLength) | Obtains the page name that matches the specified index in the navigation stack where the specified node is located. The index starts from 0, which indicates the bottom of the stack. |
ArkUI_ErrorCode OH_ArkUI_GetNavDestinationId (ArkUI_NodeHandle node, char *buffer, int32_t bufferSize, int32_t *writeLength) | Obtains the ID of the NavDestination component where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetNavDestinationState (ArkUI_NodeHandle node, ArkUI_NavDestinationState *state) | Obtains the state of the NavDestination component where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetNavDestinationIndex (ArkUI_NodeHandle node, int32_t *index) | Obtains the index of the NavDestination component where the specified node is located in the navigation stack. |
napi_value OH_ArkUI_GetNavDestinationParam (ArkUI_NodeHandle node) | Obtains the parameters of the NavDestination component where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetRouterPageIndex (ArkUI_NodeHandle node, int32_t *index) | Obtains the index of the page where the specified node is located in the page stack for routing. |
ArkUI_ErrorCode OH_ArkUI_GetRouterPageName (ArkUI_NodeHandle node, char *buffer, int32_t bufferSize, int32_t *writeLength) | Obtains the name of the page where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetRouterPagePath (ArkUI_NodeHandle node, char *buffer, int32_t bufferSize, int32_t *writeLength) | Obtains the path to the page where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetRouterPageState (ArkUI_NodeHandle node, ArkUI_RouterPageState *state) | Obtains the state of the page where the specified node is located. |
ArkUI_ErrorCode OH_ArkUI_GetRouterPageId (ArkUI_NodeHandle node, char *buffer, int32_t bufferSize, int32_t *writeLength) | Obtains the ID of the page where the specified node is located. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent
harmony 鸿蒙ARKUI_TextPickerRangeContent
harmony 鸿蒙ArkUI_AnimateCompleteCallback
harmony 鸿蒙ArkUI_ContextCallback
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦