pub unsafe extern "C" fn OH_ArkUI_XComponent_RegisterOnFrameCallback(
node: ArkUI_NodeHandle,
callback: Option<unsafe extern "C" fn(node: ArkUI_NodeHandle, timestamp: u64, targetTimestamp: u64)>,
) -> i32Available on crate feature
api-20 only.Expand description
Registers an onFrame callback for the XComponent node.
§Arguments
-
node- Indicates the pointer to the XComponent node. -
callback- Indicates the pointer to an onFrame callback.
§Returns
- Returns the status code of the execution.
[
ARKUI_ERROR_CODE_NO_ERROR] the execution is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 20
Version: 1.0