OH_ArkUI_AnimatorOption_RegisterOnFinishCallback

Function OH_ArkUI_AnimatorOption_RegisterOnFinishCallback 

Source
pub unsafe extern "C" fn OH_ArkUI_AnimatorOption_RegisterOnFinishCallback(
    option: *mut ArkUI_AnimatorOption,
    userData: *mut c_void,
    callback: Option<unsafe extern "C" fn(event: *mut ArkUI_AnimatorEvent)>,
) -> i32
Available on crate feature api-12 only.
Expand description

Sets the callback invoked when the animation playback is complete.

§Arguments

  • option - Indicates an animator parameter object.

  • userData - Indicates the custom parameter.

  • callback - Indicates the callback to set.

§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