pub unsafe extern "C" fn OH_ArkUI_AnimatorOption_SetIterations(
option: *mut ArkUI_AnimatorOption,
value: i32,
) -> i32Available on crate feature
api-12 only.Expand description
Sets the number of times that the animation of an animator is played. The value 0 means not to play the animation, and -1 means to play the animation for an unlimited number of times.
Note: If this parameter is set to a negative value other than -1, the value is invalid. In this case, the animation is played once.
§Arguments
-
option- Indicates an animator parameter object. -
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