OH_NativeVSync_SetExpectedFrameRateRange

Function OH_NativeVSync_SetExpectedFrameRateRange 

Source
pub unsafe extern "C" fn OH_NativeVSync_SetExpectedFrameRateRange(
    nativeVsync: *mut OH_NativeVSync,
    range: *mut OH_NativeVSync_ExpectedRateRange,
) -> c_int
Available on crate feature api-20 only.
Expand description

Set vsync expected frame rate range.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeVsync

§Arguments

  • nativeVsync - Indicates the pointer to a NativeVsync.

  • range - Indicates the pointer to an expected rate range.

§Returns

  • [NATIVE_ERROR_OK] 0 - Success. [NATIVE_ERROR_INVALID_ARGUMENTS] 40001000 - the parameter nativeVsync is NULL or range is NULL or Invalid.

Available since API-level: 20

Version: 1.0