pub unsafe extern "C" fn OH_WindowManager_SetWindowPrivacyMode(
windowId: i32,
isPrivacy: bool,
) -> i32Available on crate feature
api-15 only.Expand description
Sets whether is private mode or not.
ohos.permission.PRIVACY_WINDOW
§Arguments
-
windowId- WindowId when window is created. -
isPrivacy- In private mode 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. [WINDOW_MANAGER_ERRORCODE_NO_PERMISSION] permission verification failed.
Available since API-level: 15