OH_ArkUI_GetContextByNode

Function OH_ArkUI_GetContextByNode 

Source
pub unsafe extern "C" fn OH_ArkUI_GetContextByNode(
    node: ArkUI_NodeHandle,
) -> ArkUI_ContextHandle
Available on crate feature api-12 only.
Expand description

Obtain the UIContext pointer to the page where the node is located.

§Arguments

  • node - The node.

§Returns

  • The UIContext pointer. If a null pointer is returned, it may be because the node is empty.

Available since API-level: 12