pub unsafe extern "C" fn OH_ArkUI_KeyframeAnimateOption_RegisterOnFinishCallback(
option: *mut ArkUI_KeyframeAnimateOption,
userData: *mut c_void,
onFinish: Option<unsafe extern "C" fn(userData: *mut c_void)>,
) -> i32Available on crate feature
api-12 only.Expand description
Sets the callback invoked when the keyframe animation playback is complete. This API is called after the keyframe animation has played for the specified number of times.
§Arguments
-
option- Indicates the keyframe animation parameters. -
userData- Indicates the pointer to a custom object. -
onFinish- Indicates the callback.
§Returns
- Returns the error code.
Returns [
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 12