pub unsafe extern "C" fn OH_WindowManager_GetWindowAvoidArea(
windowId: i32,
type_: WindowManager_AvoidAreaType,
avoidArea: *mut WindowManager_AvoidArea,
) -> i32Available on crate feature
api-15 only.Expand description
Get the avoid area
§Arguments
-
windowId- WindowId when window is created. -
type- Type of the avoid area. -
avoidArea- Indicates the pointer to a WindowManager_AvoidArea object.
§Returns
- Returns the result code.
[
OK] the function call is successful, return avoid area ptr in avoidArea. [WINDOW_MANAGER_ERRORCODE_INVALID_PARAM] parameter error. [WINDOW_MANAGER_ERRORCODE_STATE_ABNORMAL] this window state is abnormal. [WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL] the window manager service works abnormally.
Available since API-level: 15