OH_ArkUI_KeyframeAnimateOption_SetExpectedFrameRate

Function OH_ArkUI_KeyframeAnimateOption_SetExpectedFrameRate 

Source
pub unsafe extern "C" fn OH_ArkUI_KeyframeAnimateOption_SetExpectedFrameRate(
    option: *mut ArkUI_KeyframeAnimateOption,
    frameRate: *mut ArkUI_ExpectedFrameRateRange,
) -> i32
Available on crate features api-12 and api-19 only.
Expand description

Sets the expected frame rate range of a keyframe animation.

§Arguments

  • option - Indicates the pointer to a keyframe animation configuration.

  • frameRate - Indicates the expected frame rate range.

§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: 19