OH_NativeDisplayManager_GetDisplaySourceMode

Function OH_NativeDisplayManager_GetDisplaySourceMode 

Source
pub unsafe extern "C" fn OH_NativeDisplayManager_GetDisplaySourceMode(
    displayId: u64,
    sourceMode: *mut NativeDisplayManager_SourceMode,
) -> NativeDisplayManagerResult
Available on crate feature api-20 only.
Expand description

Get the source mode of the device.

§Arguments

  • displayId - The display id.

  • sourceMode - Indicates the pointer to an NativeDisplayManager_SourceMode object.

§Returns

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

Available since API-level: 20