pub unsafe extern "C" fn OH_ArkUI_KeyframeAnimateOption_SetIterations(
option: *mut ArkUI_KeyframeAnimateOption,
value: i32,
) -> i32Available on crate feature
api-12 only.Expand description
Sets the number of times that the keyframe animation is played. By default, the animation is played once. The value -1 indicates that the animation is played for an unlimited number of times. The value 0 indicates that there is no animation.
§Arguments
option - Indicates the keyframe animation parameters.
value - Indicates the number of times that the animation is played.
§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