pub unsafe extern "C" fn OH_ArkUI_RegisterDrawCallbackOnNodeHandle(
node: ArkUI_NodeHandle,
userData: *mut c_void,
onDrawCompleted: 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 draw is completed.
§Arguments
-
node- Indicates the target node. -
userData- Indicates the custom data used in onDrawCompleted callback function. -
onDrawCompleted- Indicates the function when draw 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