pub unsafe extern "C" fn OH_ArkUI_KeyframeAnimateOption_SetExpectedFrameRate(
option: *mut ArkUI_KeyframeAnimateOption,
frameRate: *mut ArkUI_ExpectedFrameRateRange,
) -> i32Available 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