OH_NativeDisplayManager_GetDefaultDisplayRefreshRate

Function OH_NativeDisplayManager_GetDefaultDisplayRefreshRate 

Source
pub unsafe extern "C" fn OH_NativeDisplayManager_GetDefaultDisplayRefreshRate(
    refreshRate: *mut u32,
) -> NativeDisplayManagerResult
Available on crate feature api-12 only.
Expand description

Obtain the default display refreshRate.

§Arguments

  • refreshRate - Indicates the pointer to an uint32_t object.

§Returns

  • { DISPLAY_MANAGER_OK } If the operation is successful { DISPLAY_MANAGER_ERROR_INVALID_PARAM } If Parameter error. { DISPLAY_MANAGER_ERROR_SYSTEM_ABNORMAL } If display manager service works abnormally.

Available since API-level: 12