OH_ArkUI_KeyframeAnimateOption_SetDelay

Function OH_ArkUI_KeyframeAnimateOption_SetDelay 

Source
pub unsafe extern "C" fn OH_ArkUI_KeyframeAnimateOption_SetDelay(
    option: *mut ArkUI_KeyframeAnimateOption,
    value: i32,
) -> i32
Available on crate feature api-12 only.
Expand description

Sets the overall delay of a keyframe animation, in milliseconds. By default, the keyframe animation is played without delay.

§Arguments

  • option - Indicates the keyframe animation parameters.

  • value - Indicates the delay, in milliseconds.

§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