OH_WindowManager_SetWindowTouchable

Function OH_WindowManager_SetWindowTouchable 

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

Set window touchable

§Arguments

  • windowId - WindowId when window is created.

  • isTouchable - Indicates whether the specified window can be touched.

§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