OH_ArkUI_KeyframeAnimateOption_SetDuration

Function OH_ArkUI_KeyframeAnimateOption_SetDuration 

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

Sets the duration of a keyframe animation, in milliseconds.

§Arguments

  • option - Indicates the keyframe animation parameters.

  • value - Indicates the duration to set, in milliseconds.

  • index - Indicates a state index.

§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