pub unsafe extern "C" fn OH_ArkUI_KeyframeAnimateOption_SetCurve(
option: *mut ArkUI_KeyframeAnimateOption,
value: ArkUI_CurveHandle,
index: i32,
) -> i32Available on crate feature
api-12 only.Expand description
Sets the animation curve for a specific keyframe in a keyframe animation.
Note:** Because the springMotion, responsiveSpringMotion, and interpolatingSpring curves do not have effective duration settings, they are not supported.
§Arguments
option - Indicates the keyframe animation parameters.
value - Indicates the animation curve to set. Default value:EASE_IN_OUT.
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