OH_ArkUI_NodeContent_RegisterCallback

Function OH_ArkUI_NodeContent_RegisterCallback 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeContent_RegisterCallback(
    content: ArkUI_NodeContentHandle,
    callback: ArkUI_NodeContentCallback,
) -> i32
Available on crate feature api-12 only.
Expand description

register a callback function to a node content.

§Arguments

  • content - Indicates the pointer to the node content instance.

  • callback - Indicates the callback function.

§Returns

  • Returns the error code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 12