OH_ArkUI_XComponent_Initialize

Function OH_ArkUI_XComponent_Initialize 

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

Initialize the XComponent node.

§Arguments

  • node - Indicates the pointer to the XComponent node.

§Returns

  • Returns the status code of the execution. [ARKUI_ERROR_CODE_NO_ERROR] the execution is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if the node is invalid. [ARKUI_ERROR_CODE_XCOMPONENT_STATE_INVALID] if the node has initialized.

Available since API-level: 19