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_INSPECTOR_NATIVE_RESULT_SUCCESSFUL] if the operation is successful. [ARKUI_INSPECTOR_NATIVE_RESULT_BAD_PARAMETER] if a parameter is incorrect.
Available since API-level: 15