pub unsafe extern "C" fn OH_WindowManager_SetWindowKeepScreenOn(
windowId: i32,
isKeepScreenOn: bool,
) -> i32Available on crate feature
api-15 only.Expand description
Sets whether keep screen on or not.
§Arguments
-
windowId- WindowId when window is created. -
isKeepScreenOn- keep screen on if true, or not if false.
§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