OH_ArkUI_AnimatorOption_SetKeyframeCurve

Function OH_ArkUI_AnimatorOption_SetKeyframeCurve 

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

Sets the keyframe curve type for the animation of an animator.

Note: springCurve, springMotion, responsiveSpringMotion, interpolatingSpring, and customCurve curves are not supported.

§Arguments

  • option - Indicates an animator parameter object.

  • value - Indicates the target interpolation curve.

  • index - Indicates the keyframe 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