OH_NativeDisplayManager_CreateAvailableArea

Function OH_NativeDisplayManager_CreateAvailableArea 

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

Create the available area.

§Arguments

  • displayId - The display id.

  • availableArea - Indicates the pointer to an NativeDisplayManager_Rect object.

§Returns

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

Available since API-level: 20