OH_WindowManager_SetWindowFocusable

Function OH_WindowManager_SetWindowFocusable 

Source
pub unsafe extern "C" fn OH_WindowManager_SetWindowFocusable(
    windowId: i32,
    isFocusable: bool,
) -> i32
Available on crate feature api-15 only.
Expand description

Set focusable property of window.

§Arguments

  • windowId - WindowId when window is created.

  • isFocusable - Window can be focused or not.

§Returns

  • Returns the result code. [OK] the function call is successful. [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