OH_ArkUI_AnimatorOption_SetExpectedFrameRateRange

Function OH_ArkUI_AnimatorOption_SetExpectedFrameRateRange 

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

Sets the expected frame rate range for the animation of an animator.

§Arguments

  • option - Indicates an animator parameter object.

  • value - Indicates the expected frame rate range to set.

§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