pub unsafe extern "C" fn OH_ArkUI_RegisterLayoutCallbackOnNodeHandle(
node: ArkUI_NodeHandle,
userData: *mut c_void,
onLayoutCompleted: Option<unsafe extern "C" fn(userData: *mut c_void)>,
) -> i32Available on crate features
api-12 and api-15 only.Expand description
Registers a callback for node when layout is completed.
§Arguments
-
node- Indicates the target node. -
userData- Indicates the custom data used in onLayoutCompleted callback function. -
onLayoutCompleted- Indicates the function when layout completed is callback.
§Returns
- error code
[
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter is incorrect.
Available since API-level: 15