OH_ArkUI_AnimatorOption_SetDelay

Function OH_ArkUI_AnimatorOption_SetDelay 

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

Sets the delay for playing the animation of an animator, in milliseconds.

§Arguments

  • option - Indicates an animator parameter object.

  • value - Indicates the delay to set, 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