OH_NativeDisplayManager_CreateDisplayById

Function OH_NativeDisplayManager_CreateDisplayById 

Source
pub unsafe extern "C" fn OH_NativeDisplayManager_CreateDisplayById(
    displayId: u32,
    displayInfo: *mut *mut NativeDisplayManager_DisplayInfo,
) -> NativeDisplayManagerResult
Available on crate feature api-14 only.
Expand description

Create display information by display id.

§Arguments

  • displayId - The display id.

  • displayInfo - The pointer to the display information.

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