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_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