161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ciimport { AsyncCallback, BusinessError, Callback } from './@ohos.base';
2261847f8eSopenharmony_ciimport BaseContext from './application/BaseContext';
2361847f8eSopenharmony_ciimport image from './@ohos.multimedia.image';
2461847f8eSopenharmony_ciimport rpc from './@ohos.rpc';
2561847f8eSopenharmony_ciimport dialogRequest from './@ohos.app.ability.dialogRequest';
2661847f8eSopenharmony_ciimport { UIContext } from './@ohos.arkui.UIContext';
2761847f8eSopenharmony_ci
2861847f8eSopenharmony_ci/**
2961847f8eSopenharmony_ci * Window manager.
3061847f8eSopenharmony_ci *
3161847f8eSopenharmony_ci * @namespace window
3261847f8eSopenharmony_ci * @syscap SystemCapability.WindowManager.WindowManager.Core
3361847f8eSopenharmony_ci */
3461847f8eSopenharmony_ci/**
3561847f8eSopenharmony_ci * Window manager.
3661847f8eSopenharmony_ci *
3761847f8eSopenharmony_ci * @namespace window
3861847f8eSopenharmony_ci * @syscap SystemCapability.WindowManager.WindowManager.Core
3961847f8eSopenharmony_ci * @crossplatform
4061847f8eSopenharmony_ci * @since 10
4161847f8eSopenharmony_ci */
4261847f8eSopenharmony_ci/**
4361847f8eSopenharmony_ci * Window manager.
4461847f8eSopenharmony_ci *
4561847f8eSopenharmony_ci * @namespace window
4661847f8eSopenharmony_ci * @syscap SystemCapability.WindowManager.WindowManager.Core
4761847f8eSopenharmony_ci * @crossplatform
4861847f8eSopenharmony_ci * @atomicservice
4961847f8eSopenharmony_ci * @since 11
5061847f8eSopenharmony_ci */
5161847f8eSopenharmony_cideclare namespace window {
5261847f8eSopenharmony_ci  /**
5361847f8eSopenharmony_ci   * The type of a window.
5461847f8eSopenharmony_ci   *
5561847f8eSopenharmony_ci   * @enum { number }
5661847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
5761847f8eSopenharmony_ci   * @since 7
5861847f8eSopenharmony_ci   */
5961847f8eSopenharmony_ci  /**
6061847f8eSopenharmony_ci   * The type of a window.
6161847f8eSopenharmony_ci   *
6261847f8eSopenharmony_ci   * @enum { number }
6361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
6461847f8eSopenharmony_ci   * @atomicservice
6561847f8eSopenharmony_ci   * @since 12
6661847f8eSopenharmony_ci   */
6761847f8eSopenharmony_ci  enum WindowType {
6861847f8eSopenharmony_ci    /**
6961847f8eSopenharmony_ci     * App.
7061847f8eSopenharmony_ci     *
7161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
7261847f8eSopenharmony_ci     * @FAModelOnly
7361847f8eSopenharmony_ci     * @since 7
7461847f8eSopenharmony_ci     */
7561847f8eSopenharmony_ci    TYPE_APP,
7661847f8eSopenharmony_ci    /**
7761847f8eSopenharmony_ci     * System alert.
7861847f8eSopenharmony_ci     *
7961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
8061847f8eSopenharmony_ci     * @since 7
8161847f8eSopenharmony_ci     * @deprecated since 11
8261847f8eSopenharmony_ci     */
8361847f8eSopenharmony_ci    TYPE_SYSTEM_ALERT,
8461847f8eSopenharmony_ci    /**
8561847f8eSopenharmony_ci     * Input method.
8661847f8eSopenharmony_ci     *
8761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
8861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
8961847f8eSopenharmony_ci     * @StageModelOnly
9061847f8eSopenharmony_ci     * @since 9
9161847f8eSopenharmony_ci     * @deprecated since 13
9261847f8eSopenharmony_ci     */
9361847f8eSopenharmony_ci    TYPE_INPUT_METHOD,
9461847f8eSopenharmony_ci    /**
9561847f8eSopenharmony_ci     * Status bar.
9661847f8eSopenharmony_ci     *
9761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
9861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
9961847f8eSopenharmony_ci     * @StageModelOnly
10061847f8eSopenharmony_ci     * @since 9
10161847f8eSopenharmony_ci     */
10261847f8eSopenharmony_ci    TYPE_STATUS_BAR,
10361847f8eSopenharmony_ci    /**
10461847f8eSopenharmony_ci     * Panel.
10561847f8eSopenharmony_ci     *
10661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
10761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
10861847f8eSopenharmony_ci     * @StageModelOnly
10961847f8eSopenharmony_ci     * @since 9
11061847f8eSopenharmony_ci     */
11161847f8eSopenharmony_ci    TYPE_PANEL,
11261847f8eSopenharmony_ci    /**
11361847f8eSopenharmony_ci     * Keyguard.
11461847f8eSopenharmony_ci     *
11561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
11661847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
11761847f8eSopenharmony_ci     * @StageModelOnly
11861847f8eSopenharmony_ci     * @since 9
11961847f8eSopenharmony_ci     */
12061847f8eSopenharmony_ci    TYPE_KEYGUARD,
12161847f8eSopenharmony_ci    /**
12261847f8eSopenharmony_ci     * Volume.
12361847f8eSopenharmony_ci     *
12461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
12561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
12661847f8eSopenharmony_ci     * @StageModelOnly
12761847f8eSopenharmony_ci     * @since 9
12861847f8eSopenharmony_ci     */
12961847f8eSopenharmony_ci    TYPE_VOLUME_OVERLAY,
13061847f8eSopenharmony_ci    /**
13161847f8eSopenharmony_ci     * Navigation bar.
13261847f8eSopenharmony_ci     *
13361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
13461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
13561847f8eSopenharmony_ci     * @StageModelOnly
13661847f8eSopenharmony_ci     * @since 9
13761847f8eSopenharmony_ci     */
13861847f8eSopenharmony_ci    TYPE_NAVIGATION_BAR,
13961847f8eSopenharmony_ci    /**
14061847f8eSopenharmony_ci     * Float.
14161847f8eSopenharmony_ci     *
14261847f8eSopenharmony_ci     * @permission ohos.permission.SYSTEM_FLOAT_WINDOW
14361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
14461847f8eSopenharmony_ci     * @StageModelOnly
14561847f8eSopenharmony_ci     * @since 9
14661847f8eSopenharmony_ci     */
14761847f8eSopenharmony_ci    /**
14861847f8eSopenharmony_ci     * Float.
14961847f8eSopenharmony_ci     * Require "ohos.permission.SYSTEM_FLOAT_WINDOW" permission
15061847f8eSopenharmony_ci     *
15161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
15261847f8eSopenharmony_ci     * @StageModelOnly
15361847f8eSopenharmony_ci     * @atomicservice
15461847f8eSopenharmony_ci     * @since 12
15561847f8eSopenharmony_ci     */
15661847f8eSopenharmony_ci    TYPE_FLOAT,
15761847f8eSopenharmony_ci    /**
15861847f8eSopenharmony_ci     * Wallpaper.
15961847f8eSopenharmony_ci     *
16061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
16161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
16261847f8eSopenharmony_ci     * @StageModelOnly
16361847f8eSopenharmony_ci     * @since 9
16461847f8eSopenharmony_ci     */
16561847f8eSopenharmony_ci    TYPE_WALLPAPER,
16661847f8eSopenharmony_ci    /**
16761847f8eSopenharmony_ci     * Desktop.
16861847f8eSopenharmony_ci     *
16961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
17061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
17161847f8eSopenharmony_ci     * @StageModelOnly
17261847f8eSopenharmony_ci     * @since 9
17361847f8eSopenharmony_ci     */
17461847f8eSopenharmony_ci    TYPE_DESKTOP,
17561847f8eSopenharmony_ci    /**
17661847f8eSopenharmony_ci     * Recent.
17761847f8eSopenharmony_ci     *
17861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
17961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
18061847f8eSopenharmony_ci     * @StageModelOnly
18161847f8eSopenharmony_ci     * @since 9
18261847f8eSopenharmony_ci     */
18361847f8eSopenharmony_ci    TYPE_LAUNCHER_RECENT,
18461847f8eSopenharmony_ci    /**
18561847f8eSopenharmony_ci     * Dock.
18661847f8eSopenharmony_ci     *
18761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
18861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
18961847f8eSopenharmony_ci     * @StageModelOnly
19061847f8eSopenharmony_ci     * @since 9
19161847f8eSopenharmony_ci     */
19261847f8eSopenharmony_ci    TYPE_LAUNCHER_DOCK,
19361847f8eSopenharmony_ci    /**
19461847f8eSopenharmony_ci     * Voice interaction.
19561847f8eSopenharmony_ci     *
19661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
19761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
19861847f8eSopenharmony_ci     * @StageModelOnly
19961847f8eSopenharmony_ci     * @since 9
20061847f8eSopenharmony_ci     */
20161847f8eSopenharmony_ci    TYPE_VOICE_INTERACTION,
20261847f8eSopenharmony_ci    /**
20361847f8eSopenharmony_ci     * Pointer.
20461847f8eSopenharmony_ci     *
20561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
20661847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
20761847f8eSopenharmony_ci     * @StageModelOnly
20861847f8eSopenharmony_ci     * @since 9
20961847f8eSopenharmony_ci     */
21061847f8eSopenharmony_ci    TYPE_POINTER,
21161847f8eSopenharmony_ci    /**
21261847f8eSopenharmony_ci     * Float camera.
21361847f8eSopenharmony_ci     *
21461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
21561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
21661847f8eSopenharmony_ci     * @StageModelOnly
21761847f8eSopenharmony_ci     * @since 9
21861847f8eSopenharmony_ci     */
21961847f8eSopenharmony_ci    TYPE_FLOAT_CAMERA,
22061847f8eSopenharmony_ci    /**
22161847f8eSopenharmony_ci     * Dialog.
22261847f8eSopenharmony_ci     *
22361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
22461847f8eSopenharmony_ci     * @StageModelOnly
22561847f8eSopenharmony_ci     * @since 10
22661847f8eSopenharmony_ci     */
22761847f8eSopenharmony_ci    /**
22861847f8eSopenharmony_ci     * Dialog.
22961847f8eSopenharmony_ci     *
23061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
23161847f8eSopenharmony_ci     * @StageModelOnly
23261847f8eSopenharmony_ci     * @atomicservice
23361847f8eSopenharmony_ci     * @since 12
23461847f8eSopenharmony_ci     */
23561847f8eSopenharmony_ci    TYPE_DIALOG,
23661847f8eSopenharmony_ci    /**
23761847f8eSopenharmony_ci     * Screenshot.
23861847f8eSopenharmony_ci     *
23961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
24061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
24161847f8eSopenharmony_ci     * @StageModelOnly
24261847f8eSopenharmony_ci     * @since 9
24361847f8eSopenharmony_ci     */
24461847f8eSopenharmony_ci    TYPE_SCREENSHOT,
24561847f8eSopenharmony_ci    /**
24661847f8eSopenharmony_ci     * System Toast.
24761847f8eSopenharmony_ci     *
24861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
24961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
25061847f8eSopenharmony_ci     * @StageModelOnly
25161847f8eSopenharmony_ci     * @since 11
25261847f8eSopenharmony_ci     */
25361847f8eSopenharmony_ci    TYPE_SYSTEM_TOAST,
25461847f8eSopenharmony_ci    /**
25561847f8eSopenharmony_ci     * Divider.
25661847f8eSopenharmony_ci     *
25761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
25861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
25961847f8eSopenharmony_ci     * @StageModelOnly
26061847f8eSopenharmony_ci     * @since 11
26161847f8eSopenharmony_ci     */
26261847f8eSopenharmony_ci    TYPE_DIVIDER,
26361847f8eSopenharmony_ci    /**
26461847f8eSopenharmony_ci     * Global Search.
26561847f8eSopenharmony_ci     *
26661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
26761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
26861847f8eSopenharmony_ci     * @StageModelOnly
26961847f8eSopenharmony_ci     * @since 11
27061847f8eSopenharmony_ci     */
27161847f8eSopenharmony_ci    TYPE_GLOBAL_SEARCH,
27261847f8eSopenharmony_ci    /**
27361847f8eSopenharmony_ci     * Handwrite.
27461847f8eSopenharmony_ci     *
27561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
27661847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
27761847f8eSopenharmony_ci     * @StageModelOnly
27861847f8eSopenharmony_ci     * @since 12
27961847f8eSopenharmony_ci     */
28061847f8eSopenharmony_ci    TYPE_HANDWRITE
28161847f8eSopenharmony_ci  }
28261847f8eSopenharmony_ci
28361847f8eSopenharmony_ci  /**
28461847f8eSopenharmony_ci   * Describes the type of avoid area
28561847f8eSopenharmony_ci   *
28661847f8eSopenharmony_ci   * @enum { number }
28761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
28861847f8eSopenharmony_ci   * @since 7
28961847f8eSopenharmony_ci   */
29061847f8eSopenharmony_ci  /**
29161847f8eSopenharmony_ci   * Describes the type of avoid area
29261847f8eSopenharmony_ci   *
29361847f8eSopenharmony_ci   * @enum { number }
29461847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
29561847f8eSopenharmony_ci   * @atomicservice
29661847f8eSopenharmony_ci   * @since 11
29761847f8eSopenharmony_ci   */
29861847f8eSopenharmony_ci  /**
29961847f8eSopenharmony_ci   * Describes the type of avoid area
30061847f8eSopenharmony_ci   *
30161847f8eSopenharmony_ci   * @enum { number }
30261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
30361847f8eSopenharmony_ci   * @crossplatform
30461847f8eSopenharmony_ci   * @atomicservice
30561847f8eSopenharmony_ci   * @since 12
30661847f8eSopenharmony_ci   */
30761847f8eSopenharmony_ci  enum AvoidAreaType {
30861847f8eSopenharmony_ci    /**
30961847f8eSopenharmony_ci     * Default area of the system
31061847f8eSopenharmony_ci     *
31161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
31261847f8eSopenharmony_ci     * @since 7
31361847f8eSopenharmony_ci     */
31461847f8eSopenharmony_ci    /**
31561847f8eSopenharmony_ci     * Default area of the system
31661847f8eSopenharmony_ci     *
31761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
31861847f8eSopenharmony_ci     * @atomicservice
31961847f8eSopenharmony_ci     * @since 11
32061847f8eSopenharmony_ci     */
32161847f8eSopenharmony_ci    /**
32261847f8eSopenharmony_ci     * Default area of the system
32361847f8eSopenharmony_ci     *
32461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
32561847f8eSopenharmony_ci     * @crossplatform
32661847f8eSopenharmony_ci     * @atomicservice
32761847f8eSopenharmony_ci     * @since 12
32861847f8eSopenharmony_ci     */
32961847f8eSopenharmony_ci    TYPE_SYSTEM,
33061847f8eSopenharmony_ci
33161847f8eSopenharmony_ci    /**
33261847f8eSopenharmony_ci     * Notch
33361847f8eSopenharmony_ci     *
33461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
33561847f8eSopenharmony_ci     * @since 7
33661847f8eSopenharmony_ci     */
33761847f8eSopenharmony_ci    /**
33861847f8eSopenharmony_ci     * Notch
33961847f8eSopenharmony_ci     *
34061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
34161847f8eSopenharmony_ci     * @atomicservice
34261847f8eSopenharmony_ci     * @since 11
34361847f8eSopenharmony_ci     */
34461847f8eSopenharmony_ci    /**
34561847f8eSopenharmony_ci     * Notch
34661847f8eSopenharmony_ci     *
34761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
34861847f8eSopenharmony_ci     * @crossplatform
34961847f8eSopenharmony_ci     * @atomicservice
35061847f8eSopenharmony_ci     * @since 12
35161847f8eSopenharmony_ci     */
35261847f8eSopenharmony_ci    TYPE_CUTOUT,
35361847f8eSopenharmony_ci
35461847f8eSopenharmony_ci    /**
35561847f8eSopenharmony_ci     * Area for system gesture
35661847f8eSopenharmony_ci     *
35761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
35861847f8eSopenharmony_ci     * @since 9
35961847f8eSopenharmony_ci     */
36061847f8eSopenharmony_ci    /**
36161847f8eSopenharmony_ci     * Area for system gesture
36261847f8eSopenharmony_ci     *
36361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
36461847f8eSopenharmony_ci     * @atomicservice
36561847f8eSopenharmony_ci     * @since 11
36661847f8eSopenharmony_ci     */
36761847f8eSopenharmony_ci    /**
36861847f8eSopenharmony_ci     * Area for system gesture
36961847f8eSopenharmony_ci     *
37061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
37161847f8eSopenharmony_ci     * @crossplatform
37261847f8eSopenharmony_ci     * @atomicservice
37361847f8eSopenharmony_ci     * @since 12
37461847f8eSopenharmony_ci     */
37561847f8eSopenharmony_ci    TYPE_SYSTEM_GESTURE,
37661847f8eSopenharmony_ci
37761847f8eSopenharmony_ci    /**
37861847f8eSopenharmony_ci     * Area for keyboard
37961847f8eSopenharmony_ci     *
38061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
38161847f8eSopenharmony_ci     * @since 9
38261847f8eSopenharmony_ci     */
38361847f8eSopenharmony_ci    /**
38461847f8eSopenharmony_ci     * Area for keyboard
38561847f8eSopenharmony_ci     *
38661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
38761847f8eSopenharmony_ci     * @atomicservice
38861847f8eSopenharmony_ci     * @since 11
38961847f8eSopenharmony_ci     */
39061847f8eSopenharmony_ci    /**
39161847f8eSopenharmony_ci     * Area for keyboard
39261847f8eSopenharmony_ci     *
39361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
39461847f8eSopenharmony_ci     * @crossplatform
39561847f8eSopenharmony_ci     * @atomicservice
39661847f8eSopenharmony_ci     * @since 12
39761847f8eSopenharmony_ci     */
39861847f8eSopenharmony_ci    TYPE_KEYBOARD,
39961847f8eSopenharmony_ci
40061847f8eSopenharmony_ci    /**
40161847f8eSopenharmony_ci     * Area for navigation indicator
40261847f8eSopenharmony_ci     *
40361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
40461847f8eSopenharmony_ci     * @atomicservice
40561847f8eSopenharmony_ci     * @since 11
40661847f8eSopenharmony_ci     */
40761847f8eSopenharmony_ci    /**
40861847f8eSopenharmony_ci     * Area for navigation indicator
40961847f8eSopenharmony_ci     *
41061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
41161847f8eSopenharmony_ci     * @crossplatform
41261847f8eSopenharmony_ci     * @atomicservice
41361847f8eSopenharmony_ci     * @since 12
41461847f8eSopenharmony_ci     */
41561847f8eSopenharmony_ci    TYPE_NAVIGATION_INDICATOR
41661847f8eSopenharmony_ci  }
41761847f8eSopenharmony_ci  /**
41861847f8eSopenharmony_ci   * Describes the window mode of an application
41961847f8eSopenharmony_ci   *
42061847f8eSopenharmony_ci   * @enum { number }
42161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
42261847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
42361847f8eSopenharmony_ci   * @since 7
42461847f8eSopenharmony_ci   */
42561847f8eSopenharmony_ci  enum WindowMode {
42661847f8eSopenharmony_ci    /**
42761847f8eSopenharmony_ci     * Undefined mode of the window
42861847f8eSopenharmony_ci     *
42961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
43061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
43161847f8eSopenharmony_ci     * @since 7
43261847f8eSopenharmony_ci     */
43361847f8eSopenharmony_ci    UNDEFINED = 1,
43461847f8eSopenharmony_ci    /**
43561847f8eSopenharmony_ci     * Fullscreen mode of the window
43661847f8eSopenharmony_ci     *
43761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
43861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
43961847f8eSopenharmony_ci     * @since 7
44061847f8eSopenharmony_ci     */
44161847f8eSopenharmony_ci    FULLSCREEN,
44261847f8eSopenharmony_ci    /**
44361847f8eSopenharmony_ci     * Primary mode of the window
44461847f8eSopenharmony_ci     *
44561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
44661847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
44761847f8eSopenharmony_ci     * @since 7
44861847f8eSopenharmony_ci     */
44961847f8eSopenharmony_ci    PRIMARY,
45061847f8eSopenharmony_ci    /**
45161847f8eSopenharmony_ci     * Secondary mode of the window
45261847f8eSopenharmony_ci     *
45361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
45461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
45561847f8eSopenharmony_ci     * @since 7
45661847f8eSopenharmony_ci     */
45761847f8eSopenharmony_ci    SECONDARY,
45861847f8eSopenharmony_ci    /**
45961847f8eSopenharmony_ci     * Floating mode of the window
46061847f8eSopenharmony_ci     *
46161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
46261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
46361847f8eSopenharmony_ci     * @since 7
46461847f8eSopenharmony_ci     */
46561847f8eSopenharmony_ci    FLOATING
46661847f8eSopenharmony_ci  }
46761847f8eSopenharmony_ci
46861847f8eSopenharmony_ci  /**
46961847f8eSopenharmony_ci   * Describes the mode of window layout
47061847f8eSopenharmony_ci   *
47161847f8eSopenharmony_ci   * @enum { number }
47261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
47361847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
47461847f8eSopenharmony_ci   * @since 9
47561847f8eSopenharmony_ci   */
47661847f8eSopenharmony_ci  enum WindowLayoutMode {
47761847f8eSopenharmony_ci    /**
47861847f8eSopenharmony_ci     * CASCADE
47961847f8eSopenharmony_ci     *
48061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
48161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
48261847f8eSopenharmony_ci     * @since 9
48361847f8eSopenharmony_ci     */
48461847f8eSopenharmony_ci    WINDOW_LAYOUT_MODE_CASCADE,
48561847f8eSopenharmony_ci    /**
48661847f8eSopenharmony_ci     * TILE
48761847f8eSopenharmony_ci     *
48861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
48961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
49061847f8eSopenharmony_ci     * @since 9
49161847f8eSopenharmony_ci     */
49261847f8eSopenharmony_ci    WINDOW_LAYOUT_MODE_TILE
49361847f8eSopenharmony_ci  }
49461847f8eSopenharmony_ci
49561847f8eSopenharmony_ci  /**
49661847f8eSopenharmony_ci   * Describes the window status of an application
49761847f8eSopenharmony_ci   *
49861847f8eSopenharmony_ci   * @enum { number }
49961847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
50061847f8eSopenharmony_ci   * @since 11
50161847f8eSopenharmony_ci   */
50261847f8eSopenharmony_ci  /**
50361847f8eSopenharmony_ci   * Describes the window status of an application
50461847f8eSopenharmony_ci   *
50561847f8eSopenharmony_ci   * @enum { number }
50661847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
50761847f8eSopenharmony_ci   * @atomicservice
50861847f8eSopenharmony_ci   * @since 12
50961847f8eSopenharmony_ci   */
51061847f8eSopenharmony_ci  enum WindowStatusType {
51161847f8eSopenharmony_ci    /**
51261847f8eSopenharmony_ci     * Undefined status of the window
51361847f8eSopenharmony_ci     *
51461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
51561847f8eSopenharmony_ci     * @since 11
51661847f8eSopenharmony_ci     */
51761847f8eSopenharmony_ci    /**
51861847f8eSopenharmony_ci     * Undefined status of the window
51961847f8eSopenharmony_ci     *
52061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
52161847f8eSopenharmony_ci     * @atomicservice
52261847f8eSopenharmony_ci     * @since 12
52361847f8eSopenharmony_ci     */
52461847f8eSopenharmony_ci    UNDEFINED = 0,
52561847f8eSopenharmony_ci    /**
52661847f8eSopenharmony_ci     * Full screen status of the window
52761847f8eSopenharmony_ci     *
52861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
52961847f8eSopenharmony_ci     * @since 11
53061847f8eSopenharmony_ci     */
53161847f8eSopenharmony_ci    /**
53261847f8eSopenharmony_ci     * Full screen status of the window
53361847f8eSopenharmony_ci     *
53461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
53561847f8eSopenharmony_ci     * @atomicservice
53661847f8eSopenharmony_ci     * @since 12
53761847f8eSopenharmony_ci     */
53861847f8eSopenharmony_ci    FULL_SCREEN,
53961847f8eSopenharmony_ci    /**
54061847f8eSopenharmony_ci     * Maximize status of the window
54161847f8eSopenharmony_ci     *
54261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
54361847f8eSopenharmony_ci     * @since 11
54461847f8eSopenharmony_ci     */
54561847f8eSopenharmony_ci    /**
54661847f8eSopenharmony_ci     * Maximize status of the window
54761847f8eSopenharmony_ci     *
54861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
54961847f8eSopenharmony_ci     * @atomicservice
55061847f8eSopenharmony_ci     * @since 12
55161847f8eSopenharmony_ci     */
55261847f8eSopenharmony_ci    MAXIMIZE,
55361847f8eSopenharmony_ci    /**
55461847f8eSopenharmony_ci     * Minimize status of the window
55561847f8eSopenharmony_ci     *
55661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
55761847f8eSopenharmony_ci     * @since 11
55861847f8eSopenharmony_ci     */
55961847f8eSopenharmony_ci    /**
56061847f8eSopenharmony_ci     * Minimize status of the window
56161847f8eSopenharmony_ci     *
56261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
56361847f8eSopenharmony_ci     * @atomicservice
56461847f8eSopenharmony_ci     * @since 12
56561847f8eSopenharmony_ci     */
56661847f8eSopenharmony_ci    MINIMIZE,
56761847f8eSopenharmony_ci    /**
56861847f8eSopenharmony_ci     * Floating status of the window
56961847f8eSopenharmony_ci     *
57061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
57161847f8eSopenharmony_ci     * @since 11
57261847f8eSopenharmony_ci     */
57361847f8eSopenharmony_ci    /**
57461847f8eSopenharmony_ci     * Floating status of the window
57561847f8eSopenharmony_ci     *
57661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
57761847f8eSopenharmony_ci     * @atomicservice
57861847f8eSopenharmony_ci     * @since 12
57961847f8eSopenharmony_ci     */
58061847f8eSopenharmony_ci    FLOATING,
58161847f8eSopenharmony_ci    /**
58261847f8eSopenharmony_ci     * Split screen status of the window
58361847f8eSopenharmony_ci     *
58461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
58561847f8eSopenharmony_ci     * @since 11
58661847f8eSopenharmony_ci     */
58761847f8eSopenharmony_ci    /**
58861847f8eSopenharmony_ci     * Split screen status of the window
58961847f8eSopenharmony_ci     *
59061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
59161847f8eSopenharmony_ci     * @atomicservice
59261847f8eSopenharmony_ci     * @since 12
59361847f8eSopenharmony_ci     */
59461847f8eSopenharmony_ci    SPLIT_SCREEN
59561847f8eSopenharmony_ci  }
59661847f8eSopenharmony_ci
59761847f8eSopenharmony_ci  /**
59861847f8eSopenharmony_ci   * Properties of status bar and navigation bar, it couldn't update automatically
59961847f8eSopenharmony_ci   *
60061847f8eSopenharmony_ci   * @interface SystemBarProperties
60161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
60261847f8eSopenharmony_ci   * @since 6
60361847f8eSopenharmony_ci   */
60461847f8eSopenharmony_ci  /**
60561847f8eSopenharmony_ci   * Properties of status bar and navigation bar, it couldn't update automatically
60661847f8eSopenharmony_ci   *
60761847f8eSopenharmony_ci   * @interface SystemBarProperties
60861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
60961847f8eSopenharmony_ci   * @atomicservice
61061847f8eSopenharmony_ci   * @since 12
61161847f8eSopenharmony_ci   */
61261847f8eSopenharmony_ci  interface SystemBarProperties {
61361847f8eSopenharmony_ci    /**
61461847f8eSopenharmony_ci     * The color of the status bar.
61561847f8eSopenharmony_ci     *
61661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
61761847f8eSopenharmony_ci     * @since 6
61861847f8eSopenharmony_ci     */
61961847f8eSopenharmony_ci    /**
62061847f8eSopenharmony_ci     * The color of the status bar.
62161847f8eSopenharmony_ci     *
62261847f8eSopenharmony_ci     * @type { ?string }
62361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
62461847f8eSopenharmony_ci     * @atomicservice
62561847f8eSopenharmony_ci     * @since 12
62661847f8eSopenharmony_ci     */
62761847f8eSopenharmony_ci    statusBarColor?: string;
62861847f8eSopenharmony_ci
62961847f8eSopenharmony_ci    /**
63061847f8eSopenharmony_ci     * The light icon of the status bar.
63161847f8eSopenharmony_ci     *
63261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
63361847f8eSopenharmony_ci     * @since 7
63461847f8eSopenharmony_ci     */
63561847f8eSopenharmony_ci    /**
63661847f8eSopenharmony_ci     * The light icon of the status bar.
63761847f8eSopenharmony_ci     *
63861847f8eSopenharmony_ci     * @type { ?boolean }
63961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
64061847f8eSopenharmony_ci     * @atomicservice
64161847f8eSopenharmony_ci     * @since 12
64261847f8eSopenharmony_ci     */
64361847f8eSopenharmony_ci    isStatusBarLightIcon?: boolean;
64461847f8eSopenharmony_ci
64561847f8eSopenharmony_ci    /**
64661847f8eSopenharmony_ci     * The content color of the status bar
64761847f8eSopenharmony_ci     *
64861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
64961847f8eSopenharmony_ci     * @since 8
65061847f8eSopenharmony_ci     */
65161847f8eSopenharmony_ci    /**
65261847f8eSopenharmony_ci     * The content color of the status bar
65361847f8eSopenharmony_ci     *
65461847f8eSopenharmony_ci     * @type { ?string }
65561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
65661847f8eSopenharmony_ci     * @atomicservice
65761847f8eSopenharmony_ci     * @since 12
65861847f8eSopenharmony_ci     */
65961847f8eSopenharmony_ci    statusBarContentColor?: string;
66061847f8eSopenharmony_ci
66161847f8eSopenharmony_ci    /**
66261847f8eSopenharmony_ci     * The color of the navigation bar.
66361847f8eSopenharmony_ci     *
66461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
66561847f8eSopenharmony_ci     * @since 6
66661847f8eSopenharmony_ci     */
66761847f8eSopenharmony_ci    /**
66861847f8eSopenharmony_ci     * The color of the navigation bar.
66961847f8eSopenharmony_ci     *
67061847f8eSopenharmony_ci     * @type { ?string }
67161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
67261847f8eSopenharmony_ci     * @atomicservice
67361847f8eSopenharmony_ci     * @since 12
67461847f8eSopenharmony_ci     */
67561847f8eSopenharmony_ci    navigationBarColor?: string;
67661847f8eSopenharmony_ci
67761847f8eSopenharmony_ci    /**
67861847f8eSopenharmony_ci     * The light icon of the navigation bar.
67961847f8eSopenharmony_ci     *
68061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
68161847f8eSopenharmony_ci     * @since 7
68261847f8eSopenharmony_ci     */
68361847f8eSopenharmony_ci    /**
68461847f8eSopenharmony_ci     * The light icon of the navigation bar.
68561847f8eSopenharmony_ci     *
68661847f8eSopenharmony_ci     * @type { ?boolean }
68761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
68861847f8eSopenharmony_ci     * @atomicservice
68961847f8eSopenharmony_ci     * @since 12
69061847f8eSopenharmony_ci     */
69161847f8eSopenharmony_ci    isNavigationBarLightIcon?: boolean;
69261847f8eSopenharmony_ci
69361847f8eSopenharmony_ci    /**
69461847f8eSopenharmony_ci     * The content color of the navigation bar
69561847f8eSopenharmony_ci     *
69661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
69761847f8eSopenharmony_ci     * @since 8
69861847f8eSopenharmony_ci     */
69961847f8eSopenharmony_ci    /**
70061847f8eSopenharmony_ci     * The content color of the navigation bar
70161847f8eSopenharmony_ci     *
70261847f8eSopenharmony_ci     * @type { ?string }
70361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
70461847f8eSopenharmony_ci     * @atomicservice
70561847f8eSopenharmony_ci     * @since 12
70661847f8eSopenharmony_ci     */
70761847f8eSopenharmony_ci    navigationBarContentColor?: string;
70861847f8eSopenharmony_ci
70961847f8eSopenharmony_ci    /**
71061847f8eSopenharmony_ci     * Enable the animation of the status bar.
71161847f8eSopenharmony_ci     *
71261847f8eSopenharmony_ci     * @type { ?boolean }
71361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
71461847f8eSopenharmony_ci     * @atomicservice
71561847f8eSopenharmony_ci     * @since 12
71661847f8eSopenharmony_ci     */
71761847f8eSopenharmony_ci    enableStatusBarAnimation?: boolean;
71861847f8eSopenharmony_ci
71961847f8eSopenharmony_ci    /**
72061847f8eSopenharmony_ci     * Enable the animation of the navigation bar.
72161847f8eSopenharmony_ci     *
72261847f8eSopenharmony_ci     * @type { ?boolean }
72361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
72461847f8eSopenharmony_ci     * @atomicservice
72561847f8eSopenharmony_ci     * @since 12
72661847f8eSopenharmony_ci     */
72761847f8eSopenharmony_ci    enableNavigationBarAnimation?: boolean;
72861847f8eSopenharmony_ci  }
72961847f8eSopenharmony_ci  
73061847f8eSopenharmony_ci  /**
73161847f8eSopenharmony_ci   * Properties of status bar, it couldn't update automatically
73261847f8eSopenharmony_ci   *
73361847f8eSopenharmony_ci   * @interface SystemBarStyle
73461847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
73561847f8eSopenharmony_ci   * @atomicservice
73661847f8eSopenharmony_ci   * @since 12
73761847f8eSopenharmony_ci   */
73861847f8eSopenharmony_ci  interface SystemBarStyle {
73961847f8eSopenharmony_ci    /**
74061847f8eSopenharmony_ci     * The content color of the status bar
74161847f8eSopenharmony_ci     *
74261847f8eSopenharmony_ci     * @type { ?string }
74361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
74461847f8eSopenharmony_ci     * @atomicservice
74561847f8eSopenharmony_ci     * @since 12
74661847f8eSopenharmony_ci     */
74761847f8eSopenharmony_ci    statusBarContentColor?: string;
74861847f8eSopenharmony_ci  }
74961847f8eSopenharmony_ci
75061847f8eSopenharmony_ci  /**
75161847f8eSopenharmony_ci   * System bar tint of region
75261847f8eSopenharmony_ci   *
75361847f8eSopenharmony_ci   * @interface SystemBarRegionTint
75461847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
75561847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
75661847f8eSopenharmony_ci   * @since 8
75761847f8eSopenharmony_ci   */
75861847f8eSopenharmony_ci  interface SystemBarRegionTint {
75961847f8eSopenharmony_ci    /**
76061847f8eSopenharmony_ci     * System bar type
76161847f8eSopenharmony_ci     *
76261847f8eSopenharmony_ci     * @type { WindowType }
76361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
76461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
76561847f8eSopenharmony_ci     * @since 8
76661847f8eSopenharmony_ci     */
76761847f8eSopenharmony_ci    type: WindowType;
76861847f8eSopenharmony_ci
76961847f8eSopenharmony_ci    /**
77061847f8eSopenharmony_ci     * The visibility of system bar
77161847f8eSopenharmony_ci     *
77261847f8eSopenharmony_ci     * @type { ?boolean }
77361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
77461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
77561847f8eSopenharmony_ci     * @since 8
77661847f8eSopenharmony_ci     */
77761847f8eSopenharmony_ci    isEnable?: boolean;
77861847f8eSopenharmony_ci
77961847f8eSopenharmony_ci    /**
78061847f8eSopenharmony_ci     * The region of system bar
78161847f8eSopenharmony_ci     *
78261847f8eSopenharmony_ci     * @type { ?Rect }
78361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
78461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
78561847f8eSopenharmony_ci     * @since 8
78661847f8eSopenharmony_ci     */
78761847f8eSopenharmony_ci    region?: Rect;
78861847f8eSopenharmony_ci
78961847f8eSopenharmony_ci    /**
79061847f8eSopenharmony_ci     * The background color of the system bar.
79161847f8eSopenharmony_ci     *
79261847f8eSopenharmony_ci     * @type { ?string }
79361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
79461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
79561847f8eSopenharmony_ci     * @since 8
79661847f8eSopenharmony_ci     */
79761847f8eSopenharmony_ci    backgroundColor?: string;
79861847f8eSopenharmony_ci
79961847f8eSopenharmony_ci    /**
80061847f8eSopenharmony_ci     * The content color of the system bar.
80161847f8eSopenharmony_ci     *
80261847f8eSopenharmony_ci     * @type { ?string }
80361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
80461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
80561847f8eSopenharmony_ci     * @since 8
80661847f8eSopenharmony_ci     */
80761847f8eSopenharmony_ci    contentColor?: string;
80861847f8eSopenharmony_ci  }
80961847f8eSopenharmony_ci
81061847f8eSopenharmony_ci  /**
81161847f8eSopenharmony_ci   * System bar tint state for systemui
81261847f8eSopenharmony_ci   *
81361847f8eSopenharmony_ci   * @interface SystemBarTintState
81461847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
81561847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
81661847f8eSopenharmony_ci   * @since 8
81761847f8eSopenharmony_ci   */
81861847f8eSopenharmony_ci  interface SystemBarTintState {
81961847f8eSopenharmony_ci    /**
82061847f8eSopenharmony_ci     * Id of display
82161847f8eSopenharmony_ci     *
82261847f8eSopenharmony_ci     * @type { number }
82361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
82461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
82561847f8eSopenharmony_ci     * @since 8
82661847f8eSopenharmony_ci     */
82761847f8eSopenharmony_ci    displayId: number;
82861847f8eSopenharmony_ci    /**
82961847f8eSopenharmony_ci     * Region tint of systembar
83061847f8eSopenharmony_ci     *
83161847f8eSopenharmony_ci     * @type { Array<SystemBarRegionTint> }
83261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
83361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
83461847f8eSopenharmony_ci     * @since 8
83561847f8eSopenharmony_ci     */
83661847f8eSopenharmony_ci    regionTint: Array<SystemBarRegionTint>;
83761847f8eSopenharmony_ci  }
83861847f8eSopenharmony_ci
83961847f8eSopenharmony_ci  /**
84061847f8eSopenharmony_ci   * Rectangle
84161847f8eSopenharmony_ci   *
84261847f8eSopenharmony_ci   * @interface Rect
84361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
84461847f8eSopenharmony_ci   * @since 7
84561847f8eSopenharmony_ci   */
84661847f8eSopenharmony_ci  /**
84761847f8eSopenharmony_ci   * Rectangle
84861847f8eSopenharmony_ci   *
84961847f8eSopenharmony_ci   * @interface Rect
85061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
85161847f8eSopenharmony_ci   * @crossplatform
85261847f8eSopenharmony_ci   * @since 10
85361847f8eSopenharmony_ci   */
85461847f8eSopenharmony_ci  /**
85561847f8eSopenharmony_ci   * Rectangle
85661847f8eSopenharmony_ci   *
85761847f8eSopenharmony_ci   * @interface Rect
85861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
85961847f8eSopenharmony_ci   * @crossplatform
86061847f8eSopenharmony_ci   * @atomicservice
86161847f8eSopenharmony_ci   * @since 11
86261847f8eSopenharmony_ci   */
86361847f8eSopenharmony_ci  interface Rect {
86461847f8eSopenharmony_ci
86561847f8eSopenharmony_ci    /**
86661847f8eSopenharmony_ci     * The left of the Rect.
86761847f8eSopenharmony_ci     *
86861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
86961847f8eSopenharmony_ci     * @since 7
87061847f8eSopenharmony_ci     */
87161847f8eSopenharmony_ci    /**
87261847f8eSopenharmony_ci     * The left of the Rect.
87361847f8eSopenharmony_ci     *
87461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
87561847f8eSopenharmony_ci     * @crossplatform
87661847f8eSopenharmony_ci     * @since 10
87761847f8eSopenharmony_ci     */
87861847f8eSopenharmony_ci    /**
87961847f8eSopenharmony_ci     * The left of the Rect.
88061847f8eSopenharmony_ci     *
88161847f8eSopenharmony_ci     * @type { number }
88261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
88361847f8eSopenharmony_ci     * @crossplatform
88461847f8eSopenharmony_ci     * @atomicservice
88561847f8eSopenharmony_ci     * @since 11
88661847f8eSopenharmony_ci     */
88761847f8eSopenharmony_ci    left: number;
88861847f8eSopenharmony_ci
88961847f8eSopenharmony_ci    /**
89061847f8eSopenharmony_ci     * The top of the Rect.
89161847f8eSopenharmony_ci     *
89261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
89361847f8eSopenharmony_ci     * @since 7
89461847f8eSopenharmony_ci     */
89561847f8eSopenharmony_ci    /**
89661847f8eSopenharmony_ci     * The top of the Rect.
89761847f8eSopenharmony_ci     *
89861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
89961847f8eSopenharmony_ci     * @crossplatform
90061847f8eSopenharmony_ci     * @since 10
90161847f8eSopenharmony_ci     */
90261847f8eSopenharmony_ci    /**
90361847f8eSopenharmony_ci     * The top of the Rect.
90461847f8eSopenharmony_ci     *
90561847f8eSopenharmony_ci     * @type { number }
90661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
90761847f8eSopenharmony_ci     * @crossplatform
90861847f8eSopenharmony_ci     * @atomicservice
90961847f8eSopenharmony_ci     * @since 11
91061847f8eSopenharmony_ci     */
91161847f8eSopenharmony_ci    top: number;
91261847f8eSopenharmony_ci
91361847f8eSopenharmony_ci    /**
91461847f8eSopenharmony_ci     * The width of the Rect.
91561847f8eSopenharmony_ci     *
91661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
91761847f8eSopenharmony_ci     * @since 7
91861847f8eSopenharmony_ci     */
91961847f8eSopenharmony_ci    /**
92061847f8eSopenharmony_ci     * The width of the Rect.
92161847f8eSopenharmony_ci     *
92261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
92361847f8eSopenharmony_ci     * @crossplatform
92461847f8eSopenharmony_ci     * @since 10
92561847f8eSopenharmony_ci     */
92661847f8eSopenharmony_ci    /**
92761847f8eSopenharmony_ci     * The width of the Rect.
92861847f8eSopenharmony_ci     *
92961847f8eSopenharmony_ci     * @type { number }
93061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
93161847f8eSopenharmony_ci     * @crossplatform
93261847f8eSopenharmony_ci     * @atomicservice
93361847f8eSopenharmony_ci     * @since 11
93461847f8eSopenharmony_ci     */
93561847f8eSopenharmony_ci    width: number;
93661847f8eSopenharmony_ci
93761847f8eSopenharmony_ci    /**
93861847f8eSopenharmony_ci     * The height of the Rect.
93961847f8eSopenharmony_ci     *
94061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
94161847f8eSopenharmony_ci     * @since 7
94261847f8eSopenharmony_ci     */
94361847f8eSopenharmony_ci    /**
94461847f8eSopenharmony_ci     * The height of the Rect.
94561847f8eSopenharmony_ci     *
94661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
94761847f8eSopenharmony_ci     * @crossplatform
94861847f8eSopenharmony_ci     * @since 10
94961847f8eSopenharmony_ci     */
95061847f8eSopenharmony_ci    /**
95161847f8eSopenharmony_ci     * The height of the Rect.
95261847f8eSopenharmony_ci     *
95361847f8eSopenharmony_ci     * @type { number }
95461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
95561847f8eSopenharmony_ci     * @crossplatform
95661847f8eSopenharmony_ci     * @atomicservice
95761847f8eSopenharmony_ci     * @since 11
95861847f8eSopenharmony_ci     */
95961847f8eSopenharmony_ci    height: number;
96061847f8eSopenharmony_ci  }
96161847f8eSopenharmony_ci
96261847f8eSopenharmony_ci  /**
96361847f8eSopenharmony_ci   * Avoid area
96461847f8eSopenharmony_ci   *
96561847f8eSopenharmony_ci   * @interface AvoidArea
96661847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
96761847f8eSopenharmony_ci   * @since 7
96861847f8eSopenharmony_ci   */
96961847f8eSopenharmony_ci  /**
97061847f8eSopenharmony_ci   * Avoid area
97161847f8eSopenharmony_ci   *
97261847f8eSopenharmony_ci   * @interface AvoidArea
97361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
97461847f8eSopenharmony_ci   * @atomicservice
97561847f8eSopenharmony_ci   * @since 11
97661847f8eSopenharmony_ci   */
97761847f8eSopenharmony_ci  /**
97861847f8eSopenharmony_ci   * Avoid area
97961847f8eSopenharmony_ci   *
98061847f8eSopenharmony_ci   * @interface AvoidArea
98161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
98261847f8eSopenharmony_ci   * @crossplatform
98361847f8eSopenharmony_ci   * @atomicservice
98461847f8eSopenharmony_ci   * @since 12
98561847f8eSopenharmony_ci   */
98661847f8eSopenharmony_ci  interface AvoidArea {
98761847f8eSopenharmony_ci    /**
98861847f8eSopenharmony_ci     * Whether avoidArea is visible on screen
98961847f8eSopenharmony_ci     *
99061847f8eSopenharmony_ci     * @type { boolean }
99161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
99261847f8eSopenharmony_ci     * @since 9
99361847f8eSopenharmony_ci     */
99461847f8eSopenharmony_ci    /**
99561847f8eSopenharmony_ci     * Whether avoidArea is visible on screen
99661847f8eSopenharmony_ci     *
99761847f8eSopenharmony_ci     * @type { boolean }
99861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
99961847f8eSopenharmony_ci     * @atomicservice
100061847f8eSopenharmony_ci     * @since 11
100161847f8eSopenharmony_ci     */
100261847f8eSopenharmony_ci    visible: boolean;
100361847f8eSopenharmony_ci
100461847f8eSopenharmony_ci    /**
100561847f8eSopenharmony_ci     * Rectangle on the left of the screen
100661847f8eSopenharmony_ci     *
100761847f8eSopenharmony_ci     * @type { Rect }
100861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
100961847f8eSopenharmony_ci     * @since 7
101061847f8eSopenharmony_ci     */
101161847f8eSopenharmony_ci    /**
101261847f8eSopenharmony_ci     * Rectangle on the left of the screen
101361847f8eSopenharmony_ci     *
101461847f8eSopenharmony_ci     * @type { Rect }
101561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
101661847f8eSopenharmony_ci     * @atomicservice
101761847f8eSopenharmony_ci     * @since 11
101861847f8eSopenharmony_ci     */
101961847f8eSopenharmony_ci    /**
102061847f8eSopenharmony_ci     * Rectangle on the left of the screen
102161847f8eSopenharmony_ci     *
102261847f8eSopenharmony_ci     * @type { Rect }
102361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
102461847f8eSopenharmony_ci     * @crossplatform
102561847f8eSopenharmony_ci     * @atomicservice
102661847f8eSopenharmony_ci     * @since 12
102761847f8eSopenharmony_ci     */
102861847f8eSopenharmony_ci    leftRect: Rect;
102961847f8eSopenharmony_ci
103061847f8eSopenharmony_ci    /**
103161847f8eSopenharmony_ci     * Rectangle on the top of the screen
103261847f8eSopenharmony_ci     *
103361847f8eSopenharmony_ci     * @type { Rect }
103461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
103561847f8eSopenharmony_ci     * @since 7
103661847f8eSopenharmony_ci     */
103761847f8eSopenharmony_ci    /**
103861847f8eSopenharmony_ci     * Rectangle on the top of the screen
103961847f8eSopenharmony_ci     *
104061847f8eSopenharmony_ci     * @type { Rect }
104161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
104261847f8eSopenharmony_ci     * @atomicservice
104361847f8eSopenharmony_ci     * @since 11
104461847f8eSopenharmony_ci     */
104561847f8eSopenharmony_ci    /**
104661847f8eSopenharmony_ci     * Rectangle on the top of the screen
104761847f8eSopenharmony_ci     *
104861847f8eSopenharmony_ci     * @type { Rect }
104961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
105061847f8eSopenharmony_ci     * @crossplatform
105161847f8eSopenharmony_ci     * @atomicservice
105261847f8eSopenharmony_ci     * @since 12
105361847f8eSopenharmony_ci     */
105461847f8eSopenharmony_ci    topRect: Rect;
105561847f8eSopenharmony_ci
105661847f8eSopenharmony_ci    /**
105761847f8eSopenharmony_ci     * Rectangle on the right of the screen
105861847f8eSopenharmony_ci     *
105961847f8eSopenharmony_ci     * @type { Rect }
106061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
106161847f8eSopenharmony_ci     * @since 7
106261847f8eSopenharmony_ci     */
106361847f8eSopenharmony_ci    /**
106461847f8eSopenharmony_ci     * Rectangle on the right of the screen
106561847f8eSopenharmony_ci     *
106661847f8eSopenharmony_ci     * @type { Rect }
106761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
106861847f8eSopenharmony_ci     * @atomicservice
106961847f8eSopenharmony_ci     * @since 11
107061847f8eSopenharmony_ci     */
107161847f8eSopenharmony_ci    /**
107261847f8eSopenharmony_ci     * Rectangle on the right of the screen
107361847f8eSopenharmony_ci     *
107461847f8eSopenharmony_ci     * @type { Rect }
107561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
107661847f8eSopenharmony_ci     * @crossplatform
107761847f8eSopenharmony_ci     * @atomicservice
107861847f8eSopenharmony_ci     * @since 12
107961847f8eSopenharmony_ci     */
108061847f8eSopenharmony_ci    rightRect: Rect;
108161847f8eSopenharmony_ci
108261847f8eSopenharmony_ci    /**
108361847f8eSopenharmony_ci     * Rectangle on the bottom of the screen
108461847f8eSopenharmony_ci     *
108561847f8eSopenharmony_ci     * @type { Rect }
108661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
108761847f8eSopenharmony_ci     * @since 7
108861847f8eSopenharmony_ci     */
108961847f8eSopenharmony_ci    /**
109061847f8eSopenharmony_ci     * Rectangle on the bottom of the screen
109161847f8eSopenharmony_ci     *
109261847f8eSopenharmony_ci     * @type { Rect }
109361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
109461847f8eSopenharmony_ci     * @atomicservice
109561847f8eSopenharmony_ci     * @since 11
109661847f8eSopenharmony_ci     */
109761847f8eSopenharmony_ci    /**
109861847f8eSopenharmony_ci     * Rectangle on the bottom of the screen
109961847f8eSopenharmony_ci     *
110061847f8eSopenharmony_ci     * @type { Rect }
110161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
110261847f8eSopenharmony_ci     * @crossplatform
110361847f8eSopenharmony_ci     * @atomicservice
110461847f8eSopenharmony_ci     * @since 12
110561847f8eSopenharmony_ci     */
110661847f8eSopenharmony_ci    bottomRect: Rect;
110761847f8eSopenharmony_ci  }
110861847f8eSopenharmony_ci
110961847f8eSopenharmony_ci  /**
111061847f8eSopenharmony_ci   * Window size
111161847f8eSopenharmony_ci   *
111261847f8eSopenharmony_ci   * @interface Size
111361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
111461847f8eSopenharmony_ci   * @since 7
111561847f8eSopenharmony_ci   */
111661847f8eSopenharmony_ci  /**
111761847f8eSopenharmony_ci   * Window size
111861847f8eSopenharmony_ci   *
111961847f8eSopenharmony_ci   * @interface Size
112061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
112161847f8eSopenharmony_ci   * @crossplatform
112261847f8eSopenharmony_ci   * @since 10
112361847f8eSopenharmony_ci   */
112461847f8eSopenharmony_ci  /**
112561847f8eSopenharmony_ci   * Window size
112661847f8eSopenharmony_ci   *
112761847f8eSopenharmony_ci   * @interface Size
112861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
112961847f8eSopenharmony_ci   * @crossplatform
113061847f8eSopenharmony_ci   * @atomicservice
113161847f8eSopenharmony_ci   * @since 11
113261847f8eSopenharmony_ci   */
113361847f8eSopenharmony_ci  interface Size {
113461847f8eSopenharmony_ci    /**
113561847f8eSopenharmony_ci     * The width of the window.
113661847f8eSopenharmony_ci     *
113761847f8eSopenharmony_ci     * @type { number }
113861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
113961847f8eSopenharmony_ci     * @since 7
114061847f8eSopenharmony_ci     */
114161847f8eSopenharmony_ci    /**
114261847f8eSopenharmony_ci     * The width of the window.
114361847f8eSopenharmony_ci     *
114461847f8eSopenharmony_ci     * @type { number }
114561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
114661847f8eSopenharmony_ci     * @crossplatform
114761847f8eSopenharmony_ci     * @since 10
114861847f8eSopenharmony_ci     */
114961847f8eSopenharmony_ci    /**
115061847f8eSopenharmony_ci     * The width of the window.
115161847f8eSopenharmony_ci     *
115261847f8eSopenharmony_ci     * @type { number }
115361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
115461847f8eSopenharmony_ci     * @crossplatform
115561847f8eSopenharmony_ci     * @atomicservice
115661847f8eSopenharmony_ci     * @since 11
115761847f8eSopenharmony_ci     */
115861847f8eSopenharmony_ci    width: number;
115961847f8eSopenharmony_ci
116061847f8eSopenharmony_ci    /**
116161847f8eSopenharmony_ci     * The height of the window.
116261847f8eSopenharmony_ci     *
116361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
116461847f8eSopenharmony_ci     * @since 7
116561847f8eSopenharmony_ci     */
116661847f8eSopenharmony_ci    /**
116761847f8eSopenharmony_ci     * The height of the window.
116861847f8eSopenharmony_ci     *
116961847f8eSopenharmony_ci     * @type { number }
117061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
117161847f8eSopenharmony_ci     * @crossplatform
117261847f8eSopenharmony_ci     * @since 10
117361847f8eSopenharmony_ci     */
117461847f8eSopenharmony_ci    /**
117561847f8eSopenharmony_ci     * The height of the window.
117661847f8eSopenharmony_ci     *
117761847f8eSopenharmony_ci     * @type { number }
117861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
117961847f8eSopenharmony_ci     * @crossplatform
118061847f8eSopenharmony_ci     * @atomicservice
118161847f8eSopenharmony_ci     * @since 11
118261847f8eSopenharmony_ci     */
118361847f8eSopenharmony_ci    height: number;
118461847f8eSopenharmony_ci  }
118561847f8eSopenharmony_ci
118661847f8eSopenharmony_ci  /**
118761847f8eSopenharmony_ci   * The info of window
118861847f8eSopenharmony_ci   *
118961847f8eSopenharmony_ci   * @interface WindowInfo
119061847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
119161847f8eSopenharmony_ci   * @systemapi
119261847f8eSopenharmony_ci   * @since 12
119361847f8eSopenharmony_ci   */
119461847f8eSopenharmony_ci  interface WindowInfo {
119561847f8eSopenharmony_ci    /**
119661847f8eSopenharmony_ci     * The position and size of the window
119761847f8eSopenharmony_ci     *
119861847f8eSopenharmony_ci     * @type { Rect }
119961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
120061847f8eSopenharmony_ci     * @systemapi
120161847f8eSopenharmony_ci     * @since 12
120261847f8eSopenharmony_ci     */
120361847f8eSopenharmony_ci    rect: Rect;
120461847f8eSopenharmony_ci
120561847f8eSopenharmony_ci    /**
120661847f8eSopenharmony_ci     * bundleName of window
120761847f8eSopenharmony_ci     *
120861847f8eSopenharmony_ci     * @type { string }
120961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
121061847f8eSopenharmony_ci     * @systemapi
121161847f8eSopenharmony_ci     * @since 12
121261847f8eSopenharmony_ci     */
121361847f8eSopenharmony_ci    bundleName: string;
121461847f8eSopenharmony_ci
121561847f8eSopenharmony_ci    /**
121661847f8eSopenharmony_ci     * abilityName of window
121761847f8eSopenharmony_ci     *
121861847f8eSopenharmony_ci     * @type { string }
121961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
122061847f8eSopenharmony_ci     * @systemapi
122161847f8eSopenharmony_ci     * @since 12
122261847f8eSopenharmony_ci     */
122361847f8eSopenharmony_ci    abilityName: string;
122461847f8eSopenharmony_ci
122561847f8eSopenharmony_ci    /**
122661847f8eSopenharmony_ci     * Indicates target window id.
122761847f8eSopenharmony_ci     *
122861847f8eSopenharmony_ci     * @type { number }
122961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
123061847f8eSopenharmony_ci     * @systemapi
123161847f8eSopenharmony_ci     * @since 12
123261847f8eSopenharmony_ci     */
123361847f8eSopenharmony_ci    windowId: number;
123461847f8eSopenharmony_ci
123561847f8eSopenharmony_ci    /**
123661847f8eSopenharmony_ci     * The window status of an application.
123761847f8eSopenharmony_ci     *
123861847f8eSopenharmony_ci     * @type { WindowStatusType }
123961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
124061847f8eSopenharmony_ci     * @systemapi
124161847f8eSopenharmony_ci     * @since 12
124261847f8eSopenharmony_ci     */
124361847f8eSopenharmony_ci    windowStatusType: WindowStatusType;
124461847f8eSopenharmony_ci  }
124561847f8eSopenharmony_ci
124661847f8eSopenharmony_ci  /**
124761847f8eSopenharmony_ci   * Properties of window, it couldn't update automatically
124861847f8eSopenharmony_ci   *
124961847f8eSopenharmony_ci   * @interface WindowProperties
125061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
125161847f8eSopenharmony_ci   * @since 6
125261847f8eSopenharmony_ci   */
125361847f8eSopenharmony_ci  /**
125461847f8eSopenharmony_ci   * Properties of window, it couldn't update automatically
125561847f8eSopenharmony_ci   *
125661847f8eSopenharmony_ci   * @interface WindowProperties
125761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
125861847f8eSopenharmony_ci   * @crossplatform
125961847f8eSopenharmony_ci   * @since 10
126061847f8eSopenharmony_ci   */
126161847f8eSopenharmony_ci  /**
126261847f8eSopenharmony_ci   * Properties of window, it couldn't update automatically
126361847f8eSopenharmony_ci   *
126461847f8eSopenharmony_ci   * @interface WindowProperties
126561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
126661847f8eSopenharmony_ci   * @crossplatform
126761847f8eSopenharmony_ci   * @atomicservice
126861847f8eSopenharmony_ci   * @since 11
126961847f8eSopenharmony_ci   */
127061847f8eSopenharmony_ci  interface WindowProperties {
127161847f8eSopenharmony_ci    /**
127261847f8eSopenharmony_ci     * The position and size of the window
127361847f8eSopenharmony_ci     *
127461847f8eSopenharmony_ci     * @type { Rect }
127561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
127661847f8eSopenharmony_ci     * @since 7
127761847f8eSopenharmony_ci     */
127861847f8eSopenharmony_ci    /**
127961847f8eSopenharmony_ci     * The position and size of the window
128061847f8eSopenharmony_ci     *
128161847f8eSopenharmony_ci     * @type { Rect }
128261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
128361847f8eSopenharmony_ci     * @crossplatform
128461847f8eSopenharmony_ci     * @since 10
128561847f8eSopenharmony_ci     */
128661847f8eSopenharmony_ci    /**
128761847f8eSopenharmony_ci     * The position and size of the window
128861847f8eSopenharmony_ci     *
128961847f8eSopenharmony_ci     * @type { Rect }
129061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
129161847f8eSopenharmony_ci     * @crossplatform
129261847f8eSopenharmony_ci     * @atomicservice
129361847f8eSopenharmony_ci     * @since 11
129461847f8eSopenharmony_ci     */
129561847f8eSopenharmony_ci    windowRect: Rect;
129661847f8eSopenharmony_ci
129761847f8eSopenharmony_ci    /**
129861847f8eSopenharmony_ci     * The position relative to the window and size of drawable area
129961847f8eSopenharmony_ci     *
130061847f8eSopenharmony_ci     * @type { Rect } 
130161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
130261847f8eSopenharmony_ci     * @since 11
130361847f8eSopenharmony_ci     */
130461847f8eSopenharmony_ci    /**
130561847f8eSopenharmony_ci     * The position relative to the window and size of drawable area
130661847f8eSopenharmony_ci     *
130761847f8eSopenharmony_ci     * @type { Rect } 
130861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
130961847f8eSopenharmony_ci     * @atomicservice
131061847f8eSopenharmony_ci     * @since 12
131161847f8eSopenharmony_ci     */
131261847f8eSopenharmony_ci    drawableRect: Rect;
131361847f8eSopenharmony_ci    
131461847f8eSopenharmony_ci    /**
131561847f8eSopenharmony_ci     * Window type
131661847f8eSopenharmony_ci     *
131761847f8eSopenharmony_ci     * @type { WindowType }
131861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
131961847f8eSopenharmony_ci     * @since 7
132061847f8eSopenharmony_ci     */
132161847f8eSopenharmony_ci    /**
132261847f8eSopenharmony_ci     * Window type
132361847f8eSopenharmony_ci     *
132461847f8eSopenharmony_ci     * @type { WindowType }
132561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
132661847f8eSopenharmony_ci     * @atomicservice
132761847f8eSopenharmony_ci     * @since 12
132861847f8eSopenharmony_ci     */
132961847f8eSopenharmony_ci    type: WindowType;
133061847f8eSopenharmony_ci
133161847f8eSopenharmony_ci    /**
133261847f8eSopenharmony_ci     * Whether the window is displayed in full screen mode. The default value is false.
133361847f8eSopenharmony_ci     *
133461847f8eSopenharmony_ci     * @type { boolean }
133561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
133661847f8eSopenharmony_ci     * @since 6
133761847f8eSopenharmony_ci     */
133861847f8eSopenharmony_ci    /**
133961847f8eSopenharmony_ci     * Whether the window is displayed in full screen mode. The default value is false.
134061847f8eSopenharmony_ci     *
134161847f8eSopenharmony_ci     * @type { boolean }
134261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
134361847f8eSopenharmony_ci     * @atomicservice
134461847f8eSopenharmony_ci     * @since 12
134561847f8eSopenharmony_ci     */
134661847f8eSopenharmony_ci    isFullScreen: boolean;
134761847f8eSopenharmony_ci
134861847f8eSopenharmony_ci    /**
134961847f8eSopenharmony_ci     * Whether the window layout is in full screen mode(whether the window is immersive). The default value is false.
135061847f8eSopenharmony_ci     *
135161847f8eSopenharmony_ci     * @type { boolean }
135261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
135361847f8eSopenharmony_ci     * @since 7
135461847f8eSopenharmony_ci     */
135561847f8eSopenharmony_ci    /**
135661847f8eSopenharmony_ci     * Whether the window layout is in full screen mode(whether the window is immersive). The default value is false.
135761847f8eSopenharmony_ci     *
135861847f8eSopenharmony_ci     * @type { boolean }
135961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
136061847f8eSopenharmony_ci     * @atomicservice
136161847f8eSopenharmony_ci     * @since 12
136261847f8eSopenharmony_ci     */
136361847f8eSopenharmony_ci    isLayoutFullScreen: boolean;
136461847f8eSopenharmony_ci
136561847f8eSopenharmony_ci    /**
136661847f8eSopenharmony_ci     * Whether the window can gain focus. The default value is true
136761847f8eSopenharmony_ci     *
136861847f8eSopenharmony_ci     * @type { boolean }
136961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
137061847f8eSopenharmony_ci     * @since 7
137161847f8eSopenharmony_ci     */
137261847f8eSopenharmony_ci    /**
137361847f8eSopenharmony_ci     * Whether the window can gain focus. The default value is true
137461847f8eSopenharmony_ci     *
137561847f8eSopenharmony_ci     * @type { boolean }
137661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
137761847f8eSopenharmony_ci     * @atomicservice
137861847f8eSopenharmony_ci     * @since 12
137961847f8eSopenharmony_ci     */
138061847f8eSopenharmony_ci    focusable: boolean;
138161847f8eSopenharmony_ci
138261847f8eSopenharmony_ci    /**
138361847f8eSopenharmony_ci     * Whether the window is touchable. The default value is false
138461847f8eSopenharmony_ci     *
138561847f8eSopenharmony_ci     * @type { boolean }
138661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
138761847f8eSopenharmony_ci     * @since 7
138861847f8eSopenharmony_ci     */
138961847f8eSopenharmony_ci    /**
139061847f8eSopenharmony_ci     * Whether the window is touchable. The default value is false
139161847f8eSopenharmony_ci     *
139261847f8eSopenharmony_ci     * @type { boolean }
139361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
139461847f8eSopenharmony_ci     * @atomicservice
139561847f8eSopenharmony_ci     * @since 12
139661847f8eSopenharmony_ci     */
139761847f8eSopenharmony_ci    touchable: boolean;
139861847f8eSopenharmony_ci
139961847f8eSopenharmony_ci    /**
140061847f8eSopenharmony_ci     * Brightness value of window.
140161847f8eSopenharmony_ci     *
140261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
140361847f8eSopenharmony_ci     * @since 6
140461847f8eSopenharmony_ci     */
140561847f8eSopenharmony_ci    /**
140661847f8eSopenharmony_ci     * Brightness value of window.
140761847f8eSopenharmony_ci     *
140861847f8eSopenharmony_ci     * @type { number }
140961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
141061847f8eSopenharmony_ci     * @crossplatform
141161847f8eSopenharmony_ci     * @since 10
141261847f8eSopenharmony_ci     */
141361847f8eSopenharmony_ci    /**
141461847f8eSopenharmony_ci     * Brightness value of window.
141561847f8eSopenharmony_ci     *
141661847f8eSopenharmony_ci     * @type { number }
141761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
141861847f8eSopenharmony_ci     * @crossplatform
141961847f8eSopenharmony_ci     * @atomicservice
142061847f8eSopenharmony_ci     * @since 11
142161847f8eSopenharmony_ci     */
142261847f8eSopenharmony_ci    brightness: number;
142361847f8eSopenharmony_ci
142461847f8eSopenharmony_ci    /**
142561847f8eSopenharmony_ci     * The dimbehind value of window.
142661847f8eSopenharmony_ci     *
142761847f8eSopenharmony_ci     * @type { number }
142861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
142961847f8eSopenharmony_ci     * @since 7
143061847f8eSopenharmony_ci     * @deprecated since 9
143161847f8eSopenharmony_ci     */
143261847f8eSopenharmony_ci    dimBehindValue: number;
143361847f8eSopenharmony_ci
143461847f8eSopenharmony_ci    /**
143561847f8eSopenharmony_ci     * Whether keep screen on.
143661847f8eSopenharmony_ci     *
143761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
143861847f8eSopenharmony_ci     * @since 6
143961847f8eSopenharmony_ci     */
144061847f8eSopenharmony_ci    /**
144161847f8eSopenharmony_ci     * Whether keep screen on.
144261847f8eSopenharmony_ci     *
144361847f8eSopenharmony_ci     * @type { boolean }
144461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
144561847f8eSopenharmony_ci     * @crossplatform
144661847f8eSopenharmony_ci     * @since 10
144761847f8eSopenharmony_ci     */
144861847f8eSopenharmony_ci    /**
144961847f8eSopenharmony_ci     * Whether keep screen on.
145061847f8eSopenharmony_ci     *
145161847f8eSopenharmony_ci     * @type { boolean }
145261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
145361847f8eSopenharmony_ci     * @crossplatform
145461847f8eSopenharmony_ci     * @atomicservice
145561847f8eSopenharmony_ci     * @since 11
145661847f8eSopenharmony_ci     */
145761847f8eSopenharmony_ci    isKeepScreenOn: boolean;
145861847f8eSopenharmony_ci
145961847f8eSopenharmony_ci    /**
146061847f8eSopenharmony_ci     * Whether make window in privacy mode or not.
146161847f8eSopenharmony_ci     *
146261847f8eSopenharmony_ci     * @type { boolean }
146361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
146461847f8eSopenharmony_ci     * @since 7
146561847f8eSopenharmony_ci     */
146661847f8eSopenharmony_ci    /**
146761847f8eSopenharmony_ci     * Whether make window in privacy mode or not.
146861847f8eSopenharmony_ci     *
146961847f8eSopenharmony_ci     * @type { boolean }
147061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
147161847f8eSopenharmony_ci     * @atomicservice
147261847f8eSopenharmony_ci     * @since 12
147361847f8eSopenharmony_ci     */
147461847f8eSopenharmony_ci    isPrivacyMode: boolean;
147561847f8eSopenharmony_ci
147661847f8eSopenharmony_ci    /**
147761847f8eSopenharmony_ci     * Whether is round corner or not.
147861847f8eSopenharmony_ci     *
147961847f8eSopenharmony_ci     * @type { boolean }
148061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
148161847f8eSopenharmony_ci     * @since 7
148261847f8eSopenharmony_ci     * @deprecated since 9
148361847f8eSopenharmony_ci     */
148461847f8eSopenharmony_ci    isRoundCorner: boolean;
148561847f8eSopenharmony_ci
148661847f8eSopenharmony_ci    /**
148761847f8eSopenharmony_ci     * Whether is transparent or not.
148861847f8eSopenharmony_ci     *
148961847f8eSopenharmony_ci     * @type { boolean }
149061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
149161847f8eSopenharmony_ci     * @since 7
149261847f8eSopenharmony_ci     */
149361847f8eSopenharmony_ci    /**
149461847f8eSopenharmony_ci     * Whether is transparent or not.
149561847f8eSopenharmony_ci     *
149661847f8eSopenharmony_ci     * @type { boolean }
149761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
149861847f8eSopenharmony_ci     * @atomicservice
149961847f8eSopenharmony_ci     * @since 12
150061847f8eSopenharmony_ci     */
150161847f8eSopenharmony_ci    isTransparent: boolean;
150261847f8eSopenharmony_ci
150361847f8eSopenharmony_ci    /**
150461847f8eSopenharmony_ci     * Window id.
150561847f8eSopenharmony_ci     *
150661847f8eSopenharmony_ci     * @type { number }
150761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
150861847f8eSopenharmony_ci     * @since 9
150961847f8eSopenharmony_ci     */
151061847f8eSopenharmony_ci    /**
151161847f8eSopenharmony_ci     * Window id.
151261847f8eSopenharmony_ci     *
151361847f8eSopenharmony_ci     * @type { number }
151461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
151561847f8eSopenharmony_ci     * @atomicservice
151661847f8eSopenharmony_ci     * @since 12
151761847f8eSopenharmony_ci     */
151861847f8eSopenharmony_ci    id: number;
151961847f8eSopenharmony_ci
152061847f8eSopenharmony_ci    /**
152161847f8eSopenharmony_ci     * display id.
152261847f8eSopenharmony_ci     *
152361847f8eSopenharmony_ci     * @type { ?number }
152461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
152561847f8eSopenharmony_ci     * @atomicservice
152661847f8eSopenharmony_ci     * @since 12
152761847f8eSopenharmony_ci     */
152861847f8eSopenharmony_ci    displayId?: number;
152961847f8eSopenharmony_ci  }
153061847f8eSopenharmony_ci
153161847f8eSopenharmony_ci  /**
153261847f8eSopenharmony_ci   * Type of allowing the specified of color space.
153361847f8eSopenharmony_ci   *
153461847f8eSopenharmony_ci   * @enum { number }
153561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
153661847f8eSopenharmony_ci   * @since 8
153761847f8eSopenharmony_ci   */
153861847f8eSopenharmony_ci  /**
153961847f8eSopenharmony_ci   * Type of allowing the specified of color space.
154061847f8eSopenharmony_ci   *
154161847f8eSopenharmony_ci   * @enum { number }
154261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
154361847f8eSopenharmony_ci   * @crossplatform
154461847f8eSopenharmony_ci   * @since 11
154561847f8eSopenharmony_ci   */
154661847f8eSopenharmony_ci  /**
154761847f8eSopenharmony_ci   * Type of allowing the specified of color space.
154861847f8eSopenharmony_ci   *
154961847f8eSopenharmony_ci   * @enum { number }
155061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
155161847f8eSopenharmony_ci   * @crossplatform
155261847f8eSopenharmony_ci   * @atomicservice
155361847f8eSopenharmony_ci   * @since 12
155461847f8eSopenharmony_ci   */
155561847f8eSopenharmony_ci  enum ColorSpace {
155661847f8eSopenharmony_ci    /**
155761847f8eSopenharmony_ci     * Default color space.
155861847f8eSopenharmony_ci     *
155961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
156061847f8eSopenharmony_ci     * @since 8
156161847f8eSopenharmony_ci     */
156261847f8eSopenharmony_ci    /**
156361847f8eSopenharmony_ci     * Default color space.
156461847f8eSopenharmony_ci     *
156561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
156661847f8eSopenharmony_ci     * @crossplatform
156761847f8eSopenharmony_ci     * @since 11
156861847f8eSopenharmony_ci     */
156961847f8eSopenharmony_ci    /**
157061847f8eSopenharmony_ci     * Default color space.
157161847f8eSopenharmony_ci     *
157261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
157361847f8eSopenharmony_ci     * @crossplatform
157461847f8eSopenharmony_ci     * @atomicservice
157561847f8eSopenharmony_ci     * @since 12
157661847f8eSopenharmony_ci     */
157761847f8eSopenharmony_ci    DEFAULT,
157861847f8eSopenharmony_ci    /**
157961847f8eSopenharmony_ci     * Wide gamut color space. The specific wide color gamut depends on thr screen.
158061847f8eSopenharmony_ci     *
158161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
158261847f8eSopenharmony_ci     * @since 8
158361847f8eSopenharmony_ci     */
158461847f8eSopenharmony_ci    /**
158561847f8eSopenharmony_ci     * Wide gamut color space. The specific wide color gamut depends on thr screen.
158661847f8eSopenharmony_ci     *
158761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
158861847f8eSopenharmony_ci     * @crossplatform
158961847f8eSopenharmony_ci     * @since 11
159061847f8eSopenharmony_ci     */
159161847f8eSopenharmony_ci    /**
159261847f8eSopenharmony_ci     * Wide gamut color space. The specific wide color gamut depends on thr screen.
159361847f8eSopenharmony_ci     *
159461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
159561847f8eSopenharmony_ci     * @crossplatform
159661847f8eSopenharmony_ci     * @atomicservice
159761847f8eSopenharmony_ci     * @since 12
159861847f8eSopenharmony_ci     */
159961847f8eSopenharmony_ci    WIDE_GAMUT
160061847f8eSopenharmony_ci  }
160161847f8eSopenharmony_ci  /**
160261847f8eSopenharmony_ci   * Describes the scale Transition Options of window
160361847f8eSopenharmony_ci   *
160461847f8eSopenharmony_ci   * @interface ScaleOptions
160561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
160661847f8eSopenharmony_ci   * @systemapi
160761847f8eSopenharmony_ci   * @since 9
160861847f8eSopenharmony_ci   */
160961847f8eSopenharmony_ci  interface ScaleOptions {
161061847f8eSopenharmony_ci    /**
161161847f8eSopenharmony_ci     * The scale param of x direction. Default is 1.f
161261847f8eSopenharmony_ci     *
161361847f8eSopenharmony_ci     * @type { ?number }
161461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
161561847f8eSopenharmony_ci     * @systemapi
161661847f8eSopenharmony_ci     * @since 9
161761847f8eSopenharmony_ci     */
161861847f8eSopenharmony_ci    x?: number;
161961847f8eSopenharmony_ci
162061847f8eSopenharmony_ci    /**
162161847f8eSopenharmony_ci     * The scale param of y direction. Default is 1.f
162261847f8eSopenharmony_ci     *
162361847f8eSopenharmony_ci     * @type { ?number }
162461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
162561847f8eSopenharmony_ci     * @systemapi
162661847f8eSopenharmony_ci     * @since 9
162761847f8eSopenharmony_ci     */
162861847f8eSopenharmony_ci    y?: number;
162961847f8eSopenharmony_ci
163061847f8eSopenharmony_ci    /**
163161847f8eSopenharmony_ci     * The scale param of pivot point of x. Default is 0.5f, Interval is 0.f - 1.f
163261847f8eSopenharmony_ci     *
163361847f8eSopenharmony_ci     * @type { ?number }
163461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
163561847f8eSopenharmony_ci     * @systemapi
163661847f8eSopenharmony_ci     * @since 9
163761847f8eSopenharmony_ci     */
163861847f8eSopenharmony_ci    pivotX?: number;
163961847f8eSopenharmony_ci
164061847f8eSopenharmony_ci    /**
164161847f8eSopenharmony_ci     * The scale param of pivot point of y. Default is 0.5f, Interval is 0.f - 1.f
164261847f8eSopenharmony_ci     *
164361847f8eSopenharmony_ci     * @type { ?number }
164461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
164561847f8eSopenharmony_ci     * @systemapi
164661847f8eSopenharmony_ci     * @since 9
164761847f8eSopenharmony_ci     */
164861847f8eSopenharmony_ci    pivotY?: number;
164961847f8eSopenharmony_ci  }
165061847f8eSopenharmony_ci
165161847f8eSopenharmony_ci  /**
165261847f8eSopenharmony_ci   * Describes the rotate Transition Options of window
165361847f8eSopenharmony_ci   *
165461847f8eSopenharmony_ci   * @interface RotateOptions
165561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
165661847f8eSopenharmony_ci   * @systemapi
165761847f8eSopenharmony_ci   * @since 9
165861847f8eSopenharmony_ci   */
165961847f8eSopenharmony_ci  interface RotateOptions {
166061847f8eSopenharmony_ci    /**
166161847f8eSopenharmony_ci     * The rotate degree of x direction. Default value is 0.f
166261847f8eSopenharmony_ci     *
166361847f8eSopenharmony_ci     * @type { ?number }
166461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
166561847f8eSopenharmony_ci     * @systemapi
166661847f8eSopenharmony_ci     * @since 9
166761847f8eSopenharmony_ci     */
166861847f8eSopenharmony_ci    x?: number;
166961847f8eSopenharmony_ci
167061847f8eSopenharmony_ci    /**
167161847f8eSopenharmony_ci     * The rotate degree of y direction. Default value is 0.f
167261847f8eSopenharmony_ci     *
167361847f8eSopenharmony_ci     * @type { ?number }
167461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
167561847f8eSopenharmony_ci     * @systemapi
167661847f8eSopenharmony_ci     * @since 9
167761847f8eSopenharmony_ci     */
167861847f8eSopenharmony_ci    y?: number;
167961847f8eSopenharmony_ci
168061847f8eSopenharmony_ci    /**
168161847f8eSopenharmony_ci     * The rotate degree of z direction. Default value is 0.f
168261847f8eSopenharmony_ci     *
168361847f8eSopenharmony_ci     * @type { ?number }
168461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
168561847f8eSopenharmony_ci     * @systemapi
168661847f8eSopenharmony_ci     * @since 9
168761847f8eSopenharmony_ci     */
168861847f8eSopenharmony_ci    z?: number;
168961847f8eSopenharmony_ci
169061847f8eSopenharmony_ci    /**
169161847f8eSopenharmony_ci     * The param of pivot point of x. Default is 0.5f, Interval is 0.f - 1.f
169261847f8eSopenharmony_ci     *
169361847f8eSopenharmony_ci     * @type { ?number }
169461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
169561847f8eSopenharmony_ci     * @systemapi
169661847f8eSopenharmony_ci     * @since 9
169761847f8eSopenharmony_ci     */
169861847f8eSopenharmony_ci    pivotX?: number;
169961847f8eSopenharmony_ci
170061847f8eSopenharmony_ci    /**
170161847f8eSopenharmony_ci     * The param of pivot point of y. Default is 0.5f, Interval is 0.f - 1.f
170261847f8eSopenharmony_ci     *
170361847f8eSopenharmony_ci     * @type { ?number }
170461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
170561847f8eSopenharmony_ci     * @systemapi
170661847f8eSopenharmony_ci     * @since 9
170761847f8eSopenharmony_ci     */
170861847f8eSopenharmony_ci    pivotY?: number;
170961847f8eSopenharmony_ci  }
171061847f8eSopenharmony_ci
171161847f8eSopenharmony_ci  /**
171261847f8eSopenharmony_ci   * Describes the translate Transition Options of window
171361847f8eSopenharmony_ci   *
171461847f8eSopenharmony_ci   * @interface TranslateOptions
171561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
171661847f8eSopenharmony_ci   * @systemapi
171761847f8eSopenharmony_ci   * @since 9
171861847f8eSopenharmony_ci   */
171961847f8eSopenharmony_ci  interface TranslateOptions {
172061847f8eSopenharmony_ci    /**
172161847f8eSopenharmony_ci     * The translate pixel param of x direction. Default is 0.f
172261847f8eSopenharmony_ci     *
172361847f8eSopenharmony_ci     * @type { ?number }
172461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
172561847f8eSopenharmony_ci     * @systemapi
172661847f8eSopenharmony_ci     * @since 9
172761847f8eSopenharmony_ci     */
172861847f8eSopenharmony_ci    x?: number;
172961847f8eSopenharmony_ci
173061847f8eSopenharmony_ci    /**
173161847f8eSopenharmony_ci     * The translate pixel param of y direction. Default is 0.f
173261847f8eSopenharmony_ci     *
173361847f8eSopenharmony_ci     * @type { ?number }
173461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
173561847f8eSopenharmony_ci     * @systemapi
173661847f8eSopenharmony_ci     * @since 9
173761847f8eSopenharmony_ci     */
173861847f8eSopenharmony_ci    y?: number;
173961847f8eSopenharmony_ci
174061847f8eSopenharmony_ci    /**
174161847f8eSopenharmony_ci     * The translate pixel param of z direction. Default is 0.f
174261847f8eSopenharmony_ci     *
174361847f8eSopenharmony_ci     * @type { ?number }
174461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
174561847f8eSopenharmony_ci     * @systemapi
174661847f8eSopenharmony_ci     * @since 9
174761847f8eSopenharmony_ci     */
174861847f8eSopenharmony_ci    z?: number;
174961847f8eSopenharmony_ci  }
175061847f8eSopenharmony_ci
175161847f8eSopenharmony_ci  /**
175261847f8eSopenharmony_ci   * Transition Context
175361847f8eSopenharmony_ci   *
175461847f8eSopenharmony_ci   * @interface TransitionContext
175561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
175661847f8eSopenharmony_ci   * @systemapi
175761847f8eSopenharmony_ci   * @since 9
175861847f8eSopenharmony_ci   */
175961847f8eSopenharmony_ci  interface TransitionContext {
176061847f8eSopenharmony_ci    /**
176161847f8eSopenharmony_ci     * The target window with animation
176261847f8eSopenharmony_ci     *
176361847f8eSopenharmony_ci     * @type { Window }
176461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
176561847f8eSopenharmony_ci     * @systemapi
176661847f8eSopenharmony_ci     * @since 9
176761847f8eSopenharmony_ci     */
176861847f8eSopenharmony_ci    toWindow: Window;
176961847f8eSopenharmony_ci
177061847f8eSopenharmony_ci    /**
177161847f8eSopenharmony_ci     * Set complete state of animation transition
177261847f8eSopenharmony_ci     *
177361847f8eSopenharmony_ci     * @param { boolean } isCompleted - Whether the transition is complete. The value true means that the transition is complete, and false means the opposite.
177461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
177561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
177661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
177761847f8eSopenharmony_ci     * @systemapi
177861847f8eSopenharmony_ci     * @since 9
177961847f8eSopenharmony_ci     */
178061847f8eSopenharmony_ci    /**
178161847f8eSopenharmony_ci     * Set complete state of animation transition
178261847f8eSopenharmony_ci     *
178361847f8eSopenharmony_ci     * @param { boolean } isCompleted - Whether the transition is complete. The value true means that the transition is complete, and false means the opposite.
178461847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
178561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
178661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
178761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
178861847f8eSopenharmony_ci     * @systemapi
178961847f8eSopenharmony_ci     * @since 12
179061847f8eSopenharmony_ci     */
179161847f8eSopenharmony_ci    completeTransition(isCompleted: boolean): void;
179261847f8eSopenharmony_ci  }
179361847f8eSopenharmony_ci
179461847f8eSopenharmony_ci  /**
179561847f8eSopenharmony_ci   * Transition Controller
179661847f8eSopenharmony_ci   *
179761847f8eSopenharmony_ci   * @interface TransitionController
179861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
179961847f8eSopenharmony_ci   * @systemapi
180061847f8eSopenharmony_ci   * @since 9
180161847f8eSopenharmony_ci   */
180261847f8eSopenharmony_ci  interface TransitionController {
180361847f8eSopenharmony_ci    /**
180461847f8eSopenharmony_ci     * Animation configuration when showing window
180561847f8eSopenharmony_ci     *
180661847f8eSopenharmony_ci     * @param { TransitionContext } context - The transition context.
180761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
180861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
180961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
181061847f8eSopenharmony_ci     * @systemapi
181161847f8eSopenharmony_ci     * @since 9
181261847f8eSopenharmony_ci     */
181361847f8eSopenharmony_ci    /**
181461847f8eSopenharmony_ci     * Animation configuration when showing window
181561847f8eSopenharmony_ci     *
181661847f8eSopenharmony_ci     * @param { TransitionContext } context - The transition context.
181761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
181861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
181961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
182061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
182161847f8eSopenharmony_ci     * @systemapi
182261847f8eSopenharmony_ci     * @since 12
182361847f8eSopenharmony_ci     */
182461847f8eSopenharmony_ci    animationForShown(context: TransitionContext): void;
182561847f8eSopenharmony_ci    /**
182661847f8eSopenharmony_ci     * Animation configuration when hiding window
182761847f8eSopenharmony_ci     *
182861847f8eSopenharmony_ci     * @param { TransitionContext } context - The transition context.
182961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
183061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
183161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
183261847f8eSopenharmony_ci     * @systemapi
183361847f8eSopenharmony_ci     * @since 9
183461847f8eSopenharmony_ci     */
183561847f8eSopenharmony_ci    /**
183661847f8eSopenharmony_ci     * Animation configuration when hiding window
183761847f8eSopenharmony_ci     *
183861847f8eSopenharmony_ci     * @param { TransitionContext } context - The transition context.
183961847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
184061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
184161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
184261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
184361847f8eSopenharmony_ci     * @systemapi
184461847f8eSopenharmony_ci     * @since 12
184561847f8eSopenharmony_ci     */
184661847f8eSopenharmony_ci    animationForHidden(context: TransitionContext): void;
184761847f8eSopenharmony_ci  }
184861847f8eSopenharmony_ci
184961847f8eSopenharmony_ci  /**
185061847f8eSopenharmony_ci   * Configuration parameters for window creation.
185161847f8eSopenharmony_ci   *
185261847f8eSopenharmony_ci   * @interface Configuration
185361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
185461847f8eSopenharmony_ci   * @since 9
185561847f8eSopenharmony_ci   */
185661847f8eSopenharmony_ci  /**
185761847f8eSopenharmony_ci   * Configuration parameters for window creation.
185861847f8eSopenharmony_ci   *
185961847f8eSopenharmony_ci   * @interface Configuration
186061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
186161847f8eSopenharmony_ci   * @atomicservice
186261847f8eSopenharmony_ci   * @since 12
186361847f8eSopenharmony_ci   */
186461847f8eSopenharmony_ci  interface Configuration {
186561847f8eSopenharmony_ci    /**
186661847f8eSopenharmony_ci     * Indicates window id.
186761847f8eSopenharmony_ci     *
186861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
186961847f8eSopenharmony_ci     * @since 9
187061847f8eSopenharmony_ci     */
187161847f8eSopenharmony_ci    /**
187261847f8eSopenharmony_ci     * Indicates window id.
187361847f8eSopenharmony_ci     *
187461847f8eSopenharmony_ci     * @type { string }
187561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
187661847f8eSopenharmony_ci     * @atomicservice
187761847f8eSopenharmony_ci     * @since 12
187861847f8eSopenharmony_ci     */
187961847f8eSopenharmony_ci    name: string;
188061847f8eSopenharmony_ci
188161847f8eSopenharmony_ci    /**
188261847f8eSopenharmony_ci     * Indicates window type
188361847f8eSopenharmony_ci     *
188461847f8eSopenharmony_ci     * @type { WindowType }
188561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
188661847f8eSopenharmony_ci     * @since 9
188761847f8eSopenharmony_ci     */
188861847f8eSopenharmony_ci    /**
188961847f8eSopenharmony_ci     * Indicates window type
189061847f8eSopenharmony_ci     *
189161847f8eSopenharmony_ci     * @type { WindowType }
189261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
189361847f8eSopenharmony_ci     * @atomicservice
189461847f8eSopenharmony_ci     * @since 12
189561847f8eSopenharmony_ci     */
189661847f8eSopenharmony_ci    windowType: WindowType;
189761847f8eSopenharmony_ci
189861847f8eSopenharmony_ci    /**
189961847f8eSopenharmony_ci     * Indicates window context.
190061847f8eSopenharmony_ci     *
190161847f8eSopenharmony_ci     * @type { ?BaseContext }
190261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
190361847f8eSopenharmony_ci     * @since 9
190461847f8eSopenharmony_ci     */
190561847f8eSopenharmony_ci    /**
190661847f8eSopenharmony_ci     * Indicates window context.
190761847f8eSopenharmony_ci     *
190861847f8eSopenharmony_ci     * @type { ?BaseContext }
190961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
191061847f8eSopenharmony_ci     * @atomicservice
191161847f8eSopenharmony_ci     * @since 12
191261847f8eSopenharmony_ci     */
191361847f8eSopenharmony_ci    ctx?: BaseContext;
191461847f8eSopenharmony_ci
191561847f8eSopenharmony_ci    /**
191661847f8eSopenharmony_ci     * Indicates display ID.
191761847f8eSopenharmony_ci     *
191861847f8eSopenharmony_ci     * @type { ?number }
191961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
192061847f8eSopenharmony_ci     * @since 9
192161847f8eSopenharmony_ci     */
192261847f8eSopenharmony_ci    /**
192361847f8eSopenharmony_ci     * Indicates display ID.
192461847f8eSopenharmony_ci     *
192561847f8eSopenharmony_ci     * @type { ?number }
192661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
192761847f8eSopenharmony_ci     * @atomicservice
192861847f8eSopenharmony_ci     * @since 12
192961847f8eSopenharmony_ci     */
193061847f8eSopenharmony_ci    displayId?: number;
193161847f8eSopenharmony_ci
193261847f8eSopenharmony_ci    /**
193361847f8eSopenharmony_ci     * Indicates Parent window id
193461847f8eSopenharmony_ci     *
193561847f8eSopenharmony_ci     * @type { ?number }
193661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
193761847f8eSopenharmony_ci     * @since 9
193861847f8eSopenharmony_ci     */
193961847f8eSopenharmony_ci    /**
194061847f8eSopenharmony_ci     * Indicates Parent window id
194161847f8eSopenharmony_ci     *
194261847f8eSopenharmony_ci     * @type { ?number }
194361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
194461847f8eSopenharmony_ci     * @atomicservice
194561847f8eSopenharmony_ci     * @since 12
194661847f8eSopenharmony_ci     */
194761847f8eSopenharmony_ci    parentId?: number;
194861847f8eSopenharmony_ci
194961847f8eSopenharmony_ci    /**
195061847f8eSopenharmony_ci     * Indicates whether enable window decor, only support dialog, The default value is false.
195161847f8eSopenharmony_ci     *
195261847f8eSopenharmony_ci     * @type { ?boolean }
195361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
195461847f8eSopenharmony_ci     * @atomicservice
195561847f8eSopenharmony_ci     * @since 12
195661847f8eSopenharmony_ci     */
195761847f8eSopenharmony_ci    decorEnabled?: boolean;
195861847f8eSopenharmony_ci
195961847f8eSopenharmony_ci    /**
196061847f8eSopenharmony_ci     * Indicates dialog window title when decor enabled.
196161847f8eSopenharmony_ci     *
196261847f8eSopenharmony_ci     * @type { ?string }
196361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
196461847f8eSopenharmony_ci     * @atomicservice
196561847f8eSopenharmony_ci     * @since 12
196661847f8eSopenharmony_ci     */
196761847f8eSopenharmony_ci    title?: string;
196861847f8eSopenharmony_ci  }
196961847f8eSopenharmony_ci
197061847f8eSopenharmony_ci  /**
197161847f8eSopenharmony_ci   * Limits of window.
197261847f8eSopenharmony_ci   *
197361847f8eSopenharmony_ci   * @interface WindowLimits
197461847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
197561847f8eSopenharmony_ci   * @since 11
197661847f8eSopenharmony_ci   */
197761847f8eSopenharmony_ci  /**
197861847f8eSopenharmony_ci   * Limits of window.
197961847f8eSopenharmony_ci   *
198061847f8eSopenharmony_ci   * @interface WindowLimits
198161847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
198261847f8eSopenharmony_ci   * @atomicservice
198361847f8eSopenharmony_ci   * @since 12
198461847f8eSopenharmony_ci   */
198561847f8eSopenharmony_ci  interface WindowLimits {
198661847f8eSopenharmony_ci    
198761847f8eSopenharmony_ci    /**
198861847f8eSopenharmony_ci     * The maximum width of the window.
198961847f8eSopenharmony_ci     *
199061847f8eSopenharmony_ci     * @type { ?number }
199161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
199261847f8eSopenharmony_ci     * @since 11
199361847f8eSopenharmony_ci     */
199461847f8eSopenharmony_ci    /**
199561847f8eSopenharmony_ci     * The maximum width of the window.
199661847f8eSopenharmony_ci     *
199761847f8eSopenharmony_ci     * @type { ?number }
199861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
199961847f8eSopenharmony_ci     * @atomicservice
200061847f8eSopenharmony_ci     * @since 12
200161847f8eSopenharmony_ci     */
200261847f8eSopenharmony_ci    maxWidth?: number;
200361847f8eSopenharmony_ci
200461847f8eSopenharmony_ci    /**
200561847f8eSopenharmony_ci     * The maximum height of the window.
200661847f8eSopenharmony_ci     *
200761847f8eSopenharmony_ci     * @type { ?number }
200861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
200961847f8eSopenharmony_ci     * @since 11
201061847f8eSopenharmony_ci     */
201161847f8eSopenharmony_ci    /**
201261847f8eSopenharmony_ci     * The maximum height of the window.
201361847f8eSopenharmony_ci     *
201461847f8eSopenharmony_ci     * @type { ?number }
201561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
201661847f8eSopenharmony_ci     * @atomicservice
201761847f8eSopenharmony_ci     * @since 12
201861847f8eSopenharmony_ci     */
201961847f8eSopenharmony_ci    maxHeight?: number;
202061847f8eSopenharmony_ci
202161847f8eSopenharmony_ci    /**
202261847f8eSopenharmony_ci     * The minimum width of the window.
202361847f8eSopenharmony_ci     *
202461847f8eSopenharmony_ci     * @type { ?number }
202561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
202661847f8eSopenharmony_ci     * @since 11
202761847f8eSopenharmony_ci     */
202861847f8eSopenharmony_ci    /**
202961847f8eSopenharmony_ci     * The minimum width of the window.
203061847f8eSopenharmony_ci     *
203161847f8eSopenharmony_ci     * @type { ?number }
203261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
203361847f8eSopenharmony_ci     * @atomicservice
203461847f8eSopenharmony_ci     * @since 12
203561847f8eSopenharmony_ci     */
203661847f8eSopenharmony_ci    minWidth?: number;
203761847f8eSopenharmony_ci
203861847f8eSopenharmony_ci    /**
203961847f8eSopenharmony_ci     * The minimum height of the window.
204061847f8eSopenharmony_ci     *
204161847f8eSopenharmony_ci     * @type { ?number }
204261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
204361847f8eSopenharmony_ci     * @since 11
204461847f8eSopenharmony_ci     */
204561847f8eSopenharmony_ci    /**
204661847f8eSopenharmony_ci     * The minimum height of the window.
204761847f8eSopenharmony_ci     *
204861847f8eSopenharmony_ci     * @type { ?number }
204961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
205061847f8eSopenharmony_ci     * @atomicservice
205161847f8eSopenharmony_ci     * @since 12
205261847f8eSopenharmony_ci     */
205361847f8eSopenharmony_ci    minHeight?: number;
205461847f8eSopenharmony_ci  }
205561847f8eSopenharmony_ci
205661847f8eSopenharmony_ci  /**
205761847f8eSopenharmony_ci   * Rectangular area of the title buttons relative to the upper right corner of the window.
205861847f8eSopenharmony_ci   *
205961847f8eSopenharmony_ci   * @interface TitleButtonRect
206061847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
206161847f8eSopenharmony_ci   * @since 11
206261847f8eSopenharmony_ci   */
206361847f8eSopenharmony_ci  /**
206461847f8eSopenharmony_ci   * Rectangular area of the title buttons relative to the upper right corner of the window.
206561847f8eSopenharmony_ci   *
206661847f8eSopenharmony_ci   * @interface TitleButtonRect
206761847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
206861847f8eSopenharmony_ci   * @atomicservice
206961847f8eSopenharmony_ci   * @since 12
207061847f8eSopenharmony_ci   */
207161847f8eSopenharmony_ci  interface TitleButtonRect {
207261847f8eSopenharmony_ci
207361847f8eSopenharmony_ci    /**
207461847f8eSopenharmony_ci     * The right of the Rect.
207561847f8eSopenharmony_ci     *
207661847f8eSopenharmony_ci     * @type { number }
207761847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
207861847f8eSopenharmony_ci     * @since 11
207961847f8eSopenharmony_ci     */
208061847f8eSopenharmony_ci    /**
208161847f8eSopenharmony_ci     * The right of the Rect.
208261847f8eSopenharmony_ci     *
208361847f8eSopenharmony_ci     * @type { number }
208461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
208561847f8eSopenharmony_ci     * @atomicservice
208661847f8eSopenharmony_ci     * @since 12
208761847f8eSopenharmony_ci     */
208861847f8eSopenharmony_ci    right: number;
208961847f8eSopenharmony_ci
209061847f8eSopenharmony_ci    /**
209161847f8eSopenharmony_ci     * The top of the Rect.
209261847f8eSopenharmony_ci     *
209361847f8eSopenharmony_ci     * @type { number }
209461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
209561847f8eSopenharmony_ci     * @since 11
209661847f8eSopenharmony_ci     */
209761847f8eSopenharmony_ci    /**
209861847f8eSopenharmony_ci     * The top of the Rect.
209961847f8eSopenharmony_ci     *
210061847f8eSopenharmony_ci     * @type { number }
210161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
210261847f8eSopenharmony_ci     * @atomicservice
210361847f8eSopenharmony_ci     * @since 12
210461847f8eSopenharmony_ci     */
210561847f8eSopenharmony_ci    top: number;
210661847f8eSopenharmony_ci
210761847f8eSopenharmony_ci    /**
210861847f8eSopenharmony_ci     * The width of the Rect.
210961847f8eSopenharmony_ci     *
211061847f8eSopenharmony_ci     * @type { number }
211161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
211261847f8eSopenharmony_ci     * @since 11
211361847f8eSopenharmony_ci     */
211461847f8eSopenharmony_ci    /**
211561847f8eSopenharmony_ci     * The width of the Rect.
211661847f8eSopenharmony_ci     *
211761847f8eSopenharmony_ci     * @type { number }
211861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
211961847f8eSopenharmony_ci     * @atomicservice
212061847f8eSopenharmony_ci     * @since 12
212161847f8eSopenharmony_ci     */
212261847f8eSopenharmony_ci    width: number;
212361847f8eSopenharmony_ci
212461847f8eSopenharmony_ci    /**
212561847f8eSopenharmony_ci     * The height of the Rect.
212661847f8eSopenharmony_ci     *
212761847f8eSopenharmony_ci     * @type { number }
212861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
212961847f8eSopenharmony_ci     * @since 11
213061847f8eSopenharmony_ci     */
213161847f8eSopenharmony_ci    /**
213261847f8eSopenharmony_ci     * The height of the Rect.
213361847f8eSopenharmony_ci     *
213461847f8eSopenharmony_ci     * @type { number }
213561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
213661847f8eSopenharmony_ci     * @atomicservice
213761847f8eSopenharmony_ci     * @since 12
213861847f8eSopenharmony_ci     */
213961847f8eSopenharmony_ci    height: number;
214061847f8eSopenharmony_ci  }
214161847f8eSopenharmony_ci
214261847f8eSopenharmony_ci  /**
214361847f8eSopenharmony_ci   * Rect change options
214461847f8eSopenharmony_ci   *
214561847f8eSopenharmony_ci   * @interface RectChangeOptions
214661847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
214761847f8eSopenharmony_ci   * @atomicservice
214861847f8eSopenharmony_ci   * @since 12
214961847f8eSopenharmony_ci   */
215061847f8eSopenharmony_ci  interface RectChangeOptions {
215161847f8eSopenharmony_ci    /**
215261847f8eSopenharmony_ci     * Rect
215361847f8eSopenharmony_ci     *
215461847f8eSopenharmony_ci     * @type { Rect }
215561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
215661847f8eSopenharmony_ci     * @atomicservice
215761847f8eSopenharmony_ci     * @since 12
215861847f8eSopenharmony_ci     */
215961847f8eSopenharmony_ci    rect: Rect,
216061847f8eSopenharmony_ci
216161847f8eSopenharmony_ci    /**
216261847f8eSopenharmony_ci     * Rect change reason
216361847f8eSopenharmony_ci     *
216461847f8eSopenharmony_ci     * @type { RectChangeReason }
216561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
216661847f8eSopenharmony_ci     * @atomicservice
216761847f8eSopenharmony_ci     * @since 12
216861847f8eSopenharmony_ci     */
216961847f8eSopenharmony_ci    reason: RectChangeReason
217061847f8eSopenharmony_ci  }
217161847f8eSopenharmony_ci
217261847f8eSopenharmony_ci  /**
217361847f8eSopenharmony_ci   * Avoid area options
217461847f8eSopenharmony_ci   *
217561847f8eSopenharmony_ci   * @interface AvoidAreaOptions
217661847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
217761847f8eSopenharmony_ci   * @atomicservice
217861847f8eSopenharmony_ci   * @since 12
217961847f8eSopenharmony_ci   */
218061847f8eSopenharmony_ci  interface AvoidAreaOptions {
218161847f8eSopenharmony_ci    /**
218261847f8eSopenharmony_ci     * Avoid area type
218361847f8eSopenharmony_ci     *
218461847f8eSopenharmony_ci     * @type { AvoidAreaType }
218561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
218661847f8eSopenharmony_ci     * @atomicservice
218761847f8eSopenharmony_ci     * @since 12
218861847f8eSopenharmony_ci     */
218961847f8eSopenharmony_ci    type: AvoidAreaType,
219061847f8eSopenharmony_ci
219161847f8eSopenharmony_ci    /**
219261847f8eSopenharmony_ci     * Avoid area
219361847f8eSopenharmony_ci     *
219461847f8eSopenharmony_ci     * @type { AvoidArea }
219561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
219661847f8eSopenharmony_ci     * @atomicservice
219761847f8eSopenharmony_ci     * @since 12
219861847f8eSopenharmony_ci     */
219961847f8eSopenharmony_ci    area: AvoidArea
220061847f8eSopenharmony_ci  }
220161847f8eSopenharmony_ci
220261847f8eSopenharmony_ci  /**
220361847f8eSopenharmony_ci   * Window rect change reason.
220461847f8eSopenharmony_ci   *
220561847f8eSopenharmony_ci   * @enum { number }
220661847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
220761847f8eSopenharmony_ci   * @atomicservice
220861847f8eSopenharmony_ci   * @since 12
220961847f8eSopenharmony_ci   */
221061847f8eSopenharmony_ci  enum RectChangeReason {
221161847f8eSopenharmony_ci    /**
221261847f8eSopenharmony_ci     * Default RectChangeReason.
221361847f8eSopenharmony_ci     *
221461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
221561847f8eSopenharmony_ci     * @atomicservice
221661847f8eSopenharmony_ci     * @since 12
221761847f8eSopenharmony_ci     */
221861847f8eSopenharmony_ci    UNDEFINED = 0,
221961847f8eSopenharmony_ci
222061847f8eSopenharmony_ci    /**
222161847f8eSopenharmony_ci     * Window maximize.
222261847f8eSopenharmony_ci     *
222361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
222461847f8eSopenharmony_ci     * @atomicservice
222561847f8eSopenharmony_ci     * @since 12
222661847f8eSopenharmony_ci     */
222761847f8eSopenharmony_ci    MAXIMIZE,
222861847f8eSopenharmony_ci
222961847f8eSopenharmony_ci    /**
223061847f8eSopenharmony_ci     * Window recover.
223161847f8eSopenharmony_ci     *
223261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
223361847f8eSopenharmony_ci     * @atomicservice
223461847f8eSopenharmony_ci     * @since 12
223561847f8eSopenharmony_ci     */
223661847f8eSopenharmony_ci    RECOVER,
223761847f8eSopenharmony_ci
223861847f8eSopenharmony_ci    /**
223961847f8eSopenharmony_ci     * Window move.
224061847f8eSopenharmony_ci     *
224161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
224261847f8eSopenharmony_ci     * @atomicservice
224361847f8eSopenharmony_ci     * @since 12
224461847f8eSopenharmony_ci     */
224561847f8eSopenharmony_ci    MOVE,
224661847f8eSopenharmony_ci
224761847f8eSopenharmony_ci    /**
224861847f8eSopenharmony_ci     * Window drag.
224961847f8eSopenharmony_ci     *
225061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
225161847f8eSopenharmony_ci     * @atomicservice
225261847f8eSopenharmony_ci     * @since 12
225361847f8eSopenharmony_ci     */
225461847f8eSopenharmony_ci    DRAG,
225561847f8eSopenharmony_ci
225661847f8eSopenharmony_ci    /**
225761847f8eSopenharmony_ci     * Window drag start.
225861847f8eSopenharmony_ci     *
225961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
226061847f8eSopenharmony_ci     * @atomicservice
226161847f8eSopenharmony_ci     * @since 12
226261847f8eSopenharmony_ci     */
226361847f8eSopenharmony_ci    DRAG_START,
226461847f8eSopenharmony_ci
226561847f8eSopenharmony_ci    /**
226661847f8eSopenharmony_ci     * Window drag end.
226761847f8eSopenharmony_ci     *
226861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
226961847f8eSopenharmony_ci     * @atomicservice
227061847f8eSopenharmony_ci     * @since 12
227161847f8eSopenharmony_ci     */
227261847f8eSopenharmony_ci    DRAG_END,
227361847f8eSopenharmony_ci  }
227461847f8eSopenharmony_ci
227561847f8eSopenharmony_ci  /**
227661847f8eSopenharmony_ci   * Create a window with a specific configuration
227761847f8eSopenharmony_ci   *
227861847f8eSopenharmony_ci   * @param { Configuration } config - Parameters for window creation.
227961847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the window created.
228061847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
228161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
228261847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
228361847f8eSopenharmony_ci   * @throws { BusinessError } 1300001 - Repeated operation.
228461847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
228561847f8eSopenharmony_ci   * @throws { BusinessError } 1300008 - The display device is abnormal.
228661847f8eSopenharmony_ci   * @throws { BusinessError } 1300009 - The parent window is invalid.
228761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
228861847f8eSopenharmony_ci   * @since 9
228961847f8eSopenharmony_ci   */
229061847f8eSopenharmony_ci  /**
229161847f8eSopenharmony_ci   * Create a window with a specific configuration
229261847f8eSopenharmony_ci   * When config.windowType == TYPE_FLOAT, the "ohos.permission.SYSTEM_FLOAT_WINDOW" permission is required
229361847f8eSopenharmony_ci   *
229461847f8eSopenharmony_ci   * @permission ohos.permission.SYSTEM_FLOAT_WINDOW
229561847f8eSopenharmony_ci   * @param { Configuration } config - Parameters for window creation.
229661847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the window created.
229761847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
229861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
229961847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
230061847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
230161847f8eSopenharmony_ci   * @throws { BusinessError } 1300001 - Repeated operation.
230261847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
230361847f8eSopenharmony_ci   * @throws { BusinessError } 1300004 - Unauthorized operation.
230461847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
230561847f8eSopenharmony_ci   * @throws { BusinessError } 1300008 - The display device is abnormal.
230661847f8eSopenharmony_ci   * @throws { BusinessError } 1300009 - The parent window is invalid.
230761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
230861847f8eSopenharmony_ci   * @atomicservice
230961847f8eSopenharmony_ci   * @since 12
231061847f8eSopenharmony_ci   */
231161847f8eSopenharmony_ci  function createWindow(config: Configuration, callback: AsyncCallback<Window>): void;
231261847f8eSopenharmony_ci
231361847f8eSopenharmony_ci  /**
231461847f8eSopenharmony_ci   * Create a window with a specific configuration
231561847f8eSopenharmony_ci   *
231661847f8eSopenharmony_ci   * @param { Configuration } config - Parameters for window creation.
231761847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the window created.
231861847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
231961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
232061847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
232161847f8eSopenharmony_ci   * @throws { BusinessError } 1300001 - Repeated operation.
232261847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
232361847f8eSopenharmony_ci   * @throws { BusinessError } 1300008 - The display device is abnormal.
232461847f8eSopenharmony_ci   * @throws { BusinessError } 1300009 - The parent window is invalid.
232561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
232661847f8eSopenharmony_ci   * @since 9
232761847f8eSopenharmony_ci   */
232861847f8eSopenharmony_ci  /**
232961847f8eSopenharmony_ci   * Create a window with a specific configuration
233061847f8eSopenharmony_ci   * When config.windowType == TYPE_FLOAT, the "ohos.permission.SYSTEM_FLOAT_WINDOW" permission is required
233161847f8eSopenharmony_ci   *
233261847f8eSopenharmony_ci   * @permission ohos.permission.SYSTEM_FLOAT_WINDOW
233361847f8eSopenharmony_ci   * @param { Configuration } config - Parameters for window creation.
233461847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the window created.
233561847f8eSopenharmony_ci   * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
233661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
233761847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
233861847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
233961847f8eSopenharmony_ci   * @throws { BusinessError } 1300001 - Repeated operation.
234061847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
234161847f8eSopenharmony_ci   * @throws { BusinessError } 1300004 - Unauthorized operation.
234261847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
234361847f8eSopenharmony_ci   * @throws { BusinessError } 1300008 - The display device is abnormal.
234461847f8eSopenharmony_ci   * @throws { BusinessError } 1300009 - The parent window is invalid.
234561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
234661847f8eSopenharmony_ci   * @atomicservice
234761847f8eSopenharmony_ci   * @since 12
234861847f8eSopenharmony_ci   */
234961847f8eSopenharmony_ci  function createWindow(config: Configuration): Promise<Window>;
235061847f8eSopenharmony_ci
235161847f8eSopenharmony_ci  /**
235261847f8eSopenharmony_ci   * Create a sub window with a specific id and type, only support 7.
235361847f8eSopenharmony_ci   *
235461847f8eSopenharmony_ci   * @param { string } id - Indicates window id.
235561847f8eSopenharmony_ci   * @param { WindowType } type - Indicates window type.
235661847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the subwindow created.
235761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
235861847f8eSopenharmony_ci   * @FAModelOnly
235961847f8eSopenharmony_ci   * @since 7
236061847f8eSopenharmony_ci   * @deprecated since 9
236161847f8eSopenharmony_ci   * @useinstead ohos.window#createWindow
236261847f8eSopenharmony_ci   */
236361847f8eSopenharmony_ci  function create(id: string, type: WindowType, callback: AsyncCallback<Window>): void;
236461847f8eSopenharmony_ci
236561847f8eSopenharmony_ci  /**
236661847f8eSopenharmony_ci   * Create a sub window with a specific id and type, only support 7.
236761847f8eSopenharmony_ci   *
236861847f8eSopenharmony_ci   * @param { string } id - Indicates window id.
236961847f8eSopenharmony_ci   * @param { WindowType } type - Indicates window type.
237061847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the subwindow created.
237161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
237261847f8eSopenharmony_ci   * @FAModelOnly
237361847f8eSopenharmony_ci   * @since 7
237461847f8eSopenharmony_ci   * @deprecated since 9
237561847f8eSopenharmony_ci   * @useinstead ohos.window#createWindow
237661847f8eSopenharmony_ci   */
237761847f8eSopenharmony_ci  function create(id: string, type: WindowType): Promise<Window>;
237861847f8eSopenharmony_ci
237961847f8eSopenharmony_ci  /**
238061847f8eSopenharmony_ci   * Create a system or float window with a specific id and type.
238161847f8eSopenharmony_ci   *
238261847f8eSopenharmony_ci   * @param { BaseContext } ctx - Indicates the context on which the window depends
238361847f8eSopenharmony_ci   * @param { string } id - Indicates window id.
238461847f8eSopenharmony_ci   * @param { WindowType } type - Indicates window type.
238561847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the window created.
238661847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
238761847f8eSopenharmony_ci   * @since 8
238861847f8eSopenharmony_ci   * @deprecated since 9
238961847f8eSopenharmony_ci   * @useinstead ohos.window#createWindow
239061847f8eSopenharmony_ci   */
239161847f8eSopenharmony_ci  function create(ctx: BaseContext, id: string, type: WindowType): Promise<Window>;
239261847f8eSopenharmony_ci
239361847f8eSopenharmony_ci  /**
239461847f8eSopenharmony_ci   * Create a system or float window with a specific id and type.
239561847f8eSopenharmony_ci   *
239661847f8eSopenharmony_ci   * @param { BaseContext } ctx - Indicates the context on which the window depends
239761847f8eSopenharmony_ci   * @param { string } id - Indicates window id.
239861847f8eSopenharmony_ci   * @param { WindowType } type - Indicates window type.
239961847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the window created.
240061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
240161847f8eSopenharmony_ci   * @since 8
240261847f8eSopenharmony_ci   * @deprecated since 9
240361847f8eSopenharmony_ci   * @useinstead ohos.window#createWindow
240461847f8eSopenharmony_ci   */
240561847f8eSopenharmony_ci  function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback<Window>): void;
240661847f8eSopenharmony_ci
240761847f8eSopenharmony_ci  /**
240861847f8eSopenharmony_ci   * Find the window by id.
240961847f8eSopenharmony_ci   *
241061847f8eSopenharmony_ci   * @param { string } id - Indicates window id.
241161847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the window found.
241261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
241361847f8eSopenharmony_ci   * @since 7
241461847f8eSopenharmony_ci   * @deprecated since 9
241561847f8eSopenharmony_ci   * @useinstead ohos.window#findWindow
241661847f8eSopenharmony_ci   */
241761847f8eSopenharmony_ci  function find(id: string, callback: AsyncCallback<Window>): void;
241861847f8eSopenharmony_ci
241961847f8eSopenharmony_ci  /**
242061847f8eSopenharmony_ci   * Find the window by id.
242161847f8eSopenharmony_ci   *
242261847f8eSopenharmony_ci   * @param { string } id - Indicates window id.
242361847f8eSopenharmony_ci   * @returns { Promise<Window> } Window found.
242461847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
242561847f8eSopenharmony_ci   * @since 7
242661847f8eSopenharmony_ci   * @deprecated since 9
242761847f8eSopenharmony_ci   * @useinstead ohos.window#findWindow
242861847f8eSopenharmony_ci   */
242961847f8eSopenharmony_ci  function find(id: string): Promise<Window>;
243061847f8eSopenharmony_ci
243161847f8eSopenharmony_ci  /**
243261847f8eSopenharmony_ci   * Find the window by name.
243361847f8eSopenharmony_ci   *
243461847f8eSopenharmony_ci   * @param { string } name - Indicates window name.
243561847f8eSopenharmony_ci   * @returns { Window } Window found.
243661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
243761847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
243861847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
243961847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
244061847f8eSopenharmony_ci   * @since 9
244161847f8eSopenharmony_ci   */
244261847f8eSopenharmony_ci  /**
244361847f8eSopenharmony_ci   * Find the window by name.
244461847f8eSopenharmony_ci   *
244561847f8eSopenharmony_ci   * @param { string } name - Indicates window name.
244661847f8eSopenharmony_ci   * @returns { Window } Window found.
244761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
244861847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
244961847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
245061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
245161847f8eSopenharmony_ci   * @crossplatform
245261847f8eSopenharmony_ci   * @since 10
245361847f8eSopenharmony_ci   */
245461847f8eSopenharmony_ci  /**
245561847f8eSopenharmony_ci   * Find the window by name.
245661847f8eSopenharmony_ci   *
245761847f8eSopenharmony_ci   * @param { string } name - Indicates window name.
245861847f8eSopenharmony_ci   * @returns { Window } Window found.
245961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
246061847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
246161847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
246261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
246361847f8eSopenharmony_ci   * @crossplatform
246461847f8eSopenharmony_ci   * @atomicservice
246561847f8eSopenharmony_ci   * @since 11
246661847f8eSopenharmony_ci   */
246761847f8eSopenharmony_ci  function findWindow(name: string): Window;
246861847f8eSopenharmony_ci
246961847f8eSopenharmony_ci  /**
247061847f8eSopenharmony_ci   * Get the final show window.
247161847f8eSopenharmony_ci   *
247261847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.
247361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
247461847f8eSopenharmony_ci   * @FAModelOnly
247561847f8eSopenharmony_ci   * @since 6
247661847f8eSopenharmony_ci   * @deprecated since 9
247761847f8eSopenharmony_ci   * @useinstead ohos.window#getLastWindow
247861847f8eSopenharmony_ci   */
247961847f8eSopenharmony_ci  function getTopWindow(callback: AsyncCallback<Window>): void;
248061847f8eSopenharmony_ci
248161847f8eSopenharmony_ci  /**
248261847f8eSopenharmony_ci   * Get the final show window.
248361847f8eSopenharmony_ci   *
248461847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the top window obtained.
248561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
248661847f8eSopenharmony_ci   * @FAModelOnly
248761847f8eSopenharmony_ci   * @since 6
248861847f8eSopenharmony_ci   * @deprecated since 9
248961847f8eSopenharmony_ci   * @useinstead ohos.window#getLastWindow
249061847f8eSopenharmony_ci   */
249161847f8eSopenharmony_ci  function getTopWindow(): Promise<Window>;
249261847f8eSopenharmony_ci
249361847f8eSopenharmony_ci  /**
249461847f8eSopenharmony_ci   * Get the final show window.
249561847f8eSopenharmony_ci   *
249661847f8eSopenharmony_ci   * @param { BaseContext } ctx - Indicates the context on which the window depends
249761847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the top window obtained.
249861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
249961847f8eSopenharmony_ci   * @since 8
250061847f8eSopenharmony_ci   * @deprecated since 9
250161847f8eSopenharmony_ci   * @useinstead ohos.window#getLastWindow
250261847f8eSopenharmony_ci   */
250361847f8eSopenharmony_ci  function getTopWindow(ctx: BaseContext): Promise<Window>;
250461847f8eSopenharmony_ci
250561847f8eSopenharmony_ci  /**
250661847f8eSopenharmony_ci   * Get the final show window.
250761847f8eSopenharmony_ci   *
250861847f8eSopenharmony_ci   * @param { BaseContext } ctx - Indicates the context on which the window depends
250961847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.
251061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
251161847f8eSopenharmony_ci   * @since 8
251261847f8eSopenharmony_ci   * @deprecated since 9
251361847f8eSopenharmony_ci   * @useinstead ohos.window#getLastWindow
251461847f8eSopenharmony_ci   */
251561847f8eSopenharmony_ci  function getTopWindow(ctx: BaseContext, callback: AsyncCallback<Window>): void;
251661847f8eSopenharmony_ci
251761847f8eSopenharmony_ci  /**
251861847f8eSopenharmony_ci   * Get the final show window.
251961847f8eSopenharmony_ci   *
252061847f8eSopenharmony_ci   * @param { BaseContext } ctx - Current application context.
252161847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.
252261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
252361847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
252461847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
252561847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
252661847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
252761847f8eSopenharmony_ci   * @since 9
252861847f8eSopenharmony_ci   */
252961847f8eSopenharmony_ci  /**
253061847f8eSopenharmony_ci   * Get the final show window.
253161847f8eSopenharmony_ci   *
253261847f8eSopenharmony_ci   * @param { BaseContext } ctx - Current application context.
253361847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.
253461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
253561847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
253661847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
253761847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
253861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
253961847f8eSopenharmony_ci   * @crossplatform
254061847f8eSopenharmony_ci   * @since 10
254161847f8eSopenharmony_ci   */
254261847f8eSopenharmony_ci  /**
254361847f8eSopenharmony_ci   * Get the final show window.
254461847f8eSopenharmony_ci   *
254561847f8eSopenharmony_ci   * @param { BaseContext } ctx - Current application context.
254661847f8eSopenharmony_ci   * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.
254761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
254861847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
254961847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
255061847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
255161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
255261847f8eSopenharmony_ci   * @crossplatform
255361847f8eSopenharmony_ci   * @atomicservice
255461847f8eSopenharmony_ci   * @since 12
255561847f8eSopenharmony_ci   */
255661847f8eSopenharmony_ci  function getLastWindow(ctx: BaseContext, callback: AsyncCallback<Window>): void;
255761847f8eSopenharmony_ci
255861847f8eSopenharmony_ci  /**
255961847f8eSopenharmony_ci   * Get the final show window.
256061847f8eSopenharmony_ci   *
256161847f8eSopenharmony_ci   * @param { BaseContext } ctx - Current application context.
256261847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the top window obtained.
256361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
256461847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
256561847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
256661847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
256761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
256861847f8eSopenharmony_ci   * @since 9
256961847f8eSopenharmony_ci   */
257061847f8eSopenharmony_ci  /**
257161847f8eSopenharmony_ci   * Get the final show window.
257261847f8eSopenharmony_ci   *
257361847f8eSopenharmony_ci   * @param { BaseContext } ctx - Current application context.
257461847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the top window obtained.
257561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
257661847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
257761847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
257861847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
257961847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
258061847f8eSopenharmony_ci   * @crossplatform
258161847f8eSopenharmony_ci   * @since 10
258261847f8eSopenharmony_ci   */
258361847f8eSopenharmony_ci  /**
258461847f8eSopenharmony_ci   * Get the final show window.
258561847f8eSopenharmony_ci   *
258661847f8eSopenharmony_ci   * @param { BaseContext } ctx - Current application context.
258761847f8eSopenharmony_ci   * @returns { Promise<Window> } Promise used to return the top window obtained.
258861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
258961847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
259061847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
259161847f8eSopenharmony_ci   * @throws { BusinessError } 1300006 - This window context is abnormal.
259261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
259361847f8eSopenharmony_ci   * @crossplatform
259461847f8eSopenharmony_ci   * @atomicservice
259561847f8eSopenharmony_ci   * @since 12
259661847f8eSopenharmony_ci   */
259761847f8eSopenharmony_ci  function getLastWindow(ctx: BaseContext): Promise<Window>;
259861847f8eSopenharmony_ci
259961847f8eSopenharmony_ci  /**
260061847f8eSopenharmony_ci   * Minimize all app windows.
260161847f8eSopenharmony_ci   *
260261847f8eSopenharmony_ci   * @param { number } id - ID of the display.
260361847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - Callback used to return the result.
260461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
260561847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types;
260661847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
260761847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
260861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
260961847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
261061847f8eSopenharmony_ci   * @since 9
261161847f8eSopenharmony_ci   */
261261847f8eSopenharmony_ci  /**
261361847f8eSopenharmony_ci   * Minimize all app windows.
261461847f8eSopenharmony_ci   *
261561847f8eSopenharmony_ci   * @param { number } id - ID of the display.
261661847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - Callback used to return the result.
261761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
261861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
261961847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types;
262061847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
262161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
262261847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
262361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
262461847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
262561847f8eSopenharmony_ci   * @since 12
262661847f8eSopenharmony_ci   */
262761847f8eSopenharmony_ci  function minimizeAll(id: number, callback: AsyncCallback<void>): void;
262861847f8eSopenharmony_ci
262961847f8eSopenharmony_ci  /**
263061847f8eSopenharmony_ci   * Minimize all app windows.
263161847f8eSopenharmony_ci   *
263261847f8eSopenharmony_ci   * @param { number } id - ID of the display.
263361847f8eSopenharmony_ci   * @returns { Promise<void> } Promise that returns no value.
263461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
263561847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types;
263661847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
263761847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
263861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
263961847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
264061847f8eSopenharmony_ci   * @since 9
264161847f8eSopenharmony_ci   */
264261847f8eSopenharmony_ci  /**
264361847f8eSopenharmony_ci   * Minimize all app windows.
264461847f8eSopenharmony_ci   *
264561847f8eSopenharmony_ci   * @param { number } id - ID of the display.
264661847f8eSopenharmony_ci   * @returns { Promise<void> } Promise that returns no value.
264761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
264861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
264961847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types;
265061847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
265161847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
265261847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
265361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
265461847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
265561847f8eSopenharmony_ci   * @since 12
265661847f8eSopenharmony_ci   */
265761847f8eSopenharmony_ci  function minimizeAll(id: number): Promise<void>;
265861847f8eSopenharmony_ci
265961847f8eSopenharmony_ci  /**
266061847f8eSopenharmony_ci   * Toggle shown state for all app windows. Minimize or restore all app windows.
266161847f8eSopenharmony_ci   *
266261847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - Callback used to return the result.
266361847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
266461847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
266561847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
266661847f8eSopenharmony_ci   * @since 9
266761847f8eSopenharmony_ci   */
266861847f8eSopenharmony_ci  /**
266961847f8eSopenharmony_ci   * Toggle shown state for all app windows. Minimize or restore all app windows.
267061847f8eSopenharmony_ci   *
267161847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - Callback used to return the result.
267261847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
267361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
267461847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
267561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
267661847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
267761847f8eSopenharmony_ci   * @since 12
267861847f8eSopenharmony_ci   */
267961847f8eSopenharmony_ci  function toggleShownStateForAllAppWindows(callback: AsyncCallback<void>): void;
268061847f8eSopenharmony_ci
268161847f8eSopenharmony_ci  /**
268261847f8eSopenharmony_ci   * Toggle shown state for all app windows. Minimize or restore all app windows.
268361847f8eSopenharmony_ci   *
268461847f8eSopenharmony_ci   * @returns { Promise<void> } Promise that returns no value.
268561847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
268661847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
268761847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
268861847f8eSopenharmony_ci   * @since 9
268961847f8eSopenharmony_ci   */
269061847f8eSopenharmony_ci  /**
269161847f8eSopenharmony_ci   * Toggle shown state for all app windows. Minimize or restore all app windows.
269261847f8eSopenharmony_ci   *
269361847f8eSopenharmony_ci   * @returns { Promise<void> } Promise that returns no value.
269461847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
269561847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
269661847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
269761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
269861847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
269961847f8eSopenharmony_ci   * @since 12
270061847f8eSopenharmony_ci   */
270161847f8eSopenharmony_ci  function toggleShownStateForAllAppWindows(): Promise<void>;
270261847f8eSopenharmony_ci
270361847f8eSopenharmony_ci  /**
270461847f8eSopenharmony_ci   * Set the layout mode of a window.
270561847f8eSopenharmony_ci   *
270661847f8eSopenharmony_ci   * @param { WindowLayoutMode } mode - The layout mode of a window.
270761847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - Callback used to return the result.
270861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
270961847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types; 
271061847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
271161847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
271261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
271361847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
271461847f8eSopenharmony_ci   * @since 9
271561847f8eSopenharmony_ci   */
271661847f8eSopenharmony_ci  /**
271761847f8eSopenharmony_ci   * Set the layout mode of a window.
271861847f8eSopenharmony_ci   *
271961847f8eSopenharmony_ci   * @param { WindowLayoutMode } mode - The layout mode of a window.
272061847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - Callback used to return the result.
272161847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
272261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
272361847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types; 
272461847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
272561847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
272661847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
272761847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
272861847f8eSopenharmony_ci   * @since 12
272961847f8eSopenharmony_ci   */
273061847f8eSopenharmony_ci  function setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback<void>): void;
273161847f8eSopenharmony_ci
273261847f8eSopenharmony_ci  /**
273361847f8eSopenharmony_ci   * Set the layout mode of a window.
273461847f8eSopenharmony_ci   *
273561847f8eSopenharmony_ci   * @param { WindowLayoutMode } mode - The layout mode of a window.
273661847f8eSopenharmony_ci   * @returns { Promise<void> } Promise that returns no value.
273761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
273861847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types; 
273961847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
274061847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
274161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
274261847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
274361847f8eSopenharmony_ci   * @since 9
274461847f8eSopenharmony_ci   */
274561847f8eSopenharmony_ci  /**
274661847f8eSopenharmony_ci   * Set the layout mode of a window.
274761847f8eSopenharmony_ci   *
274861847f8eSopenharmony_ci   * @param { WindowLayoutMode } mode - The layout mode of a window.
274961847f8eSopenharmony_ci   * @returns { Promise<void> } Promise that returns no value.
275061847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
275161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
275261847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types; 
275361847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
275461847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
275561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
275661847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
275761847f8eSopenharmony_ci   * @since 12
275861847f8eSopenharmony_ci   */
275961847f8eSopenharmony_ci  function setWindowLayoutMode(mode: WindowLayoutMode): Promise<void>;
276061847f8eSopenharmony_ci
276161847f8eSopenharmony_ci  /**
276261847f8eSopenharmony_ci   * Sets whether to enable gesture navigation.
276361847f8eSopenharmony_ci   *
276461847f8eSopenharmony_ci   * @param { boolean } enable - Gesture navigation if true, or disable if false.
276561847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - The callback of setGestureNavigationEnabled.
276661847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
276761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
276861847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
276961847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
277061847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
277161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
277261847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
277361847f8eSopenharmony_ci   * @since 10
277461847f8eSopenharmony_ci   */
277561847f8eSopenharmony_ci  function setGestureNavigationEnabled(enable: boolean, callback: AsyncCallback<void>): void;
277661847f8eSopenharmony_ci
277761847f8eSopenharmony_ci  /**
277861847f8eSopenharmony_ci   * Sets whether to enable gesture navigation.
277961847f8eSopenharmony_ci   *
278061847f8eSopenharmony_ci   * @param { boolean } enable - Gesture navigation if true, or disable if false.
278161847f8eSopenharmony_ci   * @returns { Promise<void> } - The promise returned by the function.
278261847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
278361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
278461847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
278561847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
278661847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
278761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
278861847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
278961847f8eSopenharmony_ci   * @since 10
279061847f8eSopenharmony_ci   */
279161847f8eSopenharmony_ci  function setGestureNavigationEnabled(enable: boolean): Promise<void>;
279261847f8eSopenharmony_ci
279361847f8eSopenharmony_ci  /**
279461847f8eSopenharmony_ci   * Set watermark image.
279561847f8eSopenharmony_ci   *
279661847f8eSopenharmony_ci   * @param { image.PixelMap } pixelMap - Watermark image.
279761847f8eSopenharmony_ci   * @param { boolean } enable - Show watermark if true.
279861847f8eSopenharmony_ci   * @returns { Promise<void> } - Promise that returns no value.
279961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
280061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
280161847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
280261847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
280361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
280461847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
280561847f8eSopenharmony_ci   * @since 10
280661847f8eSopenharmony_ci   */
280761847f8eSopenharmony_ci  function setWaterMarkImage(pixelMap: image.PixelMap, enable: boolean): Promise<void>;
280861847f8eSopenharmony_ci
280961847f8eSopenharmony_ci  /**
281061847f8eSopenharmony_ci   * Set watermark image.
281161847f8eSopenharmony_ci   *
281261847f8eSopenharmony_ci   * @param { image.PixelMap } pixelMap - Watermark image.
281361847f8eSopenharmony_ci   * @param { boolean } enable - Show watermark if true.
281461847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback - The callback of setWaterMarkImage.
281561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
281661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
281761847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
281861847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
281961847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
282061847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
282161847f8eSopenharmony_ci   * @since 10
282261847f8eSopenharmony_ci   */
282361847f8eSopenharmony_ci  function setWaterMarkImage(pixelMap: image.PixelMap, enable: boolean, callback: AsyncCallback<void>): void;
282461847f8eSopenharmony_ci
282561847f8eSopenharmony_ci  /**
282661847f8eSopenharmony_ci   * Shift window focus within the same application. And the window type contains only main window and subwindow.
282761847f8eSopenharmony_ci   *
282861847f8eSopenharmony_ci   * @param { number } sourceWindowId - Window id which the focus shift from.
282961847f8eSopenharmony_ci   * @param { number } targetWindowId - Window id which the focus shift to.
283061847f8eSopenharmony_ci   * @returns { Promise<void> } - Promise that returns no value.
283161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
283261847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
283361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
283461847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
283561847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
283661847f8eSopenharmony_ci   * @throws { BusinessError } 1300004 - Unauthorized operation.
283761847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
283861847f8eSopenharmony_ci   * @since 11
283961847f8eSopenharmony_ci   */
284061847f8eSopenharmony_ci  /**
284161847f8eSopenharmony_ci   * Shift window focus within the same application. And the window type contains only main window and subwindow.
284261847f8eSopenharmony_ci   *
284361847f8eSopenharmony_ci   * @param { number } sourceWindowId - Window id which the focus shift from.
284461847f8eSopenharmony_ci   * @param { number } targetWindowId - Window id which the focus shift to.
284561847f8eSopenharmony_ci   * @returns { Promise<void> } - Promise that returns no value.
284661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
284761847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
284861847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
284961847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
285061847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
285161847f8eSopenharmony_ci   * @throws { BusinessError } 1300004 - Unauthorized operation.
285261847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
285361847f8eSopenharmony_ci   * @atomicservice
285461847f8eSopenharmony_ci   * @since 12
285561847f8eSopenharmony_ci   */
285661847f8eSopenharmony_ci  function shiftAppWindowFocus(sourceWindowId: number, targetWindowId: number): Promise<void>;
285761847f8eSopenharmony_ci
285861847f8eSopenharmony_ci  /**
285961847f8eSopenharmony_ci   * Get info of visible windows.
286061847f8eSopenharmony_ci   *
286161847f8eSopenharmony_ci   * @returns { Promise<Array<WindowInfo>> } - Promise that returns windowInfo list.
286261847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed, non-system application uses system API.
286361847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
286461847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
286561847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
286661847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
286761847f8eSopenharmony_ci   * @since 12
286861847f8eSopenharmony_ci   */
286961847f8eSopenharmony_ci  function getVisibleWindowInfo(): Promise<Array<WindowInfo>>;
287061847f8eSopenharmony_ci
287161847f8eSopenharmony_ci  /**
287261847f8eSopenharmony_ci   * gets snapshot of window
287361847f8eSopenharmony_ci   *
287461847f8eSopenharmony_ci   * @param { number } windowId - Indicates target window id.
287561847f8eSopenharmony_ci   * @returns { Promise<image.PixelMap> } - Promise that returns no value.
287661847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
287761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
287861847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3.Parameter verification failed.
287961847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
288061847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
288161847f8eSopenharmony_ci   * @throws { BusinessError } 1300004 - This operation is not accessible.
288261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
288361847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
288461847f8eSopenharmony_ci   * @since 12
288561847f8eSopenharmony_ci   */
288661847f8eSopenharmony_ci  function getSnapshot(windowId: number): Promise<image.PixelMap>;
288761847f8eSopenharmony_ci
288861847f8eSopenharmony_ci  /**
288961847f8eSopenharmony_ci   * Get windows by coordinate.
289061847f8eSopenharmony_ci   *
289161847f8eSopenharmony_ci   * @param { number } displayId - Indicate the id of display.
289261847f8eSopenharmony_ci   * @param { number } windowNumber - Indicate the Number of query windows.
289361847f8eSopenharmony_ci   * @param { number } x - Indicate the X-coordinate of the window.
289461847f8eSopenharmony_ci   * @param { number } y - Indicate the Y-coordinate of the window.
289561847f8eSopenharmony_ci   * @returns { Promise<Array<Window>> } Promise used to return the window.
289661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
289761847f8eSopenharmony_ci   * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
289861847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
289961847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
290061847f8eSopenharmony_ci   * @atomicservice
290161847f8eSopenharmony_ci   * @since 14
290261847f8eSopenharmony_ci   */
290361847f8eSopenharmony_ci  function getWindowsByCoordinate(displayId: number, windowNumber?: number, x?: number, y?: number): Promise<Array<Window>>;
290461847f8eSopenharmony_ci
290561847f8eSopenharmony_ci  /**
290661847f8eSopenharmony_ci   * Register the callback of systemBarTintChange
290761847f8eSopenharmony_ci   *
290861847f8eSopenharmony_ci   * @param { 'systemBarTintChange' } type - The value is fixed at 'systemBarTintChange', indicating the property change event of the system bar.
290961847f8eSopenharmony_ci   * @param { Callback<SystemBarTintState> } callback - Callback used to return the properties of the system bar.
291061847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
291161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
291261847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types; 
291361847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
291461847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
291561847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
291661847f8eSopenharmony_ci   * @since 8
291761847f8eSopenharmony_ci   */
291861847f8eSopenharmony_ci  function on(type: 'systemBarTintChange', callback: Callback<SystemBarTintState>): void;
291961847f8eSopenharmony_ci
292061847f8eSopenharmony_ci  /**
292161847f8eSopenharmony_ci   * Unregister the callback of systemBarTintChange
292261847f8eSopenharmony_ci   *
292361847f8eSopenharmony_ci   * @param { 'systemBarTintChange' } type - The value is fixed at 'systemBarTintChange', indicating the property change event of the system bar.
292461847f8eSopenharmony_ci   * @param { Callback<SystemBarTintState> } callback - Callback used to return the properties of the system bar.
292561847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
292661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
292761847f8eSopenharmony_ci   *                                                                  2. Parameter verification failed.
292861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
292961847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
293061847f8eSopenharmony_ci   * @since 8
293161847f8eSopenharmony_ci   */
293261847f8eSopenharmony_ci  function off(type: 'systemBarTintChange', callback?: Callback<SystemBarTintState>): void;
293361847f8eSopenharmony_ci
293461847f8eSopenharmony_ci  /**
293561847f8eSopenharmony_ci   * Register the callback for gesture navigation enabled changes.
293661847f8eSopenharmony_ci   *
293761847f8eSopenharmony_ci   * @param { 'gestureNavigationEnabledChange' } type the event of gesture navigation enabled changes.
293861847f8eSopenharmony_ci   * @param { Callback<boolean> } callback Callback used to return the result whether gesture navigation enabled or not.
293961847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
294061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
294161847f8eSopenharmony_ci   *                                                                  2. Incorrect parameter types.
294261847f8eSopenharmony_ci   *                                                                  3. Parameter verification failed.
294361847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
294461847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
294561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
294661847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
294761847f8eSopenharmony_ci   * @since 10
294861847f8eSopenharmony_ci   */
294961847f8eSopenharmony_ci  function on(type: 'gestureNavigationEnabledChange', callback: Callback<boolean>): void;
295061847f8eSopenharmony_ci
295161847f8eSopenharmony_ci  /**
295261847f8eSopenharmony_ci   * Unregister the callback for gesture navigation enabled changes.
295361847f8eSopenharmony_ci   *
295461847f8eSopenharmony_ci   * @param { 'gestureNavigationEnabledChange' } type the event of gesture navigation enabled changes.
295561847f8eSopenharmony_ci   * @param { Callback<boolean> } callback Callback used to return the result whether gesture navigation enabled or not.
295661847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
295761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
295861847f8eSopenharmony_ci   *                                                                  2. Parameter verification failed.
295961847f8eSopenharmony_ci   * @throws { BusinessError } 1300002 - This window state is abnormal.
296061847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
296161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
296261847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
296361847f8eSopenharmony_ci   * @since 10
296461847f8eSopenharmony_ci   */
296561847f8eSopenharmony_ci  function off(type: 'gestureNavigationEnabledChange', callback?: Callback<boolean>): void;
296661847f8eSopenharmony_ci
296761847f8eSopenharmony_ci  /**
296861847f8eSopenharmony_ci   * Register the callback for watermark flag change.
296961847f8eSopenharmony_ci   *
297061847f8eSopenharmony_ci   * @param { 'waterMarkFlagChange' } type the event of watermark flag change.
297161847f8eSopenharmony_ci   * @param { Callback<boolean> } callback Callback used to return the result whether watermark flag change or not.
297261847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
297361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
297461847f8eSopenharmony_ci   * <br>2. Incorrect parameter types. 3.Parameter verification failed.
297561847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
297661847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
297761847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
297861847f8eSopenharmony_ci   * @since 10
297961847f8eSopenharmony_ci   */
298061847f8eSopenharmony_ci  function on(type: 'waterMarkFlagChange', callback: Callback<boolean>): void;
298161847f8eSopenharmony_ci
298261847f8eSopenharmony_ci  /**
298361847f8eSopenharmony_ci   * Unregister the callback for watermark flag change.
298461847f8eSopenharmony_ci   *
298561847f8eSopenharmony_ci   * @param { 'waterMarkFlagChange' } type the event of watermark flag change.
298661847f8eSopenharmony_ci   * @param { Callback<boolean> } callback Callback used to return the result whether watermark flag change or not.
298761847f8eSopenharmony_ci   * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
298861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
298961847f8eSopenharmony_ci   * <br>2. Parameter verification failed.
299061847f8eSopenharmony_ci   * @throws { BusinessError } 1300003 - This window manager service works abnormally.
299161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
299261847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
299361847f8eSopenharmony_ci   * @since 10
299461847f8eSopenharmony_ci   */
299561847f8eSopenharmony_ci  function off(type: 'waterMarkFlagChange', callback?: Callback<boolean>): void;
299661847f8eSopenharmony_ci  /**
299761847f8eSopenharmony_ci   * Display orientation
299861847f8eSopenharmony_ci   *
299961847f8eSopenharmony_ci   * @enum { number }
300061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
300161847f8eSopenharmony_ci   * @since 9
300261847f8eSopenharmony_ci   */
300361847f8eSopenharmony_ci  /**
300461847f8eSopenharmony_ci   * Display orientation
300561847f8eSopenharmony_ci   *
300661847f8eSopenharmony_ci   * @enum { number }
300761847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
300861847f8eSopenharmony_ci   * @crossplatform
300961847f8eSopenharmony_ci   * @since 10
301061847f8eSopenharmony_ci   */
301161847f8eSopenharmony_ci  /**
301261847f8eSopenharmony_ci   * Display orientation
301361847f8eSopenharmony_ci   *
301461847f8eSopenharmony_ci   * @enum { number }
301561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
301661847f8eSopenharmony_ci   * @crossplatform
301761847f8eSopenharmony_ci   * @atomicservice
301861847f8eSopenharmony_ci   * @since 11
301961847f8eSopenharmony_ci   */
302061847f8eSopenharmony_ci  enum Orientation {
302161847f8eSopenharmony_ci    /**
302261847f8eSopenharmony_ci     * Default value. The direction mode is not clearly defined. It is determined by the system.
302361847f8eSopenharmony_ci     *
302461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
302561847f8eSopenharmony_ci     * @since 9
302661847f8eSopenharmony_ci     */
302761847f8eSopenharmony_ci    /**
302861847f8eSopenharmony_ci     * Default value. The direction mode is not clearly defined. It is determined by the system.
302961847f8eSopenharmony_ci     *
303061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
303161847f8eSopenharmony_ci     * @crossplatform
303261847f8eSopenharmony_ci     * @since 10
303361847f8eSopenharmony_ci     */
303461847f8eSopenharmony_ci    /**
303561847f8eSopenharmony_ci     * Default value. The direction mode is not clearly defined. It is determined by the system.
303661847f8eSopenharmony_ci     *
303761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
303861847f8eSopenharmony_ci     * @crossplatform
303961847f8eSopenharmony_ci     * @atomicservice
304061847f8eSopenharmony_ci     * @since 12
304161847f8eSopenharmony_ci     */
304261847f8eSopenharmony_ci    UNSPECIFIED = 0,
304361847f8eSopenharmony_ci
304461847f8eSopenharmony_ci    /**
304561847f8eSopenharmony_ci     * Display in portrait orientation.
304661847f8eSopenharmony_ci     *
304761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
304861847f8eSopenharmony_ci     * @since 9
304961847f8eSopenharmony_ci     */
305061847f8eSopenharmony_ci    /**
305161847f8eSopenharmony_ci     * Display in portrait orientation.
305261847f8eSopenharmony_ci     *
305361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
305461847f8eSopenharmony_ci     * @crossplatform
305561847f8eSopenharmony_ci     * @since 10
305661847f8eSopenharmony_ci     */
305761847f8eSopenharmony_ci    /**
305861847f8eSopenharmony_ci     * Display in portrait orientation.
305961847f8eSopenharmony_ci     *
306061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
306161847f8eSopenharmony_ci     * @crossplatform
306261847f8eSopenharmony_ci     * @atomicservice
306361847f8eSopenharmony_ci     * @since 11
306461847f8eSopenharmony_ci     */
306561847f8eSopenharmony_ci    PORTRAIT = 1,
306661847f8eSopenharmony_ci
306761847f8eSopenharmony_ci    /**
306861847f8eSopenharmony_ci     * Display in landscape orientation.
306961847f8eSopenharmony_ci     *
307061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
307161847f8eSopenharmony_ci     * @since 9
307261847f8eSopenharmony_ci     */
307361847f8eSopenharmony_ci    /**
307461847f8eSopenharmony_ci     * Display in landscape orientation.
307561847f8eSopenharmony_ci     *
307661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
307761847f8eSopenharmony_ci     * @crossplatform
307861847f8eSopenharmony_ci     * @since 10
307961847f8eSopenharmony_ci     */
308061847f8eSopenharmony_ci    /**
308161847f8eSopenharmony_ci     * Display in landscape orientation.
308261847f8eSopenharmony_ci     *
308361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
308461847f8eSopenharmony_ci     * @crossplatform
308561847f8eSopenharmony_ci     * @atomicservice
308661847f8eSopenharmony_ci     * @since 12
308761847f8eSopenharmony_ci     */
308861847f8eSopenharmony_ci    LANDSCAPE = 2,
308961847f8eSopenharmony_ci
309061847f8eSopenharmony_ci    /**
309161847f8eSopenharmony_ci     * Display in inverted portrait orientation.
309261847f8eSopenharmony_ci     *
309361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
309461847f8eSopenharmony_ci     * @since 9
309561847f8eSopenharmony_ci     */
309661847f8eSopenharmony_ci    /**
309761847f8eSopenharmony_ci     * Display in inverted portrait orientation.
309861847f8eSopenharmony_ci     *
309961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
310061847f8eSopenharmony_ci     * @crossplatform
310161847f8eSopenharmony_ci     * @since 10
310261847f8eSopenharmony_ci     */
310361847f8eSopenharmony_ci    /**
310461847f8eSopenharmony_ci     * Display in inverted portrait orientation.
310561847f8eSopenharmony_ci     *
310661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
310761847f8eSopenharmony_ci     * @crossplatform
310861847f8eSopenharmony_ci     * @atomicservice
310961847f8eSopenharmony_ci     * @since 12
311061847f8eSopenharmony_ci     */
311161847f8eSopenharmony_ci    PORTRAIT_INVERTED = 3,
311261847f8eSopenharmony_ci
311361847f8eSopenharmony_ci    /**
311461847f8eSopenharmony_ci     * Display in inverted landscape orientation.
311561847f8eSopenharmony_ci     *
311661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
311761847f8eSopenharmony_ci     * @since 9
311861847f8eSopenharmony_ci     */
311961847f8eSopenharmony_ci    /**
312061847f8eSopenharmony_ci     * Display in inverted landscape orientation.
312161847f8eSopenharmony_ci     *
312261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
312361847f8eSopenharmony_ci     * @crossplatform
312461847f8eSopenharmony_ci     * @since 10
312561847f8eSopenharmony_ci     */
312661847f8eSopenharmony_ci    /**
312761847f8eSopenharmony_ci     * Display in inverted landscape orientation.
312861847f8eSopenharmony_ci     *
312961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
313061847f8eSopenharmony_ci     * @crossplatform
313161847f8eSopenharmony_ci     * @atomicservice
313261847f8eSopenharmony_ci     * @since 12
313361847f8eSopenharmony_ci     */
313461847f8eSopenharmony_ci    LANDSCAPE_INVERTED = 4,
313561847f8eSopenharmony_ci
313661847f8eSopenharmony_ci    /**
313761847f8eSopenharmony_ci     * Follow the rotation of the sensor, ignore auto rotation lock.
313861847f8eSopenharmony_ci     *
313961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
314061847f8eSopenharmony_ci     * @since 9
314161847f8eSopenharmony_ci     */
314261847f8eSopenharmony_ci    /**
314361847f8eSopenharmony_ci     * Follow the rotation of the sensor, ignore auto rotation lock.
314461847f8eSopenharmony_ci     *
314561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
314661847f8eSopenharmony_ci     * @atomicservice
314761847f8eSopenharmony_ci     * @since 11
314861847f8eSopenharmony_ci     */
314961847f8eSopenharmony_ci    AUTO_ROTATION = 5,
315061847f8eSopenharmony_ci
315161847f8eSopenharmony_ci    /**
315261847f8eSopenharmony_ci     * Follow the rotation of the sensor, only work in the vertical direction, ignore auto rotation lock.
315361847f8eSopenharmony_ci     *
315461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
315561847f8eSopenharmony_ci     * @since 9
315661847f8eSopenharmony_ci     */
315761847f8eSopenharmony_ci    /**
315861847f8eSopenharmony_ci     * Follow the rotation of the sensor, only work in the vertical direction, ignore auto rotation lock.
315961847f8eSopenharmony_ci     *
316061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
316161847f8eSopenharmony_ci     * @atomicservice
316261847f8eSopenharmony_ci     * @since 12
316361847f8eSopenharmony_ci     */
316461847f8eSopenharmony_ci    AUTO_ROTATION_PORTRAIT = 6,
316561847f8eSopenharmony_ci
316661847f8eSopenharmony_ci    /**
316761847f8eSopenharmony_ci     * Follow the rotation of the sensor, only work in the horizontal direction, ignore auto rotation lock.
316861847f8eSopenharmony_ci     *
316961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
317061847f8eSopenharmony_ci     * @since 9
317161847f8eSopenharmony_ci     */
317261847f8eSopenharmony_ci    /**
317361847f8eSopenharmony_ci     * Follow the rotation of the sensor, only work in the horizontal direction, ignore auto rotation lock.
317461847f8eSopenharmony_ci     *
317561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
317661847f8eSopenharmony_ci     * @atomicservice
317761847f8eSopenharmony_ci     * @since 12
317861847f8eSopenharmony_ci     */
317961847f8eSopenharmony_ci    AUTO_ROTATION_LANDSCAPE = 7,
318061847f8eSopenharmony_ci
318161847f8eSopenharmony_ci    /**
318261847f8eSopenharmony_ci     * Follow the rotation of the sensor, controlled by auto rotation lock.
318361847f8eSopenharmony_ci     *
318461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
318561847f8eSopenharmony_ci     * @since 9
318661847f8eSopenharmony_ci     */
318761847f8eSopenharmony_ci    /**
318861847f8eSopenharmony_ci     * Follow the rotation of the sensor, controlled by auto rotation lock.
318961847f8eSopenharmony_ci     *
319061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
319161847f8eSopenharmony_ci     * @atomicservice
319261847f8eSopenharmony_ci     * @since 12
319361847f8eSopenharmony_ci     */
319461847f8eSopenharmony_ci    AUTO_ROTATION_RESTRICTED = 8,
319561847f8eSopenharmony_ci
319661847f8eSopenharmony_ci    /**
319761847f8eSopenharmony_ci     * Follow the rotation of the sensor, only work in the vertical direction, controlled by auto rotation lock.
319861847f8eSopenharmony_ci     *
319961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
320061847f8eSopenharmony_ci     * @since 9
320161847f8eSopenharmony_ci     */
320261847f8eSopenharmony_ci    /**
320361847f8eSopenharmony_ci     * Follow the rotation of the sensor, only work in the vertical direction, controlled by auto rotation lock.
320461847f8eSopenharmony_ci     *
320561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
320661847f8eSopenharmony_ci     * @atomicservice
320761847f8eSopenharmony_ci     * @since 12
320861847f8eSopenharmony_ci     */
320961847f8eSopenharmony_ci    AUTO_ROTATION_PORTRAIT_RESTRICTED = 9,
321061847f8eSopenharmony_ci
321161847f8eSopenharmony_ci    /**
321261847f8eSopenharmony_ci     * Follow the rotation of the sensor, only work in the horizontal direction, controlled by auto rotation lock.
321361847f8eSopenharmony_ci     *
321461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
321561847f8eSopenharmony_ci     * @since 9
321661847f8eSopenharmony_ci     */
321761847f8eSopenharmony_ci    /**
321861847f8eSopenharmony_ci     * Follow the rotation of the sensor, only work in the horizontal direction, controlled by auto rotation lock.
321961847f8eSopenharmony_ci     *
322061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
322161847f8eSopenharmony_ci     * @atomicservice
322261847f8eSopenharmony_ci     * @since 12
322361847f8eSopenharmony_ci     */
322461847f8eSopenharmony_ci    AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10,
322561847f8eSopenharmony_ci
322661847f8eSopenharmony_ci    /**
322761847f8eSopenharmony_ci     * Locked mode, keep the same direction as previous one.
322861847f8eSopenharmony_ci     *
322961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
323061847f8eSopenharmony_ci     * @since 9
323161847f8eSopenharmony_ci     */
323261847f8eSopenharmony_ci    /**
323361847f8eSopenharmony_ci     * Locked mode, keep the same direction as previous one.
323461847f8eSopenharmony_ci     *
323561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
323661847f8eSopenharmony_ci     * @atomicservice
323761847f8eSopenharmony_ci     * @since 12
323861847f8eSopenharmony_ci     */
323961847f8eSopenharmony_ci    LOCKED = 11,
324061847f8eSopenharmony_ci
324161847f8eSopenharmony_ci    /**
324261847f8eSopenharmony_ci     * Follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.
324361847f8eSopenharmony_ci     *
324461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
324561847f8eSopenharmony_ci     * @atomicservice
324661847f8eSopenharmony_ci     * @since 12
324761847f8eSopenharmony_ci     */
324861847f8eSopenharmony_ci    AUTO_ROTATION_UNSPECIFIED = 12,
324961847f8eSopenharmony_ci
325061847f8eSopenharmony_ci    /**
325161847f8eSopenharmony_ci     * Display in portrait orientation, and then, follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.
325261847f8eSopenharmony_ci     *
325361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
325461847f8eSopenharmony_ci     * @atomicservice
325561847f8eSopenharmony_ci     * @since 12
325661847f8eSopenharmony_ci     */
325761847f8eSopenharmony_ci    USER_ROTATION_PORTRAIT = 13,
325861847f8eSopenharmony_ci
325961847f8eSopenharmony_ci    /**
326061847f8eSopenharmony_ci     * Display in landscape orientation, and then, follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.
326161847f8eSopenharmony_ci     *
326261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
326361847f8eSopenharmony_ci     * @atomicservice
326461847f8eSopenharmony_ci     * @since 12
326561847f8eSopenharmony_ci     */
326661847f8eSopenharmony_ci    USER_ROTATION_LANDSCAPE = 14,
326761847f8eSopenharmony_ci
326861847f8eSopenharmony_ci    /**
326961847f8eSopenharmony_ci     * Display in inverted portrait orientation, and then, follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.
327061847f8eSopenharmony_ci     *
327161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
327261847f8eSopenharmony_ci     * @atomicservice
327361847f8eSopenharmony_ci     * @since 12
327461847f8eSopenharmony_ci     */
327561847f8eSopenharmony_ci    USER_ROTATION_PORTRAIT_INVERTED = 15,
327661847f8eSopenharmony_ci
327761847f8eSopenharmony_ci    /**
327861847f8eSopenharmony_ci     * Display in inverted landscape orientation, and then, follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.
327961847f8eSopenharmony_ci     *
328061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
328161847f8eSopenharmony_ci     * @atomicservice
328261847f8eSopenharmony_ci     * @since 12
328361847f8eSopenharmony_ci     */
328461847f8eSopenharmony_ci    USER_ROTATION_LANDSCAPE_INVERTED = 16,
328561847f8eSopenharmony_ci
328661847f8eSopenharmony_ci    /**
328761847f8eSopenharmony_ci     * Follow the desktop rotate mode.
328861847f8eSopenharmony_ci     *
328961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
329061847f8eSopenharmony_ci     * @atomicservice
329161847f8eSopenharmony_ci     * @since 12
329261847f8eSopenharmony_ci     */
329361847f8eSopenharmony_ci    FOLLOW_DESKTOP = 17
329461847f8eSopenharmony_ci  }
329561847f8eSopenharmony_ci
329661847f8eSopenharmony_ci  /**
329761847f8eSopenharmony_ci   * Type of blur style
329861847f8eSopenharmony_ci   *
329961847f8eSopenharmony_ci   * @enum { number }
330061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
330161847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
330261847f8eSopenharmony_ci   * @since 9
330361847f8eSopenharmony_ci   */
330461847f8eSopenharmony_ci  enum BlurStyle {
330561847f8eSopenharmony_ci    /**
330661847f8eSopenharmony_ci     * Close blur.
330761847f8eSopenharmony_ci     *
330861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
330961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
331061847f8eSopenharmony_ci     * @since 9
331161847f8eSopenharmony_ci     */
331261847f8eSopenharmony_ci    OFF,
331361847f8eSopenharmony_ci    /**
331461847f8eSopenharmony_ci     * Blur style thin.
331561847f8eSopenharmony_ci     *
331661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
331761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
331861847f8eSopenharmony_ci     * @since 9
331961847f8eSopenharmony_ci     */
332061847f8eSopenharmony_ci    THIN,
332161847f8eSopenharmony_ci    /**
332261847f8eSopenharmony_ci     * Blur style regular.
332361847f8eSopenharmony_ci     *
332461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
332561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
332661847f8eSopenharmony_ci     * @since 9
332761847f8eSopenharmony_ci     */
332861847f8eSopenharmony_ci    REGULAR,
332961847f8eSopenharmony_ci    /**
333061847f8eSopenharmony_ci     * Blur style thick.
333161847f8eSopenharmony_ci     *
333261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
333361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
333461847f8eSopenharmony_ci     * @since 9
333561847f8eSopenharmony_ci     */
333661847f8eSopenharmony_ci    THICK
333761847f8eSopenharmony_ci  }
333861847f8eSopenharmony_ci
333961847f8eSopenharmony_ci  /**
334061847f8eSopenharmony_ci   * Enum for window callback event type
334161847f8eSopenharmony_ci   *
334261847f8eSopenharmony_ci   * @enum { number }
334361847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
334461847f8eSopenharmony_ci   * @since 10
334561847f8eSopenharmony_ci   */
334661847f8eSopenharmony_ci  /**
334761847f8eSopenharmony_ci   * Enum for window callback event type
334861847f8eSopenharmony_ci   *
334961847f8eSopenharmony_ci   * @enum { number }
335061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
335161847f8eSopenharmony_ci   * @crossplatform
335261847f8eSopenharmony_ci   * @atomicservice
335361847f8eSopenharmony_ci   * @since 11
335461847f8eSopenharmony_ci   */
335561847f8eSopenharmony_ci  enum WindowEventType {
335661847f8eSopenharmony_ci    /**
335761847f8eSopenharmony_ci     * The value of window event is window show
335861847f8eSopenharmony_ci     *
335961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
336061847f8eSopenharmony_ci     * @since 10
336161847f8eSopenharmony_ci     */
336261847f8eSopenharmony_ci    /**
336361847f8eSopenharmony_ci     * The value of window event is window show
336461847f8eSopenharmony_ci     *
336561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
336661847f8eSopenharmony_ci     * @crossplatform
336761847f8eSopenharmony_ci     * @atomicservice
336861847f8eSopenharmony_ci     * @since 11
336961847f8eSopenharmony_ci     */
337061847f8eSopenharmony_ci    WINDOW_SHOWN = 1,
337161847f8eSopenharmony_ci    /**
337261847f8eSopenharmony_ci     * The value of window event is window active
337361847f8eSopenharmony_ci     *
337461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
337561847f8eSopenharmony_ci     * @since 10
337661847f8eSopenharmony_ci     */
337761847f8eSopenharmony_ci    /**
337861847f8eSopenharmony_ci     * The value of window event is window active
337961847f8eSopenharmony_ci     *
338061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
338161847f8eSopenharmony_ci     * @crossplatform
338261847f8eSopenharmony_ci     * @atomicservice
338361847f8eSopenharmony_ci     * @since 11
338461847f8eSopenharmony_ci     */
338561847f8eSopenharmony_ci    WINDOW_ACTIVE = 2,
338661847f8eSopenharmony_ci    /**
338761847f8eSopenharmony_ci     * The value of window event is window inactive
338861847f8eSopenharmony_ci     *
338961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
339061847f8eSopenharmony_ci     * @since 10
339161847f8eSopenharmony_ci     */
339261847f8eSopenharmony_ci    /**
339361847f8eSopenharmony_ci     * The value of window event is window inactive
339461847f8eSopenharmony_ci     *
339561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
339661847f8eSopenharmony_ci     * @crossplatform
339761847f8eSopenharmony_ci     * @atomicservice
339861847f8eSopenharmony_ci     * @since 11
339961847f8eSopenharmony_ci     */
340061847f8eSopenharmony_ci    WINDOW_INACTIVE = 3,
340161847f8eSopenharmony_ci    /**
340261847f8eSopenharmony_ci     * The value of window event is window hide
340361847f8eSopenharmony_ci     *
340461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
340561847f8eSopenharmony_ci     * @since 10
340661847f8eSopenharmony_ci     */
340761847f8eSopenharmony_ci    /**
340861847f8eSopenharmony_ci     * The value of window event is window hide
340961847f8eSopenharmony_ci     *
341061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
341161847f8eSopenharmony_ci     * @crossplatform
341261847f8eSopenharmony_ci     * @atomicservice
341361847f8eSopenharmony_ci     * @since 11
341461847f8eSopenharmony_ci     */
341561847f8eSopenharmony_ci    WINDOW_HIDDEN = 4,
341661847f8eSopenharmony_ci    /**
341761847f8eSopenharmony_ci     * The value of window event is window destroy
341861847f8eSopenharmony_ci     *
341961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
342061847f8eSopenharmony_ci     * @atomicservice
342161847f8eSopenharmony_ci     * @since 11
342261847f8eSopenharmony_ci     */
342361847f8eSopenharmony_ci    WINDOW_DESTROYED = 7
342461847f8eSopenharmony_ci  }
342561847f8eSopenharmony_ci
342661847f8eSopenharmony_ci  /**
342761847f8eSopenharmony_ci   * Enum for window maximize presentation
342861847f8eSopenharmony_ci   *
342961847f8eSopenharmony_ci   * @enum { number }
343061847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
343161847f8eSopenharmony_ci   * @atomicservice
343261847f8eSopenharmony_ci   * @since 12
343361847f8eSopenharmony_ci   */
343461847f8eSopenharmony_ci  enum MaximizePresentation {
343561847f8eSopenharmony_ci    /**
343661847f8eSopenharmony_ci     * The value means follow immersive state which set by app
343761847f8eSopenharmony_ci     *
343861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
343961847f8eSopenharmony_ci     * @atomicservice
344061847f8eSopenharmony_ci     * @since 12
344161847f8eSopenharmony_ci     */
344261847f8eSopenharmony_ci    FOLLOW_APP_IMMERSIVE_SETTING = 0,
344361847f8eSopenharmony_ci    /**
344461847f8eSopenharmony_ci     * The value means exit immersive state 
344561847f8eSopenharmony_ci     *
344661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
344761847f8eSopenharmony_ci     * @atomicservice
344861847f8eSopenharmony_ci     * @since 12
344961847f8eSopenharmony_ci     */
345061847f8eSopenharmony_ci    EXIT_IMMERSIVE = 1,
345161847f8eSopenharmony_ci    /**
345261847f8eSopenharmony_ci     * The value means enter immersive state 
345361847f8eSopenharmony_ci     *
345461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
345561847f8eSopenharmony_ci     * @atomicservice
345661847f8eSopenharmony_ci     * @since 12
345761847f8eSopenharmony_ci     */
345861847f8eSopenharmony_ci    ENTER_IMMERSIVE = 2,
345961847f8eSopenharmony_ci    /**
346061847f8eSopenharmony_ci     * The value means enter immersive state and the title bar and dock bar cannot be shown, when the mouse hovers over hot area.
346161847f8eSopenharmony_ci     *
346261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
346361847f8eSopenharmony_ci     * @atomicservice
346461847f8eSopenharmony_ci     * @since 14
346561847f8eSopenharmony_ci     */
346661847f8eSopenharmony_ci    ENTER_IMMERSIVE_DISABLE_TITLE_AND_DOCK_HOVER = 3,
346761847f8eSopenharmony_ci  }
346861847f8eSopenharmony_ci
346961847f8eSopenharmony_ci  /**
347061847f8eSopenharmony_ci   * Specific system bar type.
347161847f8eSopenharmony_ci   *
347261847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
347361847f8eSopenharmony_ci   * @atomicservice
347461847f8eSopenharmony_ci   * @since 11
347561847f8eSopenharmony_ci   */
347661847f8eSopenharmony_ci  /**
347761847f8eSopenharmony_ci   * Specific system bar type.
347861847f8eSopenharmony_ci   *
347961847f8eSopenharmony_ci   * @typedef {'status' | 'navigation' | 'navigationIndicator'}
348061847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
348161847f8eSopenharmony_ci   * @crossplatform
348261847f8eSopenharmony_ci   * @atomicservice
348361847f8eSopenharmony_ci   * @since 12
348461847f8eSopenharmony_ci   */
348561847f8eSopenharmony_ci  type SpecificSystemBar = 'status' | 'navigation' | 'navigationIndicator';
348661847f8eSopenharmony_ci
348761847f8eSopenharmony_ci  /**
348861847f8eSopenharmony_ci   * Window
348961847f8eSopenharmony_ci   *
349061847f8eSopenharmony_ci   * @interface Window
349161847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
349261847f8eSopenharmony_ci   * @since 6
349361847f8eSopenharmony_ci   */
349461847f8eSopenharmony_ci  /**
349561847f8eSopenharmony_ci   * Window
349661847f8eSopenharmony_ci   *
349761847f8eSopenharmony_ci   * @interface Window
349861847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
349961847f8eSopenharmony_ci   * @crossplatform
350061847f8eSopenharmony_ci   * @atomicservice
350161847f8eSopenharmony_ci   * @since 11
350261847f8eSopenharmony_ci   */
350361847f8eSopenharmony_ci  interface Window {
350461847f8eSopenharmony_ci    /**
350561847f8eSopenharmony_ci     * Hide window.
350661847f8eSopenharmony_ci     *
350761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
350861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
350961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
351061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
351161847f8eSopenharmony_ci     * @since 7
351261847f8eSopenharmony_ci     */
351361847f8eSopenharmony_ci    /**
351461847f8eSopenharmony_ci     * Hide window.
351561847f8eSopenharmony_ci     *
351661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
351761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
351861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
351961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
352061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
352161847f8eSopenharmony_ci     * @since 12
352261847f8eSopenharmony_ci     */
352361847f8eSopenharmony_ci    hide(callback: AsyncCallback<void>): void;
352461847f8eSopenharmony_ci
352561847f8eSopenharmony_ci    /**
352661847f8eSopenharmony_ci     * Hide window.
352761847f8eSopenharmony_ci     *
352861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
352961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
353061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
353161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
353261847f8eSopenharmony_ci     * @since 7
353361847f8eSopenharmony_ci     */
353461847f8eSopenharmony_ci    /**
353561847f8eSopenharmony_ci     * Hide window.
353661847f8eSopenharmony_ci     *
353761847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
353861847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
353961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
354061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
354161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
354261847f8eSopenharmony_ci     * @since 12
354361847f8eSopenharmony_ci     */
354461847f8eSopenharmony_ci    hide(): Promise<void>;
354561847f8eSopenharmony_ci
354661847f8eSopenharmony_ci    /**
354761847f8eSopenharmony_ci     * Hide window with animation.
354861847f8eSopenharmony_ci     *
354961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
355061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
355161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
355261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
355361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
355461847f8eSopenharmony_ci     * @systemapi
355561847f8eSopenharmony_ci     * @since 9
355661847f8eSopenharmony_ci     */
355761847f8eSopenharmony_ci    /**
355861847f8eSopenharmony_ci     * Hide window with animation.
355961847f8eSopenharmony_ci     *
356061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
356161847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
356261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
356361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
356461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
356561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
356661847f8eSopenharmony_ci     * @systemapi
356761847f8eSopenharmony_ci     * @since 12
356861847f8eSopenharmony_ci     */
356961847f8eSopenharmony_ci    hideWithAnimation(callback: AsyncCallback<void>): void;
357061847f8eSopenharmony_ci
357161847f8eSopenharmony_ci    /**
357261847f8eSopenharmony_ci     * Hide window with animation.
357361847f8eSopenharmony_ci     *
357461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
357561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
357661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
357761847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
357861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
357961847f8eSopenharmony_ci     * @systemapi
358061847f8eSopenharmony_ci     * @since 9
358161847f8eSopenharmony_ci     */
358261847f8eSopenharmony_ci    /**
358361847f8eSopenharmony_ci     * Hide window with animation.
358461847f8eSopenharmony_ci     *
358561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
358661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
358761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
358861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
358961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
359061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
359161847f8eSopenharmony_ci     * @systemapi
359261847f8eSopenharmony_ci     * @since 12
359361847f8eSopenharmony_ci     */
359461847f8eSopenharmony_ci    hideWithAnimation(): Promise<void>;
359561847f8eSopenharmony_ci
359661847f8eSopenharmony_ci    /**
359761847f8eSopenharmony_ci     * Show window.
359861847f8eSopenharmony_ci     *
359961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
360061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
360161847f8eSopenharmony_ci     * @since 7
360261847f8eSopenharmony_ci     * @deprecated since 9
360361847f8eSopenharmony_ci     * @useinstead ohos.window.Window#showWindow
360461847f8eSopenharmony_ci     */
360561847f8eSopenharmony_ci    show(callback: AsyncCallback<void>): void;
360661847f8eSopenharmony_ci
360761847f8eSopenharmony_ci    /**
360861847f8eSopenharmony_ci     * Show window.
360961847f8eSopenharmony_ci     *
361061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
361161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
361261847f8eSopenharmony_ci     * @since 7
361361847f8eSopenharmony_ci     * @deprecated since 9
361461847f8eSopenharmony_ci     * @useinstead ohos.window.Window#showWindow
361561847f8eSopenharmony_ci     */
361661847f8eSopenharmony_ci    show(): Promise<void>;
361761847f8eSopenharmony_ci
361861847f8eSopenharmony_ci    /**
361961847f8eSopenharmony_ci     * Show window.
362061847f8eSopenharmony_ci     *
362161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
362261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
362361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
362461847f8eSopenharmony_ci     * @since 9
362561847f8eSopenharmony_ci     */
362661847f8eSopenharmony_ci    /**
362761847f8eSopenharmony_ci     * Show window.
362861847f8eSopenharmony_ci     *
362961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
363061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
363161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
363261847f8eSopenharmony_ci     * @crossplatform
363361847f8eSopenharmony_ci     * @since 10
363461847f8eSopenharmony_ci     */
363561847f8eSopenharmony_ci    /**
363661847f8eSopenharmony_ci     * Show window.
363761847f8eSopenharmony_ci     *
363861847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
363961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
364061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
364161847f8eSopenharmony_ci     * @crossplatform
364261847f8eSopenharmony_ci     * @atomicservice
364361847f8eSopenharmony_ci     * @since 11
364461847f8eSopenharmony_ci     */
364561847f8eSopenharmony_ci    showWindow(callback: AsyncCallback<void>): void;
364661847f8eSopenharmony_ci
364761847f8eSopenharmony_ci    /**
364861847f8eSopenharmony_ci     * Show window.
364961847f8eSopenharmony_ci     *
365061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
365161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
365261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
365361847f8eSopenharmony_ci     * @since 9
365461847f8eSopenharmony_ci     */
365561847f8eSopenharmony_ci    /**
365661847f8eSopenharmony_ci     * Show window.
365761847f8eSopenharmony_ci     *
365861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
365961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
366061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
366161847f8eSopenharmony_ci     * @crossplatform
366261847f8eSopenharmony_ci     * @since 10
366361847f8eSopenharmony_ci     */
366461847f8eSopenharmony_ci    /**
366561847f8eSopenharmony_ci     * Show window.
366661847f8eSopenharmony_ci     *
366761847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
366861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
366961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
367061847f8eSopenharmony_ci     * @crossplatform
367161847f8eSopenharmony_ci     * @atomicservice
367261847f8eSopenharmony_ci     * @since 11
367361847f8eSopenharmony_ci     */
367461847f8eSopenharmony_ci    showWindow(): Promise<void>;
367561847f8eSopenharmony_ci
367661847f8eSopenharmony_ci    /**
367761847f8eSopenharmony_ci     * Show window with animation.
367861847f8eSopenharmony_ci     *
367961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
368061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
368161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
368261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
368361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
368461847f8eSopenharmony_ci     * @systemapi
368561847f8eSopenharmony_ci     * @since 9
368661847f8eSopenharmony_ci     */
368761847f8eSopenharmony_ci    /**
368861847f8eSopenharmony_ci     * Show window with animation.
368961847f8eSopenharmony_ci     *
369061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
369161847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
369261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
369361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
369461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
369561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
369661847f8eSopenharmony_ci     * @systemapi
369761847f8eSopenharmony_ci     * @since 12
369861847f8eSopenharmony_ci     */
369961847f8eSopenharmony_ci    showWithAnimation(callback: AsyncCallback<void>): void;
370061847f8eSopenharmony_ci
370161847f8eSopenharmony_ci    /**
370261847f8eSopenharmony_ci     * Show window with animation.
370361847f8eSopenharmony_ci     *
370461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
370561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
370661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
370761847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
370861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
370961847f8eSopenharmony_ci     * @systemapi
371061847f8eSopenharmony_ci     * @since 9
371161847f8eSopenharmony_ci     */
371261847f8eSopenharmony_ci    /**
371361847f8eSopenharmony_ci     * Show window with animation.
371461847f8eSopenharmony_ci     *
371561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
371661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
371761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
371861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
371961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
372061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
372161847f8eSopenharmony_ci     * @systemapi
372261847f8eSopenharmony_ci     * @since 12
372361847f8eSopenharmony_ci     */
372461847f8eSopenharmony_ci    showWithAnimation(): Promise<void>;
372561847f8eSopenharmony_ci
372661847f8eSopenharmony_ci    /**
372761847f8eSopenharmony_ci     * Destroy the window.
372861847f8eSopenharmony_ci     *
372961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
373061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
373161847f8eSopenharmony_ci     * @since 7
373261847f8eSopenharmony_ci     * @deprecated since 9
373361847f8eSopenharmony_ci     * @useinstead ohos.window.Window#destroyWindow
373461847f8eSopenharmony_ci     */
373561847f8eSopenharmony_ci    destroy(callback: AsyncCallback<void>): void;
373661847f8eSopenharmony_ci
373761847f8eSopenharmony_ci    /**
373861847f8eSopenharmony_ci     * Destroy the window.
373961847f8eSopenharmony_ci     *
374061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
374161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
374261847f8eSopenharmony_ci     * @since 7
374361847f8eSopenharmony_ci     * @deprecated since 9
374461847f8eSopenharmony_ci     * @useinstead ohos.window.Window#destroyWindow
374561847f8eSopenharmony_ci     */
374661847f8eSopenharmony_ci    destroy(): Promise<void>;
374761847f8eSopenharmony_ci
374861847f8eSopenharmony_ci    /**
374961847f8eSopenharmony_ci     * Destroy the window.
375061847f8eSopenharmony_ci     *
375161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
375261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
375361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
375461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
375561847f8eSopenharmony_ci     * @since 9
375661847f8eSopenharmony_ci     */
375761847f8eSopenharmony_ci    /**
375861847f8eSopenharmony_ci     * Destroy the window.
375961847f8eSopenharmony_ci     *
376061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
376161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
376261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
376361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
376461847f8eSopenharmony_ci     * @crossplatform
376561847f8eSopenharmony_ci     * @since 10
376661847f8eSopenharmony_ci     */
376761847f8eSopenharmony_ci    /**
376861847f8eSopenharmony_ci     * Destroy the window.
376961847f8eSopenharmony_ci     *
377061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
377161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
377261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
377361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
377461847f8eSopenharmony_ci     * @crossplatform
377561847f8eSopenharmony_ci     * @atomicservice
377661847f8eSopenharmony_ci     * @since 11
377761847f8eSopenharmony_ci     */
377861847f8eSopenharmony_ci    destroyWindow(callback: AsyncCallback<void>): void;
377961847f8eSopenharmony_ci
378061847f8eSopenharmony_ci    /**
378161847f8eSopenharmony_ci     * Destroy the window.
378261847f8eSopenharmony_ci     *
378361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
378461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
378561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
378661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
378761847f8eSopenharmony_ci     * @since 9
378861847f8eSopenharmony_ci     */
378961847f8eSopenharmony_ci    /**
379061847f8eSopenharmony_ci     * Destroy the window.
379161847f8eSopenharmony_ci     *
379261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
379361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
379461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
379561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
379661847f8eSopenharmony_ci     * @crossplatform
379761847f8eSopenharmony_ci     * @since 10
379861847f8eSopenharmony_ci     */
379961847f8eSopenharmony_ci    /**
380061847f8eSopenharmony_ci     * Destroy the window.
380161847f8eSopenharmony_ci     *
380261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
380361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
380461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
380561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
380661847f8eSopenharmony_ci     * @crossplatform
380761847f8eSopenharmony_ci     * @atomicservice
380861847f8eSopenharmony_ci     * @since 11
380961847f8eSopenharmony_ci     */
381061847f8eSopenharmony_ci    destroyWindow(): Promise<void>;
381161847f8eSopenharmony_ci
381261847f8eSopenharmony_ci    /**
381361847f8eSopenharmony_ci     * Set the position of a window.
381461847f8eSopenharmony_ci     *
381561847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
381661847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
381761847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
381861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
381961847f8eSopenharmony_ci     * @since 7
382061847f8eSopenharmony_ci     * @deprecated since 9
382161847f8eSopenharmony_ci     * @useinstead ohos.window.Window#moveWindowTo
382261847f8eSopenharmony_ci     */
382361847f8eSopenharmony_ci    moveTo(x: number, y: number): Promise<void>;
382461847f8eSopenharmony_ci
382561847f8eSopenharmony_ci    /**
382661847f8eSopenharmony_ci     * Set the position of a window.
382761847f8eSopenharmony_ci     *
382861847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
382961847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
383061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
383161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
383261847f8eSopenharmony_ci     * @since 7
383361847f8eSopenharmony_ci     * @deprecated since 9
383461847f8eSopenharmony_ci     * @useinstead ohos.window.Window#moveWindowTo
383561847f8eSopenharmony_ci     */
383661847f8eSopenharmony_ci    moveTo(x: number, y: number, callback: AsyncCallback<void>): void;
383761847f8eSopenharmony_ci
383861847f8eSopenharmony_ci    /**
383961847f8eSopenharmony_ci     * Set the position of a window.
384061847f8eSopenharmony_ci     *
384161847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
384261847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
384361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
384461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
384561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
384661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
384761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
384861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
384961847f8eSopenharmony_ci     * @since 9
385061847f8eSopenharmony_ci     */
385161847f8eSopenharmony_ci    /**
385261847f8eSopenharmony_ci     * Set the position of a window.
385361847f8eSopenharmony_ci     *
385461847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
385561847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
385661847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
385761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
385861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
385961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
386061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
386161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
386261847f8eSopenharmony_ci     * @crossplatform
386361847f8eSopenharmony_ci     * @since 10
386461847f8eSopenharmony_ci     */
386561847f8eSopenharmony_ci    /**
386661847f8eSopenharmony_ci     * Set the position of a window.
386761847f8eSopenharmony_ci     *
386861847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
386961847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
387061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
387161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
387261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
387361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
387461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
387561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
387661847f8eSopenharmony_ci     * @crossplatform
387761847f8eSopenharmony_ci     * @atomicservice
387861847f8eSopenharmony_ci     * @since 11
387961847f8eSopenharmony_ci     */
388061847f8eSopenharmony_ci    moveWindowTo(x: number, y: number): Promise<void>;
388161847f8eSopenharmony_ci
388261847f8eSopenharmony_ci    /**
388361847f8eSopenharmony_ci     * Set the position of a window.
388461847f8eSopenharmony_ci     *
388561847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
388661847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
388761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
388861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
388961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
389061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
389161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
389261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
389361847f8eSopenharmony_ci     * @since 9
389461847f8eSopenharmony_ci     */
389561847f8eSopenharmony_ci    /**
389661847f8eSopenharmony_ci     * Set the position of a window.
389761847f8eSopenharmony_ci     *
389861847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
389961847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
390061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
390161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
390261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
390361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
390461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
390561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
390661847f8eSopenharmony_ci     * @crossplatform
390761847f8eSopenharmony_ci     * @since 10
390861847f8eSopenharmony_ci     */
390961847f8eSopenharmony_ci    /**
391061847f8eSopenharmony_ci     * Set the position of a window.
391161847f8eSopenharmony_ci     *
391261847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
391361847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
391461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
391561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
391661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
391761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
391861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
391961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
392061847f8eSopenharmony_ci     * @crossplatform
392161847f8eSopenharmony_ci     * @atomicservice
392261847f8eSopenharmony_ci     * @since 11
392361847f8eSopenharmony_ci     */
392461847f8eSopenharmony_ci    moveWindowTo(x: number, y: number, callback: AsyncCallback<void>): void;
392561847f8eSopenharmony_ci
392661847f8eSopenharmony_ci    /**
392761847f8eSopenharmony_ci     * Move window to the position.
392861847f8eSopenharmony_ci     *
392961847f8eSopenharmony_ci     * @param { number } x - Indicate the X-coordinate of the window.
393061847f8eSopenharmony_ci     * @param { number } y - Indicate the Y-coordinate of the window.
393161847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
393261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
393361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
393461847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
393561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
393661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
393761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
393861847f8eSopenharmony_ci     * @throws { BusinessError } 1300010 - The operation is not supported in full-screen mode.
393961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
394061847f8eSopenharmony_ci     * @atomicservice
394161847f8eSopenharmony_ci     * @since 12
394261847f8eSopenharmony_ci     */
394361847f8eSopenharmony_ci    moveWindowToAsync(x: number, y: number): Promise<void>;
394461847f8eSopenharmony_ci
394561847f8eSopenharmony_ci    /**
394661847f8eSopenharmony_ci     * Set the size of a window .
394761847f8eSopenharmony_ci     *
394861847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window.
394961847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window.
395061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
395161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
395261847f8eSopenharmony_ci     * @since 7
395361847f8eSopenharmony_ci     * @deprecated since 9
395461847f8eSopenharmony_ci     * @useinstead ohos.window.Window#resize
395561847f8eSopenharmony_ci     */
395661847f8eSopenharmony_ci    resetSize(width: number, height: number): Promise<void>;
395761847f8eSopenharmony_ci
395861847f8eSopenharmony_ci    /**
395961847f8eSopenharmony_ci     * Set the size of a window .
396061847f8eSopenharmony_ci     *
396161847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window.
396261847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window.
396361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
396461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
396561847f8eSopenharmony_ci     * @since 7
396661847f8eSopenharmony_ci     * @deprecated since 9
396761847f8eSopenharmony_ci     * @useinstead ohos.window.Window#resize
396861847f8eSopenharmony_ci     */
396961847f8eSopenharmony_ci    resetSize(width: number, height: number, callback: AsyncCallback<void>): void;
397061847f8eSopenharmony_ci
397161847f8eSopenharmony_ci    /**
397261847f8eSopenharmony_ci     * Set the size of a window .
397361847f8eSopenharmony_ci     *
397461847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window. The width should be greater than 0.
397561847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window. The height should be greater than 0.
397661847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
397761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
397861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
397961847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
398061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
398161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
398261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
398361847f8eSopenharmony_ci     * @since 9
398461847f8eSopenharmony_ci     */
398561847f8eSopenharmony_ci    /**
398661847f8eSopenharmony_ci     * Set the size of a window .
398761847f8eSopenharmony_ci     *
398861847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window. The width should be greater than 0.
398961847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window. The height should be greater than 0.
399061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
399161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
399261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
399361847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
399461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
399561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
399661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
399761847f8eSopenharmony_ci     * @crossplatform
399861847f8eSopenharmony_ci     * @since 10
399961847f8eSopenharmony_ci     */
400061847f8eSopenharmony_ci    /**
400161847f8eSopenharmony_ci     * Set the size of a window .
400261847f8eSopenharmony_ci     *
400361847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window. The width should be greater than 0.
400461847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window. The height should be greater than 0.
400561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
400661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
400761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
400861847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
400961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
401061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
401161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
401261847f8eSopenharmony_ci     * @crossplatform
401361847f8eSopenharmony_ci     * @atomicservice
401461847f8eSopenharmony_ci     * @since 11
401561847f8eSopenharmony_ci     */
401661847f8eSopenharmony_ci    resize(width: number, height: number): Promise<void>;
401761847f8eSopenharmony_ci
401861847f8eSopenharmony_ci    /**
401961847f8eSopenharmony_ci     * Set the size of a window .
402061847f8eSopenharmony_ci     *
402161847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window. The width should be greater than 0.
402261847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window. The height should be greater than 0.
402361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
402461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
402561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
402661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
402761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
402861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
402961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
403061847f8eSopenharmony_ci     * @since 9
403161847f8eSopenharmony_ci     */
403261847f8eSopenharmony_ci    /**
403361847f8eSopenharmony_ci     * Set the size of a window .
403461847f8eSopenharmony_ci     *
403561847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window. The width should be greater than 0.
403661847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window. The height should be greater than 0.
403761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
403861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
403961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
404061847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
404161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
404261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
404361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
404461847f8eSopenharmony_ci     * @crossplatform
404561847f8eSopenharmony_ci     * @since 10
404661847f8eSopenharmony_ci     */
404761847f8eSopenharmony_ci    /**
404861847f8eSopenharmony_ci     * Set the size of a window .
404961847f8eSopenharmony_ci     *
405061847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window. The width should be greater than 0.
405161847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window. The height should be greater than 0.
405261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
405361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
405461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
405561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
405661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
405761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
405861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
405961847f8eSopenharmony_ci     * @crossplatform
406061847f8eSopenharmony_ci     * @atomicservice
406161847f8eSopenharmony_ci     * @since 11
406261847f8eSopenharmony_ci     */
406361847f8eSopenharmony_ci    resize(width: number, height: number, callback: AsyncCallback<void>): void;
406461847f8eSopenharmony_ci
406561847f8eSopenharmony_ci    /**
406661847f8eSopenharmony_ci     * Set the size of a window.
406761847f8eSopenharmony_ci     *
406861847f8eSopenharmony_ci     * @param { number } width - Indicates the width of the window. The width should be greater than 0.
406961847f8eSopenharmony_ci     * @param { number } height - Indicates the height of the window. The height should be greater than 0.
407061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
407161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
407261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
407361847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
407461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
407561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
407661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
407761847f8eSopenharmony_ci     * @throws { BusinessError } 1300010 - The operation is not supported in full-screen mode.
407861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
407961847f8eSopenharmony_ci     * @atomicservice
408061847f8eSopenharmony_ci     * @since 12
408161847f8eSopenharmony_ci     */
408261847f8eSopenharmony_ci    resizeAsync(width: number, height: number): Promise<void>;
408361847f8eSopenharmony_ci
408461847f8eSopenharmony_ci    /**
408561847f8eSopenharmony_ci     * Set the type of a window.
408661847f8eSopenharmony_ci     *
408761847f8eSopenharmony_ci     * @param { WindowType } type - Indicate the type of a window.
408861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
408961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
409061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
409161847f8eSopenharmony_ci     * @since 7
409261847f8eSopenharmony_ci     * @deprecated since 9
409361847f8eSopenharmony_ci     */
409461847f8eSopenharmony_ci    setWindowType(type: WindowType): Promise<void>;
409561847f8eSopenharmony_ci
409661847f8eSopenharmony_ci    /**
409761847f8eSopenharmony_ci     * Set the type of a window.
409861847f8eSopenharmony_ci     *
409961847f8eSopenharmony_ci     * @param { WindowType } type - Indicate the type of a window.
410061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
410161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
410261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
410361847f8eSopenharmony_ci     * @since 7
410461847f8eSopenharmony_ci     * @deprecated since 9
410561847f8eSopenharmony_ci     */
410661847f8eSopenharmony_ci    setWindowType(type: WindowType, callback: AsyncCallback<void>): void;
410761847f8eSopenharmony_ci
410861847f8eSopenharmony_ci    /**
410961847f8eSopenharmony_ci     * Set the mode of a window.
411061847f8eSopenharmony_ci     *
411161847f8eSopenharmony_ci     * @param { WindowMode } mode - Indicate the mode of a window.
411261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
411361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
411461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
411561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
411661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
411761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
411861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
411961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
412061847f8eSopenharmony_ci     * @since 9
412161847f8eSopenharmony_ci     */
412261847f8eSopenharmony_ci    /**
412361847f8eSopenharmony_ci     * Set the mode of a window.
412461847f8eSopenharmony_ci     *
412561847f8eSopenharmony_ci     * @param { WindowMode } mode - Indicate the mode of a window.
412661847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
412761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
412861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
412961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
413061847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
413161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
413261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
413361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
413461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
413561847f8eSopenharmony_ci     * @since 12
413661847f8eSopenharmony_ci     */
413761847f8eSopenharmony_ci    setWindowMode(mode: WindowMode): Promise<void>;
413861847f8eSopenharmony_ci
413961847f8eSopenharmony_ci    /**
414061847f8eSopenharmony_ci     * Set the mode of a window.
414161847f8eSopenharmony_ci     *
414261847f8eSopenharmony_ci     * @param { WindowMode } mode - Indicate the mode of a window.
414361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
414461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
414561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
414661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
414761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
414861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
414961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
415061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
415161847f8eSopenharmony_ci     * @since 9
415261847f8eSopenharmony_ci     */
415361847f8eSopenharmony_ci    /**
415461847f8eSopenharmony_ci     * Set the mode of a window.
415561847f8eSopenharmony_ci     *
415661847f8eSopenharmony_ci     * @param { WindowMode } mode - Indicate the mode of a window.
415761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
415861847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
415961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
416061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
416161847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
416261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
416361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
416461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
416561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
416661847f8eSopenharmony_ci     * @since 12
416761847f8eSopenharmony_ci     */
416861847f8eSopenharmony_ci    setWindowMode(mode: WindowMode, callback: AsyncCallback<void>): void;
416961847f8eSopenharmony_ci
417061847f8eSopenharmony_ci    /**
417161847f8eSopenharmony_ci     * Get the properties of current window
417261847f8eSopenharmony_ci     *
417361847f8eSopenharmony_ci     * @param { AsyncCallback<WindowProperties> } callback - Callback used to return the window properties.
417461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
417561847f8eSopenharmony_ci     * @since 6
417661847f8eSopenharmony_ci     * @deprecated since 9
417761847f8eSopenharmony_ci     * @useinstead ohos.window.Window#getWindowProperties
417861847f8eSopenharmony_ci     */
417961847f8eSopenharmony_ci    getProperties(callback: AsyncCallback<WindowProperties>): void;
418061847f8eSopenharmony_ci
418161847f8eSopenharmony_ci    /**
418261847f8eSopenharmony_ci     * Get the properties of current window
418361847f8eSopenharmony_ci     *
418461847f8eSopenharmony_ci     * @returns { Promise<WindowProperties> } Promise used to return the window properties.
418561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
418661847f8eSopenharmony_ci     * @since 6
418761847f8eSopenharmony_ci     * @deprecated since 9
418861847f8eSopenharmony_ci     * @useinstead ohos.window.Window#getWindowProperties
418961847f8eSopenharmony_ci     */
419061847f8eSopenharmony_ci    getProperties(): Promise<WindowProperties>;
419161847f8eSopenharmony_ci
419261847f8eSopenharmony_ci    /**
419361847f8eSopenharmony_ci     * Get the properties of current window
419461847f8eSopenharmony_ci     *
419561847f8eSopenharmony_ci     * @returns { WindowProperties } Return the window properties.
419661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
419761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
419861847f8eSopenharmony_ci     * @since 9
419961847f8eSopenharmony_ci     */
420061847f8eSopenharmony_ci    /**
420161847f8eSopenharmony_ci     * Get the properties of current window
420261847f8eSopenharmony_ci     *
420361847f8eSopenharmony_ci     * @returns { WindowProperties } Return the window properties.
420461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
420561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
420661847f8eSopenharmony_ci     * @crossplatform
420761847f8eSopenharmony_ci     * @since 10
420861847f8eSopenharmony_ci     */
420961847f8eSopenharmony_ci    /**
421061847f8eSopenharmony_ci     * Get the properties of current window
421161847f8eSopenharmony_ci     *
421261847f8eSopenharmony_ci     * @returns { WindowProperties } Return the window properties.
421361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
421461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
421561847f8eSopenharmony_ci     * @crossplatform
421661847f8eSopenharmony_ci     * @atomicservice
421761847f8eSopenharmony_ci     * @since 11
421861847f8eSopenharmony_ci     */
421961847f8eSopenharmony_ci    getWindowProperties(): WindowProperties;
422061847f8eSopenharmony_ci
422161847f8eSopenharmony_ci    /**
422261847f8eSopenharmony_ci     * Get the avoid area
422361847f8eSopenharmony_ci     *
422461847f8eSopenharmony_ci     * @param { AvoidAreaType } type - Type of the area
422561847f8eSopenharmony_ci     * @param { AsyncCallback<AvoidArea> } callback - Callback used to return the area.
422661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
422761847f8eSopenharmony_ci     * @since 7
422861847f8eSopenharmony_ci     * @deprecated since 9
422961847f8eSopenharmony_ci     * @useinstead ohos.window.Window#getWindowAvoidArea
423061847f8eSopenharmony_ci     */
423161847f8eSopenharmony_ci    getAvoidArea(type: AvoidAreaType, callback: AsyncCallback<AvoidArea>): void;
423261847f8eSopenharmony_ci
423361847f8eSopenharmony_ci    /**
423461847f8eSopenharmony_ci     * Get the avoid area
423561847f8eSopenharmony_ci     *
423661847f8eSopenharmony_ci     * @param { AvoidAreaType } type - Type of the area
423761847f8eSopenharmony_ci     * @returns { Promise<AvoidArea> } Area where the window cannot be displayed.
423861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
423961847f8eSopenharmony_ci     * @since 7
424061847f8eSopenharmony_ci     * @deprecated since 9
424161847f8eSopenharmony_ci     * @useinstead ohos.window.Window#getWindowAvoidArea
424261847f8eSopenharmony_ci     */
424361847f8eSopenharmony_ci    getAvoidArea(type: AvoidAreaType): Promise<AvoidArea>;
424461847f8eSopenharmony_ci
424561847f8eSopenharmony_ci    /**
424661847f8eSopenharmony_ci     * Get the avoid area
424761847f8eSopenharmony_ci     *
424861847f8eSopenharmony_ci     * @param { AvoidAreaType } type - Type of the area
424961847f8eSopenharmony_ci     * @returns { AvoidArea } Area where the window cannot be displayed.
425061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
425161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
425261847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
425361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
425461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
425561847f8eSopenharmony_ci     * @since 9
425661847f8eSopenharmony_ci     */
425761847f8eSopenharmony_ci    /**
425861847f8eSopenharmony_ci     * Get the avoid area
425961847f8eSopenharmony_ci     *
426061847f8eSopenharmony_ci     * @param { AvoidAreaType } type - Type of the area
426161847f8eSopenharmony_ci     * @returns { AvoidArea } Area where the window cannot be displayed.
426261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
426361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
426461847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
426561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
426661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
426761847f8eSopenharmony_ci     * @atomicservice
426861847f8eSopenharmony_ci     * @since 11
426961847f8eSopenharmony_ci     */
427061847f8eSopenharmony_ci    /**
427161847f8eSopenharmony_ci     * Get the avoid area
427261847f8eSopenharmony_ci     *
427361847f8eSopenharmony_ci     * @param { AvoidAreaType } type - Type of the area
427461847f8eSopenharmony_ci     * @returns { AvoidArea } Area where the window cannot be displayed.
427561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
427661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
427761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
427861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
427961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
428061847f8eSopenharmony_ci     * @crossplatform
428161847f8eSopenharmony_ci     * @atomicservice
428261847f8eSopenharmony_ci     * @since 12
428361847f8eSopenharmony_ci     */
428461847f8eSopenharmony_ci    getWindowAvoidArea(type: AvoidAreaType): AvoidArea;
428561847f8eSopenharmony_ci
428661847f8eSopenharmony_ci    /**
428761847f8eSopenharmony_ci     * Set the flag of the window is shown full screen
428861847f8eSopenharmony_ci     *
428961847f8eSopenharmony_ci     * @param { boolean } isFullScreen - The flag of the window is shown full screen
429061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
429161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
429261847f8eSopenharmony_ci     * @since 6
429361847f8eSopenharmony_ci     * @deprecated since 9
429461847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowSystemBarEnable
429561847f8eSopenharmony_ci     */
429661847f8eSopenharmony_ci    setFullScreen(isFullScreen: boolean, callback: AsyncCallback<void>): void;
429761847f8eSopenharmony_ci
429861847f8eSopenharmony_ci    /**
429961847f8eSopenharmony_ci     * Set the flag of the window is shown full screen
430061847f8eSopenharmony_ci     *
430161847f8eSopenharmony_ci     * @param { boolean } isFullScreen - The flag of the window is shown full screen
430261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
430361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
430461847f8eSopenharmony_ci     * @since 6
430561847f8eSopenharmony_ci     * @deprecated since 9
430661847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowSystemBarEnable
430761847f8eSopenharmony_ci     */
430861847f8eSopenharmony_ci    setFullScreen(isFullScreen: boolean): Promise<void>;
430961847f8eSopenharmony_ci
431061847f8eSopenharmony_ci    /**
431161847f8eSopenharmony_ci     * Set the property of the window can layout in full screen
431261847f8eSopenharmony_ci     *
431361847f8eSopenharmony_ci     * @param { boolean } isLayoutFullScreen - The window can layout in full screen
431461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
431561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
431661847f8eSopenharmony_ci     * @since 7
431761847f8eSopenharmony_ci     * @deprecated since 9
431861847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowLayoutFullScreen
431961847f8eSopenharmony_ci     */
432061847f8eSopenharmony_ci    setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback<void>): void;
432161847f8eSopenharmony_ci
432261847f8eSopenharmony_ci    /**
432361847f8eSopenharmony_ci     * Set the property of the window can layout in full screen
432461847f8eSopenharmony_ci     *
432561847f8eSopenharmony_ci     * @param { boolean } isLayoutFullScreen - The window can layout in full screen
432661847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
432761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
432861847f8eSopenharmony_ci     * @since 7
432961847f8eSopenharmony_ci     * @deprecated since 9
433061847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowLayoutFullScreen
433161847f8eSopenharmony_ci     */
433261847f8eSopenharmony_ci    setLayoutFullScreen(isLayoutFullScreen: boolean): Promise<void>;
433361847f8eSopenharmony_ci
433461847f8eSopenharmony_ci    /**
433561847f8eSopenharmony_ci     * Set the property of the window can layout in full screen
433661847f8eSopenharmony_ci     *
433761847f8eSopenharmony_ci     * @param { boolean } isLayoutFullScreen - The window can layout in full screen
433861847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
433961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
434061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
434161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
434261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
434361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
434461847f8eSopenharmony_ci     * @since 9
434561847f8eSopenharmony_ci     */
434661847f8eSopenharmony_ci    /**
434761847f8eSopenharmony_ci     * Set the property of the window can layout in full screen
434861847f8eSopenharmony_ci     *
434961847f8eSopenharmony_ci     * @param { boolean } isLayoutFullScreen - The window can layout in full screen
435061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
435161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
435261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
435361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
435461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
435561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
435661847f8eSopenharmony_ci     * @crossplatform
435761847f8eSopenharmony_ci     * @atomicservice
435861847f8eSopenharmony_ci     * @since 12
435961847f8eSopenharmony_ci     * @deprecated since 12
436061847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowLayoutFullScreen
436161847f8eSopenharmony_ci     */
436261847f8eSopenharmony_ci    setWindowLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback<void>): void;
436361847f8eSopenharmony_ci
436461847f8eSopenharmony_ci    /**
436561847f8eSopenharmony_ci     * Set the property of the window can layout in full screen
436661847f8eSopenharmony_ci     *
436761847f8eSopenharmony_ci     * @param { boolean } isLayoutFullScreen - The window can layout in full screen
436861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
436961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
437061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
437161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
437261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
437361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
437461847f8eSopenharmony_ci     * @since 9
437561847f8eSopenharmony_ci     */
437661847f8eSopenharmony_ci    /**
437761847f8eSopenharmony_ci     * Set the property of the window can layout in full screen
437861847f8eSopenharmony_ci     *
437961847f8eSopenharmony_ci     * @param { boolean } isLayoutFullScreen - The window can layout in full screen
438061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
438161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
438261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
438361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
438461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
438561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
438661847f8eSopenharmony_ci     * @crossplatform
438761847f8eSopenharmony_ci     * @atomicservice
438861847f8eSopenharmony_ci     * @since 12
438961847f8eSopenharmony_ci     */
439061847f8eSopenharmony_ci    setWindowLayoutFullScreen(isLayoutFullScreen: boolean): Promise<void>;
439161847f8eSopenharmony_ci
439261847f8eSopenharmony_ci    /**
439361847f8eSopenharmony_ci     * Set the system bar to have visible.
439461847f8eSopenharmony_ci     *
439561847f8eSopenharmony_ci     * @param { Array<'status' | 'navigation'> } names - The set of system bar
439661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
439761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
439861847f8eSopenharmony_ci     * @since 7
439961847f8eSopenharmony_ci     * @deprecated since 9
440061847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowSystemBarEnable
440161847f8eSopenharmony_ci     */
440261847f8eSopenharmony_ci    setSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncCallback<void>): void;
440361847f8eSopenharmony_ci
440461847f8eSopenharmony_ci    /**
440561847f8eSopenharmony_ci     * Set the system bar to have visible.
440661847f8eSopenharmony_ci     *
440761847f8eSopenharmony_ci     * @param { Array<'status' | 'navigation'> } names - The set of system bar
440861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
440961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
441061847f8eSopenharmony_ci     * @since 7
441161847f8eSopenharmony_ci     * @deprecated since 9
441261847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowSystemBarEnable
441361847f8eSopenharmony_ci     */
441461847f8eSopenharmony_ci    setSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void>;
441561847f8eSopenharmony_ci
441661847f8eSopenharmony_ci    /**
441761847f8eSopenharmony_ci     * Set the system bar to have visible.
441861847f8eSopenharmony_ci     *
441961847f8eSopenharmony_ci     * @param { Array<'status' | 'navigation'> } names - The set of system bar
442061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
442161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
442261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
442361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
442461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
442561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
442661847f8eSopenharmony_ci     * @since 9
442761847f8eSopenharmony_ci     */
442861847f8eSopenharmony_ci    /**
442961847f8eSopenharmony_ci     * Set the system bar to have visible.
443061847f8eSopenharmony_ci     *
443161847f8eSopenharmony_ci     * @param { Array<'status' | 'navigation'> } names - The set of system bar
443261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
443361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
443461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
443561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
443661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
443761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
443861847f8eSopenharmony_ci     * @crossplatform
443961847f8eSopenharmony_ci     * @since 10
444061847f8eSopenharmony_ci     */
444161847f8eSopenharmony_ci    /**
444261847f8eSopenharmony_ci     * Set the system bar to have visible.
444361847f8eSopenharmony_ci     *
444461847f8eSopenharmony_ci     * @param { Array<'status' | 'navigation'> } names - The set of system bar
444561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
444661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1.Mandatory parameters are left unspecified;
444761847f8eSopenharmony_ci     *                                                                  2.Incorrect parameter types.
444861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
444961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
445061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
445161847f8eSopenharmony_ci     * @crossplatform
445261847f8eSopenharmony_ci     * @atomicservice
445361847f8eSopenharmony_ci     * @since 12
445461847f8eSopenharmony_ci     * @deprecated since 12
445561847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowSystemBarEnable
445661847f8eSopenharmony_ci     */
445761847f8eSopenharmony_ci    setWindowSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncCallback<void>): void;
445861847f8eSopenharmony_ci
445961847f8eSopenharmony_ci    /**
446061847f8eSopenharmony_ci     * Set the system bar to have visible.
446161847f8eSopenharmony_ci     *
446261847f8eSopenharmony_ci     * @param { Array<'status' | 'navigation'> } names - The set of system bar
446361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
446461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
446561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
446661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
446761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
446861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
446961847f8eSopenharmony_ci     * @since 9
447061847f8eSopenharmony_ci     */
447161847f8eSopenharmony_ci    /**
447261847f8eSopenharmony_ci     * Set the system bar to have visible.
447361847f8eSopenharmony_ci     *
447461847f8eSopenharmony_ci     * @param { Array<'status' | 'navigation'> } names - The set of system bar
447561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
447661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
447761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
447861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
447961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
448061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
448161847f8eSopenharmony_ci     * @crossplatform
448261847f8eSopenharmony_ci     * @since 10
448361847f8eSopenharmony_ci     */
448461847f8eSopenharmony_ci    /**
448561847f8eSopenharmony_ci     * Set the system bar to have visible.
448661847f8eSopenharmony_ci     *
448761847f8eSopenharmony_ci     * @param { Array<'status' | 'navigation'> } names - The set of system bar
448861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
448961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1.Mandatory parameters are left unspecified;
449061847f8eSopenharmony_ci     *                                                                  2.Incorrect parameter types.
449161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
449261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
449361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
449461847f8eSopenharmony_ci     * @crossplatform
449561847f8eSopenharmony_ci     * @atomicservice
449661847f8eSopenharmony_ci     * @since 12
449761847f8eSopenharmony_ci     */
449861847f8eSopenharmony_ci    setWindowSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void>;
449961847f8eSopenharmony_ci
450061847f8eSopenharmony_ci    /**
450161847f8eSopenharmony_ci     * Set specific system bar to have visible.
450261847f8eSopenharmony_ci     *
450361847f8eSopenharmony_ci     * @param {SpecificSystemBar} name - the set of system bar
450461847f8eSopenharmony_ci     * @param {boolean} enable - Show specific system bar if true, or hide specific system bar if false.
450561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
450661847f8eSopenharmony_ci     * @throws {BusinessError} 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
450761847f8eSopenharmony_ci     *                                                                2. Incorrect parameter types.
450861847f8eSopenharmony_ci     * @throws {BusinessError} 1300002 - This window state is abnormal.
450961847f8eSopenharmony_ci     * @throws {BusinessError} 1300003 - This window manager service works abnormally.
451061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
451161847f8eSopenharmony_ci     * @atomicservice
451261847f8eSopenharmony_ci     * @since 11
451361847f8eSopenharmony_ci     */
451461847f8eSopenharmony_ci    /**
451561847f8eSopenharmony_ci     * Set specific system bar to have visible.
451661847f8eSopenharmony_ci     *
451761847f8eSopenharmony_ci     * @param {SpecificSystemBar} name - the set of system bar
451861847f8eSopenharmony_ci     * @param {boolean} enable - Show specific system bar if true, or hide specific system bar if false.
451961847f8eSopenharmony_ci     * @param {boolean} enableAnimation - Whether using animation during this setting, using animation if true or not using animation if false.
452061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
452161847f8eSopenharmony_ci     * @throws {BusinessError} 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
452261847f8eSopenharmony_ci     *                                                                2. Incorrect parameter types.
452361847f8eSopenharmony_ci     * @throws {BusinessError} 1300002 - This window state is abnormal.
452461847f8eSopenharmony_ci     * @throws {BusinessError} 1300003 - This window manager service works abnormally.
452561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
452661847f8eSopenharmony_ci     * @crossplatform
452761847f8eSopenharmony_ci     * @atomicservice
452861847f8eSopenharmony_ci     * @since 12
452961847f8eSopenharmony_ci     */
453061847f8eSopenharmony_ci    setSpecificSystemBarEnabled(name: SpecificSystemBar, enable: boolean, enableAnimation?: boolean): Promise<void>;
453161847f8eSopenharmony_ci
453261847f8eSopenharmony_ci    /**
453361847f8eSopenharmony_ci     * Set the properties of system bar
453461847f8eSopenharmony_ci     *
453561847f8eSopenharmony_ci     * @param { SystemBarProperties } systemBarProperties - The properties of system bar
453661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
453761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
453861847f8eSopenharmony_ci     * @since 6
453961847f8eSopenharmony_ci     * @deprecated since 9
454061847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowSystemBarProperties
454161847f8eSopenharmony_ci     */
454261847f8eSopenharmony_ci    setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback<void>): void;
454361847f8eSopenharmony_ci
454461847f8eSopenharmony_ci    /**
454561847f8eSopenharmony_ci     * Set the properties of system bar
454661847f8eSopenharmony_ci     *
454761847f8eSopenharmony_ci     * @param { SystemBarProperties } systemBarProperties - The properties of system bar
454861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
454961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
455061847f8eSopenharmony_ci     * @since 6
455161847f8eSopenharmony_ci     * @deprecated since 9
455261847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowSystemBarProperties
455361847f8eSopenharmony_ci     */
455461847f8eSopenharmony_ci    setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise<void>;
455561847f8eSopenharmony_ci
455661847f8eSopenharmony_ci    /**
455761847f8eSopenharmony_ci     * Set the properties of system bar
455861847f8eSopenharmony_ci     *
455961847f8eSopenharmony_ci     * @param { SystemBarProperties } systemBarProperties - The properties of system bar
456061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
456161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
456261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
456361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
456461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
456561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
456661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
456761847f8eSopenharmony_ci     * @since 9
456861847f8eSopenharmony_ci     */
456961847f8eSopenharmony_ci    /**
457061847f8eSopenharmony_ci     * Set the properties of system bar
457161847f8eSopenharmony_ci     *
457261847f8eSopenharmony_ci     * @param { SystemBarProperties } systemBarProperties - The properties of system bar
457361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
457461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
457561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
457661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
457761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
457861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
457961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
458061847f8eSopenharmony_ci     * @atomicservice
458161847f8eSopenharmony_ci     * @since 12
458261847f8eSopenharmony_ci     * @deprecated since 12
458361847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowSystemBarProperties
458461847f8eSopenharmony_ci     */
458561847f8eSopenharmony_ci    setWindowSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback<void>): void;
458661847f8eSopenharmony_ci
458761847f8eSopenharmony_ci    /**
458861847f8eSopenharmony_ci     * Set the properties of system bar
458961847f8eSopenharmony_ci     *
459061847f8eSopenharmony_ci     * @param { SystemBarProperties } systemBarProperties - The properties of system bar
459161847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
459261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
459361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
459461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
459561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
459661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
459761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
459861847f8eSopenharmony_ci     * @since 9
459961847f8eSopenharmony_ci     */
460061847f8eSopenharmony_ci    /**
460161847f8eSopenharmony_ci     * Set the properties of system bar
460261847f8eSopenharmony_ci     *
460361847f8eSopenharmony_ci     * @param { SystemBarProperties } systemBarProperties - The properties of system bar
460461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
460561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
460661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
460761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
460861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
460961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
461061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
461161847f8eSopenharmony_ci     * @atomicservice
461261847f8eSopenharmony_ci     * @since 12
461361847f8eSopenharmony_ci     */
461461847f8eSopenharmony_ci    setWindowSystemBarProperties(systemBarProperties: SystemBarProperties): Promise<void>;
461561847f8eSopenharmony_ci
461661847f8eSopenharmony_ci    /**
461761847f8eSopenharmony_ci     * Get the properties of system bar
461861847f8eSopenharmony_ci     *
461961847f8eSopenharmony_ci     * @returns { SystemBarProperties } Return system bar properties.
462061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
462161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
462261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
462361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
462461847f8eSopenharmony_ci     * @atomicservice
462561847f8eSopenharmony_ci     * @since 12
462661847f8eSopenharmony_ci     */
462761847f8eSopenharmony_ci    getWindowSystemBarProperties(): SystemBarProperties;
462861847f8eSopenharmony_ci
462961847f8eSopenharmony_ci    /**
463061847f8eSopenharmony_ci     * Set the preferred orientation config of the window
463161847f8eSopenharmony_ci     *
463261847f8eSopenharmony_ci     * @param { Orientation } orientation - The orientation config of the window
463361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
463461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
463561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
463661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
463761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
463861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
463961847f8eSopenharmony_ci     * @since 9
464061847f8eSopenharmony_ci     */
464161847f8eSopenharmony_ci    /**
464261847f8eSopenharmony_ci     * Set the preferred orientation config of the window
464361847f8eSopenharmony_ci     *
464461847f8eSopenharmony_ci     * @param { Orientation } orientation - The orientation config of the window
464561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
464661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
464761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
464861847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
464961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
465061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
465161847f8eSopenharmony_ci     * @crossplatform
465261847f8eSopenharmony_ci     * @since 10
465361847f8eSopenharmony_ci     */
465461847f8eSopenharmony_ci    /**
465561847f8eSopenharmony_ci     * Set the preferred orientation config of the window
465661847f8eSopenharmony_ci     *
465761847f8eSopenharmony_ci     * @param { Orientation } orientation - The orientation config of the window
465861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
465961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
466061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
466161847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
466261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
466361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
466461847f8eSopenharmony_ci     * @crossplatform
466561847f8eSopenharmony_ci     * @atomicservice
466661847f8eSopenharmony_ci     * @since 11
466761847f8eSopenharmony_ci     */
466861847f8eSopenharmony_ci    setPreferredOrientation(orientation: Orientation): Promise<void>;
466961847f8eSopenharmony_ci
467061847f8eSopenharmony_ci    /**
467161847f8eSopenharmony_ci     * Set the preferred orientation config of the window
467261847f8eSopenharmony_ci     *
467361847f8eSopenharmony_ci     * @param { Orientation } orientation - The orientation config of the window
467461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
467561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
467661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
467761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
467861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
467961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
468061847f8eSopenharmony_ci     * @since 9
468161847f8eSopenharmony_ci     */
468261847f8eSopenharmony_ci    /**
468361847f8eSopenharmony_ci     * Set the preferred orientation config of the window
468461847f8eSopenharmony_ci     *
468561847f8eSopenharmony_ci     * @param { Orientation } orientation - The orientation config of the window
468661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
468761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
468861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
468961847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
469061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
469161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
469261847f8eSopenharmony_ci     * @crossplatform
469361847f8eSopenharmony_ci     * @since 10
469461847f8eSopenharmony_ci     */
469561847f8eSopenharmony_ci    /**
469661847f8eSopenharmony_ci     * Set the preferred orientation config of the window
469761847f8eSopenharmony_ci     *
469861847f8eSopenharmony_ci     * @param { Orientation } orientation - The orientation config of the window
469961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
470061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
470161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
470261847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
470361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
470461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
470561847f8eSopenharmony_ci     * @crossplatform
470661847f8eSopenharmony_ci     * @atomicservice
470761847f8eSopenharmony_ci     * @since 11
470861847f8eSopenharmony_ci     */
470961847f8eSopenharmony_ci    setPreferredOrientation(orientation: Orientation, callback: AsyncCallback<void>): void;
471061847f8eSopenharmony_ci
471161847f8eSopenharmony_ci    /**
471261847f8eSopenharmony_ci     * Get the preferred orientation config of the window
471361847f8eSopenharmony_ci     *
471461847f8eSopenharmony_ci     * @returns { Orientation } orientation - The orientation config of the window
471561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
471661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
471761847f8eSopenharmony_ci     * @atomicservice
471861847f8eSopenharmony_ci     * @since 12
471961847f8eSopenharmony_ci     */
472061847f8eSopenharmony_ci    getPreferredOrientation(): Orientation;
472161847f8eSopenharmony_ci
472261847f8eSopenharmony_ci    /**
472361847f8eSopenharmony_ci     * Loads content
472461847f8eSopenharmony_ci     *
472561847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
472661847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window
472761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
472861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
472961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
473061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
473161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
473261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
473361847f8eSopenharmony_ci     * @StageModelOnly
473461847f8eSopenharmony_ci     * @since 9
473561847f8eSopenharmony_ci     */
473661847f8eSopenharmony_ci    /**
473761847f8eSopenharmony_ci     * Loads content
473861847f8eSopenharmony_ci     *
473961847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
474061847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window
474161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
474261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
474361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
474461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
474561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
474661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
474761847f8eSopenharmony_ci     * @StageModelOnly
474861847f8eSopenharmony_ci     * @crossplatform
474961847f8eSopenharmony_ci     * @since 10
475061847f8eSopenharmony_ci     */
475161847f8eSopenharmony_ci    /**
475261847f8eSopenharmony_ci     * Loads content
475361847f8eSopenharmony_ci     *
475461847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
475561847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window
475661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
475761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
475861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
475961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
476061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
476161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
476261847f8eSopenharmony_ci     * @StageModelOnly
476361847f8eSopenharmony_ci     * @crossplatform
476461847f8eSopenharmony_ci     * @atomicservice
476561847f8eSopenharmony_ci     * @since 11
476661847f8eSopenharmony_ci     */
476761847f8eSopenharmony_ci    loadContent(path: string, storage: LocalStorage, callback: AsyncCallback<void>): void;
476861847f8eSopenharmony_ci
476961847f8eSopenharmony_ci    /**
477061847f8eSopenharmony_ci     * Loads content
477161847f8eSopenharmony_ci     *
477261847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
477361847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window
477461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
477561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
477661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
477761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
477861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
477961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
478061847f8eSopenharmony_ci     * @StageModelOnly
478161847f8eSopenharmony_ci     * @since 9
478261847f8eSopenharmony_ci     */
478361847f8eSopenharmony_ci    /**
478461847f8eSopenharmony_ci     * Loads content
478561847f8eSopenharmony_ci     *
478661847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
478761847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window
478861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
478961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
479061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
479161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
479261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
479361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
479461847f8eSopenharmony_ci     * @StageModelOnly
479561847f8eSopenharmony_ci     * @crossplatform
479661847f8eSopenharmony_ci     * @since 10
479761847f8eSopenharmony_ci     */
479861847f8eSopenharmony_ci    /**
479961847f8eSopenharmony_ci     * Loads content
480061847f8eSopenharmony_ci     *
480161847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
480261847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window
480361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
480461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
480561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
480661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
480761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
480861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
480961847f8eSopenharmony_ci     * @StageModelOnly
481061847f8eSopenharmony_ci     * @crossplatform
481161847f8eSopenharmony_ci     * @atomicservice
481261847f8eSopenharmony_ci     * @since 11
481361847f8eSopenharmony_ci     */
481461847f8eSopenharmony_ci    loadContent(path: string, storage: LocalStorage): Promise<void>;
481561847f8eSopenharmony_ci
481661847f8eSopenharmony_ci    /**
481761847f8eSopenharmony_ci     * Loads content
481861847f8eSopenharmony_ci     *
481961847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
482061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
482161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
482261847f8eSopenharmony_ci     * @since 7
482361847f8eSopenharmony_ci     * @deprecated since 9
482461847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setUIContent
482561847f8eSopenharmony_ci     */
482661847f8eSopenharmony_ci    loadContent(path: string, callback: AsyncCallback<void>): void;
482761847f8eSopenharmony_ci
482861847f8eSopenharmony_ci    /**
482961847f8eSopenharmony_ci     * Loads content
483061847f8eSopenharmony_ci     *
483161847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
483261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
483361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
483461847f8eSopenharmony_ci     * @since 7
483561847f8eSopenharmony_ci     * @deprecated since 9
483661847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setUIContent
483761847f8eSopenharmony_ci     */
483861847f8eSopenharmony_ci    loadContent(path: string): Promise<void>;
483961847f8eSopenharmony_ci
484061847f8eSopenharmony_ci    /**
484161847f8eSopenharmony_ci     * Get the UIContext associate with the window content.
484261847f8eSopenharmony_ci     *
484361847f8eSopenharmony_ci     * @returns { UIContext } the object of UIContext.
484461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 
484561847f8eSopenharmony_ci     *                                                                   2. Incorrect parameter types; 
484661847f8eSopenharmony_ci     *                                                                   3. Parameter verification failed.
484761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
484861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
484961847f8eSopenharmony_ci     * @stagemodelonly
485061847f8eSopenharmony_ci     * @crossplatform
485161847f8eSopenharmony_ci     * @since 10
485261847f8eSopenharmony_ci     */
485361847f8eSopenharmony_ci    /**
485461847f8eSopenharmony_ci     * Get the UIContext associate with the window content.
485561847f8eSopenharmony_ci     *
485661847f8eSopenharmony_ci     * @returns { UIContext } the object of UIContext.
485761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
485861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
485961847f8eSopenharmony_ci     * @stagemodelonly
486061847f8eSopenharmony_ci     * @crossplatform
486161847f8eSopenharmony_ci     * @atomicservice
486261847f8eSopenharmony_ci     * @since 11
486361847f8eSopenharmony_ci     */
486461847f8eSopenharmony_ci    getUIContext() : UIContext;
486561847f8eSopenharmony_ci
486661847f8eSopenharmony_ci    /**
486761847f8eSopenharmony_ci     * Loads content
486861847f8eSopenharmony_ci     *
486961847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
487061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
487161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
487261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
487361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
487461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
487561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
487661847f8eSopenharmony_ci     * @since 9
487761847f8eSopenharmony_ci     */
487861847f8eSopenharmony_ci    /**
487961847f8eSopenharmony_ci     * Loads content
488061847f8eSopenharmony_ci     *
488161847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
488261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
488361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
488461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
488561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
488661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
488761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
488861847f8eSopenharmony_ci     * @crossplatform
488961847f8eSopenharmony_ci     * @since 10
489061847f8eSopenharmony_ci     */
489161847f8eSopenharmony_ci    /**
489261847f8eSopenharmony_ci     * Loads content
489361847f8eSopenharmony_ci     *
489461847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
489561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
489661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
489761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
489861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
489961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
490061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
490161847f8eSopenharmony_ci     * @crossplatform
490261847f8eSopenharmony_ci     * @atomicservice
490361847f8eSopenharmony_ci     * @since 11
490461847f8eSopenharmony_ci     */
490561847f8eSopenharmony_ci    setUIContent(path: string, callback: AsyncCallback<void>): void;
490661847f8eSopenharmony_ci
490761847f8eSopenharmony_ci    /**
490861847f8eSopenharmony_ci     * Loads content
490961847f8eSopenharmony_ci     *
491061847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
491161847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
491261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
491361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
491461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
491561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
491661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
491761847f8eSopenharmony_ci     * @since 9
491861847f8eSopenharmony_ci     */
491961847f8eSopenharmony_ci    /**
492061847f8eSopenharmony_ci     * Loads content
492161847f8eSopenharmony_ci     *
492261847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
492361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
492461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
492561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
492661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
492761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
492861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
492961847f8eSopenharmony_ci     * @crossplatform
493061847f8eSopenharmony_ci     * @since 10
493161847f8eSopenharmony_ci     */
493261847f8eSopenharmony_ci    /**
493361847f8eSopenharmony_ci     * Loads content
493461847f8eSopenharmony_ci     *
493561847f8eSopenharmony_ci     * @param { string } path - Path of the page to which the content will be loaded
493661847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
493761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
493861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
493961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
494061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
494161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
494261847f8eSopenharmony_ci     * @crossplatform
494361847f8eSopenharmony_ci     * @atomicservice
494461847f8eSopenharmony_ci     * @since 11
494561847f8eSopenharmony_ci     */
494661847f8eSopenharmony_ci    setUIContent(path: string): Promise<void>;
494761847f8eSopenharmony_ci
494861847f8eSopenharmony_ci    /**
494961847f8eSopenharmony_ci     * Loads content by named router
495061847f8eSopenharmony_ci     *
495161847f8eSopenharmony_ci     * @param { string } name - name of the page to which the content will be loaded.
495261847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window.
495361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
495461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
495561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
495661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
495761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
495861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
495961847f8eSopenharmony_ci     * @stagemodelonly
496061847f8eSopenharmony_ci     * @crossplatform
496161847f8eSopenharmony_ci     * @atomicservice
496261847f8eSopenharmony_ci     * @since 11
496361847f8eSopenharmony_ci     */
496461847f8eSopenharmony_ci    loadContentByName(name: string, storage: LocalStorage, callback: AsyncCallback<void>): void;
496561847f8eSopenharmony_ci
496661847f8eSopenharmony_ci    /**
496761847f8eSopenharmony_ci     * Loads content by named router
496861847f8eSopenharmony_ci     *
496961847f8eSopenharmony_ci     * @param { string } name - name of the page to which the content will be loaded.
497061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
497161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
497261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
497361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
497461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
497561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
497661847f8eSopenharmony_ci     * @stagemodelonly
497761847f8eSopenharmony_ci     * @crossplatform
497861847f8eSopenharmony_ci     * @atomicservice
497961847f8eSopenharmony_ci     * @since 11
498061847f8eSopenharmony_ci     */
498161847f8eSopenharmony_ci    loadContentByName(name: string, callback: AsyncCallback<void>): void;
498261847f8eSopenharmony_ci
498361847f8eSopenharmony_ci    /**
498461847f8eSopenharmony_ci     * Loads content by named router
498561847f8eSopenharmony_ci     *
498661847f8eSopenharmony_ci     * @param { string } name - name of the page to which the content will be loaded.
498761847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window.
498861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
498961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
499061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
499161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
499261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
499361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
499461847f8eSopenharmony_ci     * @stagemodelonly
499561847f8eSopenharmony_ci     * @crossplatform
499661847f8eSopenharmony_ci     * @atomicservice
499761847f8eSopenharmony_ci     * @since 11
499861847f8eSopenharmony_ci     */
499961847f8eSopenharmony_ci    loadContentByName(name: string, storage?: LocalStorage): Promise<void>;
500061847f8eSopenharmony_ci
500161847f8eSopenharmony_ci    /**
500261847f8eSopenharmony_ci     * Checks whether the window is displayed
500361847f8eSopenharmony_ci     *
500461847f8eSopenharmony_ci     * @param { AsyncCallback<boolean> } callback - Callback used to return the result.
500561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
500661847f8eSopenharmony_ci     * @since 7
500761847f8eSopenharmony_ci     * @deprecated since 9
500861847f8eSopenharmony_ci     * @useinstead ohos.window.Window#isWindowShowing
500961847f8eSopenharmony_ci     */
501061847f8eSopenharmony_ci    isShowing(callback: AsyncCallback<boolean>): void;
501161847f8eSopenharmony_ci
501261847f8eSopenharmony_ci    /**
501361847f8eSopenharmony_ci     * Checks whether the window is displayed
501461847f8eSopenharmony_ci     *
501561847f8eSopenharmony_ci     * @returns { Promise<boolean> } Whether the window is displayed. The value true means that the window is displayed, and false means the opposite.
501661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
501761847f8eSopenharmony_ci     * @since 7
501861847f8eSopenharmony_ci     * @deprecated since 9
501961847f8eSopenharmony_ci     * @useinstead ohos.window.Window#isWindowShowing
502061847f8eSopenharmony_ci     */
502161847f8eSopenharmony_ci    isShowing(): Promise<boolean>;
502261847f8eSopenharmony_ci
502361847f8eSopenharmony_ci    /**
502461847f8eSopenharmony_ci     * Checks whether the window is displayed
502561847f8eSopenharmony_ci     *
502661847f8eSopenharmony_ci     * @returns { boolean } Whether the window is displayed. The value true means that the window is displayed, and false means the opposite.
502761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
502861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
502961847f8eSopenharmony_ci     * @since 9
503061847f8eSopenharmony_ci     */
503161847f8eSopenharmony_ci    /**
503261847f8eSopenharmony_ci     * Checks whether the window is displayed
503361847f8eSopenharmony_ci     *
503461847f8eSopenharmony_ci     * @returns { boolean } Whether the window is displayed. The value true means that the window is displayed, and false means the opposite.
503561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
503661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
503761847f8eSopenharmony_ci     * @crossplatform
503861847f8eSopenharmony_ci     * @since 10
503961847f8eSopenharmony_ci     */
504061847f8eSopenharmony_ci    /**
504161847f8eSopenharmony_ci     * Checks whether the window is displayed
504261847f8eSopenharmony_ci     *
504361847f8eSopenharmony_ci     * @returns { boolean } Whether the window is displayed. The value true means that the window is displayed, and false means the opposite.
504461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
504561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
504661847f8eSopenharmony_ci     * @crossplatform
504761847f8eSopenharmony_ci     * @atomicservice
504861847f8eSopenharmony_ci     * @since 11
504961847f8eSopenharmony_ci     */
505061847f8eSopenharmony_ci    isWindowShowing(): boolean;
505161847f8eSopenharmony_ci
505261847f8eSopenharmony_ci    /**
505361847f8eSopenharmony_ci     * Register the callback of windowSizeChange
505461847f8eSopenharmony_ci     *
505561847f8eSopenharmony_ci     * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.
505661847f8eSopenharmony_ci     * @param { Callback<Size> } callback - Callback used to return the window size.
505761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
505861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
505961847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
506061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
506161847f8eSopenharmony_ci     * @since 7
506261847f8eSopenharmony_ci     */
506361847f8eSopenharmony_ci    /**
506461847f8eSopenharmony_ci     * Register the callback of windowSizeChange
506561847f8eSopenharmony_ci     *
506661847f8eSopenharmony_ci     * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.
506761847f8eSopenharmony_ci     * @param { Callback<Size> } callback - Callback used to return the window size.
506861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
506961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
507061847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
507161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
507261847f8eSopenharmony_ci     * @atomicservice
507361847f8eSopenharmony_ci     * @since 11
507461847f8eSopenharmony_ci     */
507561847f8eSopenharmony_ci    /**
507661847f8eSopenharmony_ci     * Register the callback of windowSizeChange
507761847f8eSopenharmony_ci     *
507861847f8eSopenharmony_ci     * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.
507961847f8eSopenharmony_ci     * @param { Callback<Size> } callback - Callback used to return the window size.
508061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
508161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
508261847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
508361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
508461847f8eSopenharmony_ci     * @crossplatform
508561847f8eSopenharmony_ci     * @atomicservice
508661847f8eSopenharmony_ci     * @since 12
508761847f8eSopenharmony_ci     */
508861847f8eSopenharmony_ci    on(type: 'windowSizeChange', callback: Callback<Size>): void;
508961847f8eSopenharmony_ci
509061847f8eSopenharmony_ci    /**
509161847f8eSopenharmony_ci     * Unregister the callback of windowSizeChange
509261847f8eSopenharmony_ci     *
509361847f8eSopenharmony_ci     * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.
509461847f8eSopenharmony_ci     * @param { Callback<Size> } callback - Callback used to return the window size.
509561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
509661847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
509761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
509861847f8eSopenharmony_ci     * @since 7
509961847f8eSopenharmony_ci     */
510061847f8eSopenharmony_ci    /**
510161847f8eSopenharmony_ci     * Unregister the callback of windowSizeChange
510261847f8eSopenharmony_ci     *
510361847f8eSopenharmony_ci     * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.
510461847f8eSopenharmony_ci     * @param { Callback<Size> } callback - Callback used to return the window size.
510561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
510661847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
510761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
510861847f8eSopenharmony_ci     * @atomicservice
510961847f8eSopenharmony_ci     * @since 11
511061847f8eSopenharmony_ci     */
511161847f8eSopenharmony_ci    /**
511261847f8eSopenharmony_ci     * Unregister the callback of windowSizeChange
511361847f8eSopenharmony_ci     *
511461847f8eSopenharmony_ci     * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.
511561847f8eSopenharmony_ci     * @param { Callback<Size> } callback - Callback used to return the window size.
511661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;
511761847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
511861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
511961847f8eSopenharmony_ci     * @crossplatform
512061847f8eSopenharmony_ci     * @atomicservice
512161847f8eSopenharmony_ci     * @since 12
512261847f8eSopenharmony_ci     */
512361847f8eSopenharmony_ci    off(type: 'windowSizeChange', callback?: Callback<Size>): void;
512461847f8eSopenharmony_ci
512561847f8eSopenharmony_ci    /**
512661847f8eSopenharmony_ci     * Register the callback of systemAvoidAreaChange
512761847f8eSopenharmony_ci     *
512861847f8eSopenharmony_ci     * @param { 'systemAvoidAreaChange' } type - The value is fixed at 'systemAvoidAreaChange', indicating the event of changes to the avoid area.
512961847f8eSopenharmony_ci     * @param { Callback<AvoidArea> } callback - Callback used to return the area.
513061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
513161847f8eSopenharmony_ci     * @since 7
513261847f8eSopenharmony_ci     * @deprecated since 9
513361847f8eSopenharmony_ci     * @useinstead ohos.window.Window#on_avoidAreaChange
513461847f8eSopenharmony_ci     */
513561847f8eSopenharmony_ci    on(type: 'systemAvoidAreaChange', callback: Callback<AvoidArea>): void;
513661847f8eSopenharmony_ci
513761847f8eSopenharmony_ci    /**
513861847f8eSopenharmony_ci     * Unregister the callback of systemAvoidAreaChange
513961847f8eSopenharmony_ci     *
514061847f8eSopenharmony_ci     * @param { 'systemAvoidAreaChange' } type - The value is fixed at 'systemAvoidAreaChange', indicating the event of changes to the avoid area.
514161847f8eSopenharmony_ci     * @param { Callback<AvoidArea> } callback - Callback used to return the area.
514261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
514361847f8eSopenharmony_ci     * @since 7
514461847f8eSopenharmony_ci     * @deprecated since 9
514561847f8eSopenharmony_ci     * @useinstead ohos.window.Window#off_avoidAreaChange
514661847f8eSopenharmony_ci     */
514761847f8eSopenharmony_ci    off(type: 'systemAvoidAreaChange', callback?: Callback<AvoidArea>): void;
514861847f8eSopenharmony_ci
514961847f8eSopenharmony_ci    /**
515061847f8eSopenharmony_ci     * Register the callback of avoidAreaChange
515161847f8eSopenharmony_ci     *
515261847f8eSopenharmony_ci     * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.
515361847f8eSopenharmony_ci     * @param { Callback<{ type: AvoidAreaType, area: AvoidArea }> } callback - Callback used to return the area.
515461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 
515561847f8eSopenharmony_ci     *                                                                   2. Incorrect parameter types; 
515661847f8eSopenharmony_ci     *                                                                   3. Parameter verification failed.
515761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
515861847f8eSopenharmony_ci     * @since 9
515961847f8eSopenharmony_ci     */
516061847f8eSopenharmony_ci    /**
516161847f8eSopenharmony_ci     * Register the callback of avoidAreaChange
516261847f8eSopenharmony_ci     *
516361847f8eSopenharmony_ci     * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.
516461847f8eSopenharmony_ci     * @param { Callback<{ type: AvoidAreaType, area: AvoidArea }> } callback - Callback used to return the area.
516561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 
516661847f8eSopenharmony_ci     *                                                                   2. Incorrect parameter types; 
516761847f8eSopenharmony_ci     *                                                                   3. Parameter verification failed.
516861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
516961847f8eSopenharmony_ci     * @atomicservice
517061847f8eSopenharmony_ci     * @since 11
517161847f8eSopenharmony_ci     */
517261847f8eSopenharmony_ci    /**
517361847f8eSopenharmony_ci     * Register the callback of avoidAreaChange
517461847f8eSopenharmony_ci     *
517561847f8eSopenharmony_ci     * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.
517661847f8eSopenharmony_ci     * @param { Callback<AvoidAreaOptions> } callback - Callback used to return the area.
517761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 
517861847f8eSopenharmony_ci     *                                                                   2. Incorrect parameter types; 
517961847f8eSopenharmony_ci     *                                                                   3. Parameter verification failed.
518061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
518161847f8eSopenharmony_ci     * @atomicservice
518261847f8eSopenharmony_ci     * @since 12
518361847f8eSopenharmony_ci     */
518461847f8eSopenharmony_ci    on(type: 'avoidAreaChange', callback: Callback<AvoidAreaOptions>): void;
518561847f8eSopenharmony_ci
518661847f8eSopenharmony_ci    /**
518761847f8eSopenharmony_ci     * Unregister the callback of avoidAreaChange
518861847f8eSopenharmony_ci     *
518961847f8eSopenharmony_ci     * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.
519061847f8eSopenharmony_ci     * @param { Callback<{ type: AvoidAreaType, area: AvoidArea }> } callback - Callback used to return the area.
519161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 
519261847f8eSopenharmony_ci     *                                                                   2. Parameter verification failed.  
519361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
519461847f8eSopenharmony_ci     * @since 9
519561847f8eSopenharmony_ci     */
519661847f8eSopenharmony_ci    /**
519761847f8eSopenharmony_ci     * Unregister the callback of avoidAreaChange
519861847f8eSopenharmony_ci     *
519961847f8eSopenharmony_ci     * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.
520061847f8eSopenharmony_ci     * @param { Callback<{ type: AvoidAreaType, area: AvoidArea }> } callback - Callback used to return the area.
520161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 
520261847f8eSopenharmony_ci     *                                                                   2. Parameter verification failed.  
520361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
520461847f8eSopenharmony_ci     * @atomicservice
520561847f8eSopenharmony_ci     * @since 11
520661847f8eSopenharmony_ci     */
520761847f8eSopenharmony_ci    /**
520861847f8eSopenharmony_ci     * Unregister the callback of avoidAreaChange
520961847f8eSopenharmony_ci     *
521061847f8eSopenharmony_ci     * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.
521161847f8eSopenharmony_ci     * @param { Callback<AvoidAreaOptions> } callback - Callback used to return the area.
521261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; 
521361847f8eSopenharmony_ci     *                                                                   2. Parameter verification failed.  
521461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
521561847f8eSopenharmony_ci     * @atomicservice
521661847f8eSopenharmony_ci     * @since 12
521761847f8eSopenharmony_ci     */
521861847f8eSopenharmony_ci    off(type: 'avoidAreaChange', callback?: Callback<AvoidAreaOptions>): void;
521961847f8eSopenharmony_ci
522061847f8eSopenharmony_ci    /**
522161847f8eSopenharmony_ci     * Register the callback of keyboardHeightChange
522261847f8eSopenharmony_ci     *
522361847f8eSopenharmony_ci     * @param { 'keyboardHeightChange' } type - The value is fixed at 'keyboardHeightChange', indicating the keyboard height change event.
522461847f8eSopenharmony_ci     * @param { Callback<number> } callback - Callback used to return the current keyboard height.
522561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
522661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
522761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
522861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
522961847f8eSopenharmony_ci     * @since 7
523061847f8eSopenharmony_ci     */
523161847f8eSopenharmony_ci    /**
523261847f8eSopenharmony_ci     * Register the callback of keyboardHeightChange
523361847f8eSopenharmony_ci     *
523461847f8eSopenharmony_ci     * @param { 'keyboardHeightChange' } type - The value is fixed at 'keyboardHeightChange', indicating the keyboard height change event.
523561847f8eSopenharmony_ci     * @param { Callback<number> } callback - Callback used to return the current keyboard height.
523661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
523761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
523861847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
523961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
524061847f8eSopenharmony_ci     * @atomicservice
524161847f8eSopenharmony_ci     * @since 12
524261847f8eSopenharmony_ci     */
524361847f8eSopenharmony_ci    on(type: 'keyboardHeightChange', callback: Callback<number>): void;
524461847f8eSopenharmony_ci
524561847f8eSopenharmony_ci    /**
524661847f8eSopenharmony_ci     * Unregister the callback of keyboardHeightChange
524761847f8eSopenharmony_ci     *
524861847f8eSopenharmony_ci     * @param { 'keyboardHeightChange' } type - The value is fixed at 'keyboardHeightChange', indicating the keyboard height change event.
524961847f8eSopenharmony_ci     * @param { Callback<number> } callback - Callback used to return the current keyboard height.
525061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
525161847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
525261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
525361847f8eSopenharmony_ci     * @since 7
525461847f8eSopenharmony_ci     */
525561847f8eSopenharmony_ci    /**
525661847f8eSopenharmony_ci     * Unregister the callback of keyboardHeightChange
525761847f8eSopenharmony_ci     *
525861847f8eSopenharmony_ci     * @param { 'keyboardHeightChange' } type - The value is fixed at 'keyboardHeightChange', indicating the keyboard height change event.
525961847f8eSopenharmony_ci     * @param { Callback<number> } callback - Callback used to return the current keyboard height.
526061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
526161847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
526261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
526361847f8eSopenharmony_ci     * @atomicservice
526461847f8eSopenharmony_ci     * @since 12
526561847f8eSopenharmony_ci     */
526661847f8eSopenharmony_ci    off(type: 'keyboardHeightChange', callback?: Callback<number>): void;
526761847f8eSopenharmony_ci
526861847f8eSopenharmony_ci    /**
526961847f8eSopenharmony_ci     * Touch outside callback on.
527061847f8eSopenharmony_ci     *
527161847f8eSopenharmony_ci     * @param { 'touchOutside' } type - The value is fixed at 'touchOutside', indicating the click event outside this window.
527261847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback used to return the click event outside this window.
527361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
527461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
527561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
527661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
527761847f8eSopenharmony_ci     * @atomicservice
527861847f8eSopenharmony_ci     * @since 11
527961847f8eSopenharmony_ci     */
528061847f8eSopenharmony_ci    on(type: 'touchOutside', callback: Callback<void>): void;
528161847f8eSopenharmony_ci
528261847f8eSopenharmony_ci    /**
528361847f8eSopenharmony_ci     * Touch outside callback off.
528461847f8eSopenharmony_ci     *
528561847f8eSopenharmony_ci     * @param { 'touchOutside' } type - The value is fixed at 'touchOutside', indicating the click event outside this window.
528661847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback used to return the click event outside this window.
528761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
528861847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
528961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
529061847f8eSopenharmony_ci     * @atomicservice
529161847f8eSopenharmony_ci     * @since 11
529261847f8eSopenharmony_ci     */
529361847f8eSopenharmony_ci    off(type: 'touchOutside', callback?: Callback<void>): void;
529461847f8eSopenharmony_ci
529561847f8eSopenharmony_ci    /**
529661847f8eSopenharmony_ci     * Window visibility change callback on.
529761847f8eSopenharmony_ci     *
529861847f8eSopenharmony_ci     * @param { 'windowVisibilityChange' } type - The value is fixed at 'windowVisibilityChange', indicating the window visibility change.
529961847f8eSopenharmony_ci     * @param { Callback<boolean> } callback - Callback used to notify the window visibility change.
530061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
530161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
530261847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
530361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
530461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
530561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
530661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
530761847f8eSopenharmony_ci     * @since 11
530861847f8eSopenharmony_ci     */
530961847f8eSopenharmony_ci    /**
531061847f8eSopenharmony_ci     * Window visibility change callback on.
531161847f8eSopenharmony_ci     *
531261847f8eSopenharmony_ci     * @param { 'windowVisibilityChange' } type - The value is fixed at 'windowVisibilityChange', indicating the window visibility change.
531361847f8eSopenharmony_ci     * @param { Callback<boolean> } callback - Callback used to notify the window visibility change.
531461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
531561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
531661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
531761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
531861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
531961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
532061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
532161847f8eSopenharmony_ci     * @atomicservice
532261847f8eSopenharmony_ci     * @since 12
532361847f8eSopenharmony_ci     */
532461847f8eSopenharmony_ci    on(type: 'windowVisibilityChange', callback: Callback<boolean>): void;
532561847f8eSopenharmony_ci
532661847f8eSopenharmony_ci    /**
532761847f8eSopenharmony_ci     * Window visibility change callback off.
532861847f8eSopenharmony_ci     *
532961847f8eSopenharmony_ci     * @param { 'windowVisibilityChange' } type - The value is fixed at 'windowVisibilityChange', indicating the window visibility change.
533061847f8eSopenharmony_ci     * @param { Callback<boolean> } callback - Callback used to notify the window visibility change.
533161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
533261847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
533361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
533461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
533561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
533661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
533761847f8eSopenharmony_ci     * @since 11
533861847f8eSopenharmony_ci     */
533961847f8eSopenharmony_ci    /**
534061847f8eSopenharmony_ci     * Window visibility change callback off.
534161847f8eSopenharmony_ci     *
534261847f8eSopenharmony_ci     * @param { 'windowVisibilityChange' } type - The value is fixed at 'windowVisibilityChange', indicating the window visibility change.
534361847f8eSopenharmony_ci     * @param { Callback<boolean> } callback - Callback used to notify the window visibility change.
534461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
534561847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
534661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
534761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
534861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
534961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
535061847f8eSopenharmony_ci     * @atomicservice
535161847f8eSopenharmony_ci     * @since 12
535261847f8eSopenharmony_ci     */
535361847f8eSopenharmony_ci    off(type: 'windowVisibilityChange', callback?: Callback<boolean>): void;
535461847f8eSopenharmony_ci
535561847f8eSopenharmony_ci    /**
535661847f8eSopenharmony_ci     * Register the callback function that has no interaction for a long time.
535761847f8eSopenharmony_ci     *
535861847f8eSopenharmony_ci     * @param { 'noInteractionDetected' } type - The value is fixed at 'noInteractionDetected', indicating the window has no interaction for a long time.
535961847f8eSopenharmony_ci     * @param { number } timeout - The timeout(in seconds) of no interaction detection.
536061847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback used to notify the window has no interaction for a long time.
536161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
536261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
536361847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
536461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
536561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
536661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
536761847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
536861847f8eSopenharmony_ci     * @atomicservice
536961847f8eSopenharmony_ci     * @since 12
537061847f8eSopenharmony_ci     */
537161847f8eSopenharmony_ci    on(type: 'noInteractionDetected', timeout: number, callback: Callback<void>): void;
537261847f8eSopenharmony_ci
537361847f8eSopenharmony_ci    /**
537461847f8eSopenharmony_ci     * Unregister the callback function that has no interaction for a long time.
537561847f8eSopenharmony_ci     *
537661847f8eSopenharmony_ci     * @param { 'noInteractionDetected' } type - The value is fixed at 'noInteractionDetected', indicating the window has no interaction for a long time.
537761847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback used to notify the window has no interaction for a long time.
537861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
537961847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
538061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
538161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
538261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
538361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
538461847f8eSopenharmony_ci     * @atomicservice
538561847f8eSopenharmony_ci     * @since 12
538661847f8eSopenharmony_ci     */
538761847f8eSopenharmony_ci    off(type: 'noInteractionDetected', callback?: Callback<void>): void;
538861847f8eSopenharmony_ci
538961847f8eSopenharmony_ci    /**
539061847f8eSopenharmony_ci     * Register the callback of screenshot, only the focused window called back
539161847f8eSopenharmony_ci     *
539261847f8eSopenharmony_ci     * @param { 'screenshot' } type - The value is fixed at 'screenshot', indicating the screenshot event.
539361847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback invoked when a screenshot event occurs.
539461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
539561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
539661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
539761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
539861847f8eSopenharmony_ci     * @since 9
539961847f8eSopenharmony_ci     */
540061847f8eSopenharmony_ci    /**
540161847f8eSopenharmony_ci     * Register the callback of screenshot, only the focused window called back
540261847f8eSopenharmony_ci     *
540361847f8eSopenharmony_ci     * @param { 'screenshot' } type - The value is fixed at 'screenshot', indicating the screenshot event.
540461847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback invoked when a screenshot event occurs.
540561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
540661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
540761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
540861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
540961847f8eSopenharmony_ci     * @atomicservice
541061847f8eSopenharmony_ci     * @since 12
541161847f8eSopenharmony_ci     */
541261847f8eSopenharmony_ci    on(type: 'screenshot', callback: Callback<void>): void;
541361847f8eSopenharmony_ci
541461847f8eSopenharmony_ci    /**
541561847f8eSopenharmony_ci     * Unregister the callback of screenshot
541661847f8eSopenharmony_ci     *
541761847f8eSopenharmony_ci     * @param { 'screenshot' } type - The value is fixed at 'screenshot', indicating the screenshot event.
541861847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback invoked when a screenshot event occurs.
541961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
542061847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
542161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
542261847f8eSopenharmony_ci     * @since 9
542361847f8eSopenharmony_ci     */
542461847f8eSopenharmony_ci    /**
542561847f8eSopenharmony_ci     * Unregister the callback of screenshot
542661847f8eSopenharmony_ci     *
542761847f8eSopenharmony_ci     * @param { 'screenshot' } type - The value is fixed at 'screenshot', indicating the screenshot event.
542861847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback invoked when a screenshot event occurs.
542961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
543061847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
543161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
543261847f8eSopenharmony_ci     * @atomicservice
543361847f8eSopenharmony_ci     * @since 12
543461847f8eSopenharmony_ci     */
543561847f8eSopenharmony_ci    off(type: 'screenshot', callback?: Callback<void>): void;
543661847f8eSopenharmony_ci
543761847f8eSopenharmony_ci    /**
543861847f8eSopenharmony_ci     * Register the callback of dialogTargetTouch
543961847f8eSopenharmony_ci     *
544061847f8eSopenharmony_ci     * @param { 'dialogTargetTouch' } type - The value is fixed at 'dialogTargetTouch', indicating the click event of the target window in the modal window mode.
544161847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback invoked when the click event occurs in the target window of the modal window mode.
544261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
544361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
544461847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
544561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
544661847f8eSopenharmony_ci     * @since 10
544761847f8eSopenharmony_ci     */
544861847f8eSopenharmony_ci    /**
544961847f8eSopenharmony_ci     * Register the callback of dialogTargetTouch
545061847f8eSopenharmony_ci     *
545161847f8eSopenharmony_ci     * @param { 'dialogTargetTouch' } type - The value is fixed at 'dialogTargetTouch', indicating the click event of the target window in the modal window mode.
545261847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback invoked when the click event occurs in the target window of the modal window mode.
545361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
545461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
545561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
545661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
545761847f8eSopenharmony_ci     * @atomicservice
545861847f8eSopenharmony_ci     * @since 12
545961847f8eSopenharmony_ci     */
546061847f8eSopenharmony_ci    on(type: 'dialogTargetTouch', callback: Callback<void>): void;
546161847f8eSopenharmony_ci
546261847f8eSopenharmony_ci    /**
546361847f8eSopenharmony_ci     * Unregister the callback of dialogTargetTouch
546461847f8eSopenharmony_ci     *
546561847f8eSopenharmony_ci     * @param { 'dialogTargetTouch' } type - The value is fixed at 'dialogTargetTouch',
546661847f8eSopenharmony_ci     *  indicating the click event of the target window in the modal window mode.
546761847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback invoked when the click event occurs in the target window of the modal window mode.
546861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
546961847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
547061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
547161847f8eSopenharmony_ci     * @since 10
547261847f8eSopenharmony_ci     */
547361847f8eSopenharmony_ci    /**
547461847f8eSopenharmony_ci     * Unregister the callback of dialogTargetTouch
547561847f8eSopenharmony_ci     *
547661847f8eSopenharmony_ci     * @param { 'dialogTargetTouch' } type - The value is fixed at 'dialogTargetTouch',
547761847f8eSopenharmony_ci     *  indicating the click event of the target window in the modal window mode.
547861847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback invoked when the click event occurs in the target window of the modal window mode.
547961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
548061847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
548161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
548261847f8eSopenharmony_ci     * @atomicservice
548361847f8eSopenharmony_ci     * @since 12
548461847f8eSopenharmony_ci     */
548561847f8eSopenharmony_ci    off(type: 'dialogTargetTouch', callback?: Callback<void>): void;
548661847f8eSopenharmony_ci
548761847f8eSopenharmony_ci    /**
548861847f8eSopenharmony_ci     * Register the callback of windowEvent
548961847f8eSopenharmony_ci     *
549061847f8eSopenharmony_ci     * @param { 'windowEvent' } type - The value is fixed at 'windowEvent', indicating the window lifecycle change event.
549161847f8eSopenharmony_ci     * @param { Callback<WindowEventType> } callback - the callback of window event
549261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
549361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
549461847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
549561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
549661847f8eSopenharmony_ci     * @since 10
549761847f8eSopenharmony_ci     */
549861847f8eSopenharmony_ci    /**
549961847f8eSopenharmony_ci     * Register the callback of windowEvent
550061847f8eSopenharmony_ci     *
550161847f8eSopenharmony_ci     * @param { 'windowEvent' } type - The value is fixed at 'windowEvent', indicating the window lifecycle change event.
550261847f8eSopenharmony_ci     * @param { Callback<WindowEventType> } callback - the callback of window event
550361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
550461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
550561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
550661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
550761847f8eSopenharmony_ci     * @crossplatform
550861847f8eSopenharmony_ci     * @atomicservice
550961847f8eSopenharmony_ci     * @since 11
551061847f8eSopenharmony_ci     */
551161847f8eSopenharmony_ci    on(type: 'windowEvent', callback: Callback<WindowEventType>): void;
551261847f8eSopenharmony_ci
551361847f8eSopenharmony_ci    /**
551461847f8eSopenharmony_ci     * Unregister the callback of windowEvent
551561847f8eSopenharmony_ci     *
551661847f8eSopenharmony_ci     * @param { 'windowEvent' } type - The value is fixed at 'windowEvent', indicating the window lifecycle change event.
551761847f8eSopenharmony_ci     * @param { Callback<WindowEventType> } callback - the callback of window event
551861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
551961847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
552061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
552161847f8eSopenharmony_ci     * @since 10
552261847f8eSopenharmony_ci     */
552361847f8eSopenharmony_ci    /**
552461847f8eSopenharmony_ci     * Unregister the callback of windowEvent
552561847f8eSopenharmony_ci     *
552661847f8eSopenharmony_ci     * @param { 'windowEvent' } type - The value is fixed at 'windowEvent', indicating the window lifecycle change event.
552761847f8eSopenharmony_ci     * @param { Callback<WindowEventType> } callback - the callback of window event
552861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
552961847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
553061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
553161847f8eSopenharmony_ci     * @crossplatform
553261847f8eSopenharmony_ci     * @atomicservice
553361847f8eSopenharmony_ci     * @since 11
553461847f8eSopenharmony_ci     */
553561847f8eSopenharmony_ci    off(type: 'windowEvent', callback?: Callback<WindowEventType>): void;
553661847f8eSopenharmony_ci
553761847f8eSopenharmony_ci    /**
553861847f8eSopenharmony_ci     * Register the callback of windowStatusChange
553961847f8eSopenharmony_ci     *
554061847f8eSopenharmony_ci     * @param { 'windowStatusChange' } type - The value is fixed at 'windowStatusChange', indicating the window status change event.
554161847f8eSopenharmony_ci     * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.
554261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
554361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
554461847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
554561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
554661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
554761847f8eSopenharmony_ci     * @since 11
554861847f8eSopenharmony_ci     */
554961847f8eSopenharmony_ci    /**
555061847f8eSopenharmony_ci     * Register the callback of windowStatusChange
555161847f8eSopenharmony_ci     *
555261847f8eSopenharmony_ci     * @param { 'windowStatusChange' } type - The value is fixed at 'windowStatusChange', indicating the window status change event.
555361847f8eSopenharmony_ci     * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.
555461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
555561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
555661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
555761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
555861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
555961847f8eSopenharmony_ci     * @atomicservice
556061847f8eSopenharmony_ci     * @since 12
556161847f8eSopenharmony_ci     */
556261847f8eSopenharmony_ci    on(type: 'windowStatusChange', callback: Callback<WindowStatusType>): void;
556361847f8eSopenharmony_ci
556461847f8eSopenharmony_ci    /**
556561847f8eSopenharmony_ci     * Unregister the callback of windowStatusChange
556661847f8eSopenharmony_ci     *
556761847f8eSopenharmony_ci     * @param { 'windowStatusChange' } type - The value is fixed at 'windowStatusChange', indicating the window status change event.
556861847f8eSopenharmony_ci     * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.
556961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
557061847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
557161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
557261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
557361847f8eSopenharmony_ci     * @since 11
557461847f8eSopenharmony_ci     */
557561847f8eSopenharmony_ci    /**
557661847f8eSopenharmony_ci     * Unregister the callback of windowStatusChange
557761847f8eSopenharmony_ci     *
557861847f8eSopenharmony_ci     * @param { 'windowStatusChange' } type - The value is fixed at 'windowStatusChange', indicating the window status change event.
557961847f8eSopenharmony_ci     * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.
558061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
558161847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
558261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
558361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
558461847f8eSopenharmony_ci     * @atomicservice
558561847f8eSopenharmony_ci     * @since 12
558661847f8eSopenharmony_ci     */
558761847f8eSopenharmony_ci    off(type: 'windowStatusChange', callback?: Callback<WindowStatusType>): void;
558861847f8eSopenharmony_ci
558961847f8eSopenharmony_ci    /**
559061847f8eSopenharmony_ci     * Register the callback of subWindowClose
559161847f8eSopenharmony_ci     *
559261847f8eSopenharmony_ci     * @param { 'subWindowClose' } type - The value is fixed at 'subWindowClose', indicating the subwindow close event.
559361847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback used to return whether to terminate the subwindow close process.
559461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
559561847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
559661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
559761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
559861847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
559961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
560061847f8eSopenharmony_ci     * @atomicservice
560161847f8eSopenharmony_ci     * @since 12
560261847f8eSopenharmony_ci     */
560361847f8eSopenharmony_ci    on(type: 'subWindowClose', callback: Callback<void>): void;
560461847f8eSopenharmony_ci
560561847f8eSopenharmony_ci    /**
560661847f8eSopenharmony_ci     * Unregister the callback of subWindowClose
560761847f8eSopenharmony_ci     *
560861847f8eSopenharmony_ci     * @param { 'subWindowClose' } type - The value is fixed at 'subWindowClose', indicating the subwindow close event.
560961847f8eSopenharmony_ci     * @param { Callback<void> } callback - Callback used to return whether to terminate the subwindow close process.
561061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
561161847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
561261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
561361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
561461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
561561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
561661847f8eSopenharmony_ci     * @atomicservice
561761847f8eSopenharmony_ci     * @since 12
561861847f8eSopenharmony_ci     */
561961847f8eSopenharmony_ci    off(type: 'subWindowClose', callback?: Callback<void>): void;
562061847f8eSopenharmony_ci
562161847f8eSopenharmony_ci    /**
562261847f8eSopenharmony_ci     * Bind dialog to the target window.
562361847f8eSopenharmony_ci     *
562461847f8eSopenharmony_ci     * @param { rpc.RemoteObject } token - token of the target window.
562561847f8eSopenharmony_ci     * @param { Callback<void> } deathCallback - the callback of dialogDeath.
562661847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
562761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
562861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
562961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
563061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
563161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
563261847f8eSopenharmony_ci     * @since 9
563361847f8eSopenharmony_ci     */
563461847f8eSopenharmony_ci    /**
563561847f8eSopenharmony_ci     * Bind dialog to the target window.
563661847f8eSopenharmony_ci     *
563761847f8eSopenharmony_ci     * @param { rpc.RemoteObject } token - token of the target window.
563861847f8eSopenharmony_ci     * @param { Callback<void> } deathCallback - the callback of dialogDeath.
563961847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
564061847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
564161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
564261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
564361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
564461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
564561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
564661847f8eSopenharmony_ci     * @since 12
564761847f8eSopenharmony_ci     */
564861847f8eSopenharmony_ci    bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>): Promise<void>;
564961847f8eSopenharmony_ci
565061847f8eSopenharmony_ci    /**
565161847f8eSopenharmony_ci     * Bind dialog to the target window.
565261847f8eSopenharmony_ci     *
565361847f8eSopenharmony_ci     * @param { rpc.RemoteObject } token token of the target window.
565461847f8eSopenharmony_ci     * @param { Callback<void> } deathCallback the callback of dialogDeath.
565561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
565661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
565761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
565861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
565961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
566061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
566161847f8eSopenharmony_ci     * @since 9
566261847f8eSopenharmony_ci     */
566361847f8eSopenharmony_ci    /**
566461847f8eSopenharmony_ci     * Bind dialog to the target window.
566561847f8eSopenharmony_ci     *
566661847f8eSopenharmony_ci     * @param { rpc.RemoteObject } token token of the target window.
566761847f8eSopenharmony_ci     * @param { Callback<void> } deathCallback the callback of dialogDeath.
566861847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
566961847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
567061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
567161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
567261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
567361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
567461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
567561847f8eSopenharmony_ci     * @since 12
567661847f8eSopenharmony_ci     */
567761847f8eSopenharmony_ci    bindDialogTarget(token: rpc.RemoteObject, deathCallback: Callback<void>, callback: AsyncCallback<void>): void;
567861847f8eSopenharmony_ci
567961847f8eSopenharmony_ci    /**
568061847f8eSopenharmony_ci     * Bind dialog to the target window.
568161847f8eSopenharmony_ci     *
568261847f8eSopenharmony_ci     * @param { dialogRequest.RequestInfo } requestInfo requestInfo of the target window.
568361847f8eSopenharmony_ci     * @param { Callback<void> } deathCallback the callback of dialogDeath.
568461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
568561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
568661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
568761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
568861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
568961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
569061847f8eSopenharmony_ci     * @since 9
569161847f8eSopenharmony_ci     */
569261847f8eSopenharmony_ci    /**
569361847f8eSopenharmony_ci     * Bind dialog to the target window.
569461847f8eSopenharmony_ci     *
569561847f8eSopenharmony_ci     * @param { dialogRequest.RequestInfo } requestInfo requestInfo of the target window.
569661847f8eSopenharmony_ci     * @param { Callback<void> } deathCallback the callback of dialogDeath.
569761847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
569861847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
569961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
570061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
570161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
570261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
570361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
570461847f8eSopenharmony_ci     * @since 12
570561847f8eSopenharmony_ci     */
570661847f8eSopenharmony_ci    bindDialogTarget(requestInfo: dialogRequest.RequestInfo, deathCallback: Callback<void>): Promise<void>;
570761847f8eSopenharmony_ci
570861847f8eSopenharmony_ci    /**
570961847f8eSopenharmony_ci     * Bind dialog to the target window.
571061847f8eSopenharmony_ci     *
571161847f8eSopenharmony_ci     * @param { dialogRequest.RequestInfo } requestInfo requestInfo of the target window.
571261847f8eSopenharmony_ci     * @param { Callback<void> } deathCallback the callback of dialogDeath.
571361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
571461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
571561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
571661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
571761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
571861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
571961847f8eSopenharmony_ci     * @since 9
572061847f8eSopenharmony_ci     */
572161847f8eSopenharmony_ci    /**
572261847f8eSopenharmony_ci     * Bind dialog to the target window.
572361847f8eSopenharmony_ci     *
572461847f8eSopenharmony_ci     * @param { dialogRequest.RequestInfo } requestInfo requestInfo of the target window.
572561847f8eSopenharmony_ci     * @param { Callback<void> } deathCallback the callback of dialogDeath.
572661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
572761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
572861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
572961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
573061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
573161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
573261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
573361847f8eSopenharmony_ci     * @since 12
573461847f8eSopenharmony_ci     */
573561847f8eSopenharmony_ci    bindDialogTarget(
573661847f8eSopenharmony_ci      requestInfo: dialogRequest.RequestInfo,
573761847f8eSopenharmony_ci      deathCallback: Callback<void>,
573861847f8eSopenharmony_ci      callback: AsyncCallback<void>
573961847f8eSopenharmony_ci    ): void;
574061847f8eSopenharmony_ci
574161847f8eSopenharmony_ci    /**
574261847f8eSopenharmony_ci     * Set whether the dialog window responds to back gesture.
574361847f8eSopenharmony_ci     *
574461847f8eSopenharmony_ci     * @param { boolean } enabled - Responds to back gesture if true, or ignore back gesture if false.
574561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
574661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
574761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
574861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
574961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
575061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
575161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
575261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
575361847f8eSopenharmony_ci     * @atomicservice
575461847f8eSopenharmony_ci     * @since 12
575561847f8eSopenharmony_ci     */
575661847f8eSopenharmony_ci    setDialogBackGestureEnabled(enabled: boolean): Promise<void>;
575761847f8eSopenharmony_ci
575861847f8eSopenharmony_ci    /**
575961847f8eSopenharmony_ci     * Whether the window supports thr wide gamut setting.
576061847f8eSopenharmony_ci     *
576161847f8eSopenharmony_ci     * @returns { Promise<boolean> } Promise used to return the result. The value true means that the wide-gamut color space is supported, and false means the opposite.
576261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
576361847f8eSopenharmony_ci     * @since 8
576461847f8eSopenharmony_ci     * @deprecated since 9
576561847f8eSopenharmony_ci     * @useinstead ohos.window.Window#isWindowSupportWideGamut
576661847f8eSopenharmony_ci     */
576761847f8eSopenharmony_ci    isSupportWideGamut(): Promise<boolean>;
576861847f8eSopenharmony_ci
576961847f8eSopenharmony_ci    /**
577061847f8eSopenharmony_ci     * Whether the window supports thr wide gamut setting.
577161847f8eSopenharmony_ci     *
577261847f8eSopenharmony_ci     * @param { AsyncCallback<boolean> } callback Callback used to return the result.
577361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
577461847f8eSopenharmony_ci     * @since 8
577561847f8eSopenharmony_ci     * @deprecated since 9
577661847f8eSopenharmony_ci     * @useinstead ohos.window.Window#isWindowSupportWideGamut
577761847f8eSopenharmony_ci     */
577861847f8eSopenharmony_ci    isSupportWideGamut(callback: AsyncCallback<boolean>): void;
577961847f8eSopenharmony_ci
578061847f8eSopenharmony_ci    /**
578161847f8eSopenharmony_ci     * Whether the window supports thr wide gamut setting.
578261847f8eSopenharmony_ci     *
578361847f8eSopenharmony_ci     * @returns { Promise<boolean> } Promise used to return the result.
578461847f8eSopenharmony_ci     *  The value true means that the wide-gamut color space is supported, and false means the opposite.
578561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
578661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
578761847f8eSopenharmony_ci     * @since 9
578861847f8eSopenharmony_ci     */
578961847f8eSopenharmony_ci    /**
579061847f8eSopenharmony_ci     * Whether the window supports thr wide gamut setting.
579161847f8eSopenharmony_ci     *
579261847f8eSopenharmony_ci     * @returns { Promise<boolean> } Promise used to return the result.
579361847f8eSopenharmony_ci     *  The value true means that the wide-gamut color space is supported, and false means the opposite.
579461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
579561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
579661847f8eSopenharmony_ci     * @atomicservice
579761847f8eSopenharmony_ci     * @since 12
579861847f8eSopenharmony_ci     */
579961847f8eSopenharmony_ci    isWindowSupportWideGamut(): Promise<boolean>;
580061847f8eSopenharmony_ci
580161847f8eSopenharmony_ci    /**
580261847f8eSopenharmony_ci     * Whether the window supports thr wide gamut setting.
580361847f8eSopenharmony_ci     *
580461847f8eSopenharmony_ci     * @param { AsyncCallback<boolean> } callback Callback used to return the result.
580561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
580661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
580761847f8eSopenharmony_ci     * @since 9
580861847f8eSopenharmony_ci     */
580961847f8eSopenharmony_ci    /**
581061847f8eSopenharmony_ci     * Whether the window supports thr wide gamut setting.
581161847f8eSopenharmony_ci     *
581261847f8eSopenharmony_ci     * @param { AsyncCallback<boolean> } callback Callback used to return the result.
581361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
581461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
581561847f8eSopenharmony_ci     * @atomicservice
581661847f8eSopenharmony_ci     * @since 12
581761847f8eSopenharmony_ci     */
581861847f8eSopenharmony_ci    isWindowSupportWideGamut(callback: AsyncCallback<boolean>): void;
581961847f8eSopenharmony_ci
582061847f8eSopenharmony_ci    /**
582161847f8eSopenharmony_ci     * Sets the specified color space.
582261847f8eSopenharmony_ci     *
582361847f8eSopenharmony_ci     * @param { ColorSpace } colorSpace the specified color space.
582461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
582561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
582661847f8eSopenharmony_ci     * @since 8
582761847f8eSopenharmony_ci     * @deprecated since 9
582861847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowColorSpace
582961847f8eSopenharmony_ci     */
583061847f8eSopenharmony_ci    setColorSpace(colorSpace: ColorSpace): Promise<void>;
583161847f8eSopenharmony_ci
583261847f8eSopenharmony_ci    /**
583361847f8eSopenharmony_ci     * Sets the specified color space.
583461847f8eSopenharmony_ci     *
583561847f8eSopenharmony_ci     * @param { ColorSpace } colorSpace the specified color space.
583661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
583761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
583861847f8eSopenharmony_ci     * @since 8
583961847f8eSopenharmony_ci     * @deprecated since 9
584061847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowColorSpace
584161847f8eSopenharmony_ci     */
584261847f8eSopenharmony_ci    setColorSpace(colorSpace: ColorSpace, callback: AsyncCallback<void>): void;
584361847f8eSopenharmony_ci
584461847f8eSopenharmony_ci    /**
584561847f8eSopenharmony_ci     * Sets the specified color space.
584661847f8eSopenharmony_ci     *
584761847f8eSopenharmony_ci     * @param { ColorSpace } colorSpace the specified color space.
584861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
584961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
585061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
585161847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
585261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
585361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
585461847f8eSopenharmony_ci     * @since 9
585561847f8eSopenharmony_ci     */
585661847f8eSopenharmony_ci    /**
585761847f8eSopenharmony_ci     * Sets the specified color space.
585861847f8eSopenharmony_ci     *
585961847f8eSopenharmony_ci     * @param { ColorSpace } colorSpace the specified color space.
586061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
586161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
586261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
586361847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
586461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
586561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
586661847f8eSopenharmony_ci     * @crossplatform
586761847f8eSopenharmony_ci     * @since 11
586861847f8eSopenharmony_ci     */
586961847f8eSopenharmony_ci    /**
587061847f8eSopenharmony_ci     * Sets the specified color space.
587161847f8eSopenharmony_ci     *
587261847f8eSopenharmony_ci     * @param { ColorSpace } colorSpace the specified color space.
587361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
587461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
587561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
587661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
587761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
587861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
587961847f8eSopenharmony_ci     * @crossplatform
588061847f8eSopenharmony_ci     * @atomicservice
588161847f8eSopenharmony_ci     * @since 12
588261847f8eSopenharmony_ci     */
588361847f8eSopenharmony_ci    setWindowColorSpace(colorSpace: ColorSpace): Promise<void>;
588461847f8eSopenharmony_ci
588561847f8eSopenharmony_ci    /**
588661847f8eSopenharmony_ci     * Sets the specified color space.
588761847f8eSopenharmony_ci     *
588861847f8eSopenharmony_ci     * @param { ColorSpace } colorSpace the specified color space.
588961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
589061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
589161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
589261847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
589361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
589461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
589561847f8eSopenharmony_ci     * @since 9
589661847f8eSopenharmony_ci     */
589761847f8eSopenharmony_ci    /**
589861847f8eSopenharmony_ci     * Sets the specified color space.
589961847f8eSopenharmony_ci     *
590061847f8eSopenharmony_ci     * @param { ColorSpace } colorSpace the specified color space.
590161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
590261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
590361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
590461847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
590561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
590661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
590761847f8eSopenharmony_ci     * @crossplatform
590861847f8eSopenharmony_ci     * @since 11
590961847f8eSopenharmony_ci     */
591061847f8eSopenharmony_ci    /**
591161847f8eSopenharmony_ci     * Sets the specified color space.
591261847f8eSopenharmony_ci     *
591361847f8eSopenharmony_ci     * @param { ColorSpace } colorSpace the specified color space.
591461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
591561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
591661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
591761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
591861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
591961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
592061847f8eSopenharmony_ci     * @crossplatform
592161847f8eSopenharmony_ci     * @atomicservice
592261847f8eSopenharmony_ci     * @since 12
592361847f8eSopenharmony_ci     */
592461847f8eSopenharmony_ci    setWindowColorSpace(colorSpace: ColorSpace, callback: AsyncCallback<void>): void;
592561847f8eSopenharmony_ci
592661847f8eSopenharmony_ci    /**
592761847f8eSopenharmony_ci     * Obtains the set color space.
592861847f8eSopenharmony_ci     *
592961847f8eSopenharmony_ci     * @returns { Promise<ColorSpace> } Promise used to return the current color space.
593061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
593161847f8eSopenharmony_ci     * @since 8
593261847f8eSopenharmony_ci     * @deprecated since 9
593361847f8eSopenharmony_ci     * @useinstead ohos.window.Window#getWindowColorSpace
593461847f8eSopenharmony_ci     */
593561847f8eSopenharmony_ci    getColorSpace(): Promise<ColorSpace>;
593661847f8eSopenharmony_ci
593761847f8eSopenharmony_ci    /**
593861847f8eSopenharmony_ci     * Obtains the set color space.
593961847f8eSopenharmony_ci     *
594061847f8eSopenharmony_ci     * @param { AsyncCallback<ColorSpace> } callback Callback used to return the result.
594161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
594261847f8eSopenharmony_ci     * @since 8
594361847f8eSopenharmony_ci     * @deprecated since 9
594461847f8eSopenharmony_ci     * @useinstead ohos.window.Window#getWindowColorSpace
594561847f8eSopenharmony_ci     */
594661847f8eSopenharmony_ci    getColorSpace(callback: AsyncCallback<ColorSpace>): void;
594761847f8eSopenharmony_ci
594861847f8eSopenharmony_ci    /**
594961847f8eSopenharmony_ci     * Obtains the set color space.
595061847f8eSopenharmony_ci     *
595161847f8eSopenharmony_ci     * @returns { ColorSpace } Color space obtained.
595261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
595361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
595461847f8eSopenharmony_ci     * @since 9
595561847f8eSopenharmony_ci     */
595661847f8eSopenharmony_ci    /**
595761847f8eSopenharmony_ci     * Obtains the set color space.
595861847f8eSopenharmony_ci     *
595961847f8eSopenharmony_ci     * @returns { ColorSpace } Color space obtained.
596061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
596161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
596261847f8eSopenharmony_ci     * @crossplatform
596361847f8eSopenharmony_ci     * @since 11
596461847f8eSopenharmony_ci     */
596561847f8eSopenharmony_ci    /**
596661847f8eSopenharmony_ci     * Obtains the set color space.
596761847f8eSopenharmony_ci     *
596861847f8eSopenharmony_ci     * @returns { ColorSpace } Color space obtained.
596961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
597061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
597161847f8eSopenharmony_ci     * @crossplatform
597261847f8eSopenharmony_ci     * @atomicservice
597361847f8eSopenharmony_ci     * @since 12
597461847f8eSopenharmony_ci     */
597561847f8eSopenharmony_ci    getWindowColorSpace(): ColorSpace;
597661847f8eSopenharmony_ci
597761847f8eSopenharmony_ci    /**
597861847f8eSopenharmony_ci     * Sets the background color of window.
597961847f8eSopenharmony_ci     *
598061847f8eSopenharmony_ci     * @param { string } color the specified color.
598161847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
598261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
598361847f8eSopenharmony_ci     * @since 6
598461847f8eSopenharmony_ci     * @deprecated since 9
598561847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowBackgroundColor
598661847f8eSopenharmony_ci     */
598761847f8eSopenharmony_ci    setBackgroundColor(color: string): Promise<void>;
598861847f8eSopenharmony_ci
598961847f8eSopenharmony_ci    /**
599061847f8eSopenharmony_ci     * Sets the background color of window.
599161847f8eSopenharmony_ci     *
599261847f8eSopenharmony_ci     * @param { string } color the specified color.
599361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
599461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
599561847f8eSopenharmony_ci     * @since 6
599661847f8eSopenharmony_ci     * @deprecated since 9
599761847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowBackgroundColor
599861847f8eSopenharmony_ci     */
599961847f8eSopenharmony_ci    setBackgroundColor(color: string, callback: AsyncCallback<void>): void;
600061847f8eSopenharmony_ci
600161847f8eSopenharmony_ci    /**
600261847f8eSopenharmony_ci     * Sets the background color of window.
600361847f8eSopenharmony_ci     *
600461847f8eSopenharmony_ci     * @param { string } color the specified color.
600561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
600661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
600761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
600861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
600961847f8eSopenharmony_ci     * @since 9
601061847f8eSopenharmony_ci     */
601161847f8eSopenharmony_ci    /**
601261847f8eSopenharmony_ci     * Sets the background color of window.
601361847f8eSopenharmony_ci     *
601461847f8eSopenharmony_ci     * @param { string } color the specified color.
601561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
601661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
601761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
601861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
601961847f8eSopenharmony_ci     * @crossplatform
602061847f8eSopenharmony_ci     * @since 10
602161847f8eSopenharmony_ci     */
602261847f8eSopenharmony_ci    /**
602361847f8eSopenharmony_ci     * Sets the background color of window.
602461847f8eSopenharmony_ci     *
602561847f8eSopenharmony_ci     * @param { string } color the specified color.
602661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
602761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
602861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
602961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
603061847f8eSopenharmony_ci     * @crossplatform
603161847f8eSopenharmony_ci     * @atomicservice
603261847f8eSopenharmony_ci     * @since 11
603361847f8eSopenharmony_ci     */
603461847f8eSopenharmony_ci    setWindowBackgroundColor(color: string): void;
603561847f8eSopenharmony_ci
603661847f8eSopenharmony_ci    /**
603761847f8eSopenharmony_ci     * Sets the brightness of window.
603861847f8eSopenharmony_ci     *
603961847f8eSopenharmony_ci     * @param { number } brightness the specified brightness value.
604061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
604161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
604261847f8eSopenharmony_ci     * @since 6
604361847f8eSopenharmony_ci     * @deprecated since 9
604461847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowBrightness
604561847f8eSopenharmony_ci     */
604661847f8eSopenharmony_ci    setBrightness(brightness: number): Promise<void>;
604761847f8eSopenharmony_ci
604861847f8eSopenharmony_ci    /**
604961847f8eSopenharmony_ci     * Sets the brightness of window.
605061847f8eSopenharmony_ci     *
605161847f8eSopenharmony_ci     * @param { number } brightness the specified brightness value.
605261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
605361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
605461847f8eSopenharmony_ci     * @since 6
605561847f8eSopenharmony_ci     * @deprecated since 9
605661847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowBrightness
605761847f8eSopenharmony_ci     */
605861847f8eSopenharmony_ci    setBrightness(brightness: number, callback: AsyncCallback<void>): void;
605961847f8eSopenharmony_ci
606061847f8eSopenharmony_ci    /**
606161847f8eSopenharmony_ci     * Set whether the main window is topmost.
606261847f8eSopenharmony_ci     *
606361847f8eSopenharmony_ci     * @param { boolean } isTopmost - Main window is topmost if true.
606461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
606561847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
606661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
606761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
606861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
606961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
607061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
607161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
607261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
607361847f8eSopenharmony_ci     * @systemapi
607461847f8eSopenharmony_ci     * @since 12
607561847f8eSopenharmony_ci     */
607661847f8eSopenharmony_ci    setTopmost(isTopmost: boolean): Promise<void>;
607761847f8eSopenharmony_ci
607861847f8eSopenharmony_ci    /**
607961847f8eSopenharmony_ci     * Set whether the main window is topmost.
608061847f8eSopenharmony_ci     *
608161847f8eSopenharmony_ci     * @permission ohos.permission.WINDOW_TOPMOST
608261847f8eSopenharmony_ci     * @param { boolean } isWindowTopmost - Main window is topmost if true.
608361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
608461847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
608561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
608661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
608761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
608861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
608961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
609061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
609161847f8eSopenharmony_ci     * @atomicservice
609261847f8eSopenharmony_ci     * @since 14
609361847f8eSopenharmony_ci     */
609461847f8eSopenharmony_ci    setWindowTopmost(isWindowTopmost: boolean): Promise<void>;
609561847f8eSopenharmony_ci
609661847f8eSopenharmony_ci    /**
609761847f8eSopenharmony_ci     * Sets the brightness of window.
609861847f8eSopenharmony_ci     *
609961847f8eSopenharmony_ci     * @param { number } brightness the specified brightness value.
610061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
610161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
610261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
610361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
610461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
610561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
610661847f8eSopenharmony_ci     * @since 9
610761847f8eSopenharmony_ci     */
610861847f8eSopenharmony_ci    /**
610961847f8eSopenharmony_ci     * Sets the brightness of window.
611061847f8eSopenharmony_ci     *
611161847f8eSopenharmony_ci     * @param { number } brightness the specified brightness value.
611261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
611361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
611461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
611561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
611661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
611761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
611861847f8eSopenharmony_ci     * @crossplatform
611961847f8eSopenharmony_ci     * @since 10
612061847f8eSopenharmony_ci     */
612161847f8eSopenharmony_ci    /**
612261847f8eSopenharmony_ci     * Sets the brightness of window.
612361847f8eSopenharmony_ci     *
612461847f8eSopenharmony_ci     * @param { number } brightness the specified brightness value.
612561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
612661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
612761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
612861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
612961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
613061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
613161847f8eSopenharmony_ci     * @crossplatform
613261847f8eSopenharmony_ci     * @atomicservice
613361847f8eSopenharmony_ci     * @since 11
613461847f8eSopenharmony_ci     */
613561847f8eSopenharmony_ci    setWindowBrightness(brightness: number): Promise<void>;
613661847f8eSopenharmony_ci
613761847f8eSopenharmony_ci    /**
613861847f8eSopenharmony_ci     * Sets the brightness of window.
613961847f8eSopenharmony_ci     *
614061847f8eSopenharmony_ci     * @param { number } brightness the specified brightness value.
614161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
614261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
614361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
614461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
614561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
614661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
614761847f8eSopenharmony_ci     * @since 9
614861847f8eSopenharmony_ci     */
614961847f8eSopenharmony_ci    /**
615061847f8eSopenharmony_ci     * Sets the brightness of window.
615161847f8eSopenharmony_ci     *
615261847f8eSopenharmony_ci     * @param { number } brightness the specified brightness value.
615361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
615461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
615561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
615661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
615761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
615861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
615961847f8eSopenharmony_ci     * @crossplatform
616061847f8eSopenharmony_ci     * @since 10
616161847f8eSopenharmony_ci     */
616261847f8eSopenharmony_ci    /**
616361847f8eSopenharmony_ci     * Sets the brightness of window.
616461847f8eSopenharmony_ci     *
616561847f8eSopenharmony_ci     * @param { number } brightness the specified brightness value.
616661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
616761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
616861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
616961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
617061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
617161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
617261847f8eSopenharmony_ci     * @crossplatform
617361847f8eSopenharmony_ci     * @atomicservice
617461847f8eSopenharmony_ci     * @since 11
617561847f8eSopenharmony_ci     */
617661847f8eSopenharmony_ci    setWindowBrightness(brightness: number, callback: AsyncCallback<void>): void;
617761847f8eSopenharmony_ci
617861847f8eSopenharmony_ci    /**
617961847f8eSopenharmony_ci     * Sets the dimBehind of window.
618061847f8eSopenharmony_ci     *
618161847f8eSopenharmony_ci     * @param { number } dimBehindValue - The specified dimBehind.
618261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
618361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
618461847f8eSopenharmony_ci     * @since 7
618561847f8eSopenharmony_ci     * @deprecated since 9
618661847f8eSopenharmony_ci     */
618761847f8eSopenharmony_ci    setDimBehind(dimBehindValue: number, callback: AsyncCallback<void>): void;
618861847f8eSopenharmony_ci
618961847f8eSopenharmony_ci    /**
619061847f8eSopenharmony_ci     * Sets the dimBehind of window.
619161847f8eSopenharmony_ci     *
619261847f8eSopenharmony_ci     * @param { number } dimBehindValue - The specified dimBehind.
619361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
619461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
619561847f8eSopenharmony_ci     * @since 7
619661847f8eSopenharmony_ci     * @deprecated since 9
619761847f8eSopenharmony_ci     */
619861847f8eSopenharmony_ci    setDimBehind(dimBehindValue: number): Promise<void>;
619961847f8eSopenharmony_ci
620061847f8eSopenharmony_ci    /**
620161847f8eSopenharmony_ci     * Sets whether focusable or not.
620261847f8eSopenharmony_ci     *
620361847f8eSopenharmony_ci     * @param { boolean } isFocusable can be focus if true, or can not be focus if false.
620461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
620561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
620661847f8eSopenharmony_ci     * @since 7
620761847f8eSopenharmony_ci     * @deprecated since 9
620861847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowFocusable
620961847f8eSopenharmony_ci     */
621061847f8eSopenharmony_ci    setFocusable(isFocusable: boolean): Promise<void>;
621161847f8eSopenharmony_ci
621261847f8eSopenharmony_ci    /**
621361847f8eSopenharmony_ci     * Sets whether focusable or not.
621461847f8eSopenharmony_ci     *
621561847f8eSopenharmony_ci     * @param { boolean } isFocusable can be focus if true, or can not be focus if false.
621661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
621761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
621861847f8eSopenharmony_ci     * @since 7
621961847f8eSopenharmony_ci     * @deprecated since 9
622061847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowFocusable
622161847f8eSopenharmony_ci     */
622261847f8eSopenharmony_ci    setFocusable(isFocusable: boolean, callback: AsyncCallback<void>): void;
622361847f8eSopenharmony_ci
622461847f8eSopenharmony_ci    /**
622561847f8eSopenharmony_ci     * Sets whether focusable or not.
622661847f8eSopenharmony_ci     *
622761847f8eSopenharmony_ci     * @param { boolean } isFocusable can be focus if true, or can not be focus if false.
622861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
622961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
623061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
623161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
623261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
623361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
623461847f8eSopenharmony_ci     * @since 9
623561847f8eSopenharmony_ci     */
623661847f8eSopenharmony_ci    /**
623761847f8eSopenharmony_ci     * Sets whether focusable or not.
623861847f8eSopenharmony_ci     *
623961847f8eSopenharmony_ci     * @param { boolean } isFocusable can be focus if true, or can not be focus if false.
624061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
624161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
624261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
624361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
624461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
624561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
624661847f8eSopenharmony_ci     * @atomicservice
624761847f8eSopenharmony_ci     * @since 12
624861847f8eSopenharmony_ci     */
624961847f8eSopenharmony_ci    setWindowFocusable(isFocusable: boolean): Promise<void>;
625061847f8eSopenharmony_ci
625161847f8eSopenharmony_ci    /**
625261847f8eSopenharmony_ci     * Sets whether focusable or not.
625361847f8eSopenharmony_ci     *
625461847f8eSopenharmony_ci     * @param { boolean } isFocusable can be focus if true, or can not be focus if false.
625561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
625661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
625761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
625861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
625961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
626061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
626161847f8eSopenharmony_ci     * @since 9
626261847f8eSopenharmony_ci     */
626361847f8eSopenharmony_ci    /**
626461847f8eSopenharmony_ci     * Sets whether focusable or not.
626561847f8eSopenharmony_ci     *
626661847f8eSopenharmony_ci     * @param { boolean } isFocusable can be focus if true, or can not be focus if false.
626761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
626861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
626961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
627061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
627161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
627261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
627361847f8eSopenharmony_ci     * @atomicservice
627461847f8eSopenharmony_ci     * @since 12
627561847f8eSopenharmony_ci     */
627661847f8eSopenharmony_ci    setWindowFocusable(isFocusable: boolean, callback: AsyncCallback<void>): void;
627761847f8eSopenharmony_ci
627861847f8eSopenharmony_ci    /**
627961847f8eSopenharmony_ci     * Window requests to get focus or lose focus.
628061847f8eSopenharmony_ci     *
628161847f8eSopenharmony_ci     * @param { boolean } isFocused - Window requests to get focus if true, requests to lose focus if false.
628261847f8eSopenharmony_ci     * @returns { Promise<void> } - Promise that returns no value.
628361847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed, non-system application uses system API.
628461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
628561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
628661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
628761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
628861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
628961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
629061847f8eSopenharmony_ci     * @systemapi
629161847f8eSopenharmony_ci     * @since 13
629261847f8eSopenharmony_ci     */
629361847f8eSopenharmony_ci    requestFocus(isFocused: boolean): Promise<void>;
629461847f8eSopenharmony_ci
629561847f8eSopenharmony_ci    /**
629661847f8eSopenharmony_ci     * Sets whether keep screen on or not.
629761847f8eSopenharmony_ci     *
629861847f8eSopenharmony_ci     * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.
629961847f8eSopenharmony_ci     * @returns { Promise<void> } that returns no value.
630061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
630161847f8eSopenharmony_ci     * @since 6
630261847f8eSopenharmony_ci     * @deprecated since 9
630361847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowKeepScreenOn
630461847f8eSopenharmony_ci     */
630561847f8eSopenharmony_ci    setKeepScreenOn(isKeepScreenOn: boolean): Promise<void>;
630661847f8eSopenharmony_ci
630761847f8eSopenharmony_ci    /**
630861847f8eSopenharmony_ci     * Sets whether keep screen on or not.
630961847f8eSopenharmony_ci     *
631061847f8eSopenharmony_ci     * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.
631161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
631261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
631361847f8eSopenharmony_ci     * @since 6
631461847f8eSopenharmony_ci     * @deprecated since 9
631561847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowKeepScreenOn
631661847f8eSopenharmony_ci     */
631761847f8eSopenharmony_ci    setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback<void>): void;
631861847f8eSopenharmony_ci
631961847f8eSopenharmony_ci    /**
632061847f8eSopenharmony_ci     * Sets whether keep screen on or not.
632161847f8eSopenharmony_ci     *
632261847f8eSopenharmony_ci     * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.
632361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
632461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
632561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
632661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
632761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
632861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
632961847f8eSopenharmony_ci     * @since 9
633061847f8eSopenharmony_ci     */
633161847f8eSopenharmony_ci    /**
633261847f8eSopenharmony_ci     * Sets whether keep screen on or not.
633361847f8eSopenharmony_ci     *
633461847f8eSopenharmony_ci     * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.
633561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
633661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
633761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
633861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
633961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
634061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
634161847f8eSopenharmony_ci     * @crossplatform
634261847f8eSopenharmony_ci     * @since 10
634361847f8eSopenharmony_ci     */
634461847f8eSopenharmony_ci    /**
634561847f8eSopenharmony_ci     * Sets whether keep screen on or not.
634661847f8eSopenharmony_ci     *
634761847f8eSopenharmony_ci     * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.
634861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
634961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
635061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
635161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
635261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
635361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
635461847f8eSopenharmony_ci     * @crossplatform
635561847f8eSopenharmony_ci     * @atomicservice
635661847f8eSopenharmony_ci     * @since 11
635761847f8eSopenharmony_ci     */
635861847f8eSopenharmony_ci    setWindowKeepScreenOn(isKeepScreenOn: boolean): Promise<void>;
635961847f8eSopenharmony_ci
636061847f8eSopenharmony_ci    /**
636161847f8eSopenharmony_ci     * Sets whether keep screen on or not.
636261847f8eSopenharmony_ci     *
636361847f8eSopenharmony_ci     * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.
636461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
636561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
636661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
636761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
636861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
636961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
637061847f8eSopenharmony_ci     * @since 9
637161847f8eSopenharmony_ci     */
637261847f8eSopenharmony_ci    /**
637361847f8eSopenharmony_ci     * Sets whether keep screen on or not.
637461847f8eSopenharmony_ci     *
637561847f8eSopenharmony_ci     * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.
637661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
637761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
637861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
637961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
638061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
638161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
638261847f8eSopenharmony_ci     * @crossplatform
638361847f8eSopenharmony_ci     * @since 10
638461847f8eSopenharmony_ci     */
638561847f8eSopenharmony_ci    /**
638661847f8eSopenharmony_ci     * Sets whether keep screen on or not.
638761847f8eSopenharmony_ci     *
638861847f8eSopenharmony_ci     * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.
638961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
639061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
639161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
639261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
639361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
639461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
639561847f8eSopenharmony_ci     * @crossplatform
639661847f8eSopenharmony_ci     * @atomicservice
639761847f8eSopenharmony_ci     * @since 11
639861847f8eSopenharmony_ci     */
639961847f8eSopenharmony_ci    setWindowKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback<void>): void;
640061847f8eSopenharmony_ci
640161847f8eSopenharmony_ci    /**
640261847f8eSopenharmony_ci     * Sets whether to wake up the screen when this ability is restored.
640361847f8eSopenharmony_ci     *
640461847f8eSopenharmony_ci     * @param { boolean } wakeUp Specifies whether to wake up the screen. True means to wake it up, false means not.
640561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
640661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
640761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
640861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
640961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
641061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
641161847f8eSopenharmony_ci     * @since 9
641261847f8eSopenharmony_ci     */
641361847f8eSopenharmony_ci    /**
641461847f8eSopenharmony_ci     * Sets whether to wake up the screen when this ability is restored.
641561847f8eSopenharmony_ci     *
641661847f8eSopenharmony_ci     * @param { boolean } wakeUp Specifies whether to wake up the screen. True means to wake it up, false means not.
641761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
641861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
641961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
642061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
642161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
642261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
642361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
642461847f8eSopenharmony_ci     * @since 12
642561847f8eSopenharmony_ci     */
642661847f8eSopenharmony_ci    setWakeUpScreen(wakeUp: boolean): void;
642761847f8eSopenharmony_ci
642861847f8eSopenharmony_ci    /**
642961847f8eSopenharmony_ci     * Sets whether outside can be touch or not.
643061847f8eSopenharmony_ci     *
643161847f8eSopenharmony_ci     * @param { boolean } touchable outside can be touch if true, or not if false.
643261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
643361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
643461847f8eSopenharmony_ci     * @since 7
643561847f8eSopenharmony_ci     * @deprecated since 9
643661847f8eSopenharmony_ci     */
643761847f8eSopenharmony_ci    setOutsideTouchable(touchable: boolean): Promise<void>;
643861847f8eSopenharmony_ci
643961847f8eSopenharmony_ci    /**
644061847f8eSopenharmony_ci     * Sets whether outside can be touch or not.
644161847f8eSopenharmony_ci     *
644261847f8eSopenharmony_ci     * @param { boolean } touchable outside can be touch if true, or not if false.
644361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
644461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
644561847f8eSopenharmony_ci     * @since 7
644661847f8eSopenharmony_ci     * @deprecated since 9
644761847f8eSopenharmony_ci     */
644861847f8eSopenharmony_ci    setOutsideTouchable(touchable: boolean, callback: AsyncCallback<void>): void;
644961847f8eSopenharmony_ci
645061847f8eSopenharmony_ci    /**
645161847f8eSopenharmony_ci     * Sets whether is private mode or not.
645261847f8eSopenharmony_ci     *
645361847f8eSopenharmony_ci     * @param { boolean } isPrivacyMode in private mode if true, or not if false.
645461847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
645561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
645661847f8eSopenharmony_ci     * @since 7
645761847f8eSopenharmony_ci     * @deprecated since 9
645861847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowPrivacyMode
645961847f8eSopenharmony_ci     */
646061847f8eSopenharmony_ci    setPrivacyMode(isPrivacyMode: boolean): Promise<void>;
646161847f8eSopenharmony_ci
646261847f8eSopenharmony_ci    /**
646361847f8eSopenharmony_ci     * Sets whether is private mode or not.
646461847f8eSopenharmony_ci     *
646561847f8eSopenharmony_ci     * @param { boolean } isPrivacyMode in private mode if true, or not if false.
646661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
646761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
646861847f8eSopenharmony_ci     * @since 7
646961847f8eSopenharmony_ci     * @deprecated since 9
647061847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowPrivacyMode
647161847f8eSopenharmony_ci     */
647261847f8eSopenharmony_ci    setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback<void>): void;
647361847f8eSopenharmony_ci
647461847f8eSopenharmony_ci    /**
647561847f8eSopenharmony_ci     * Sets whether is private mode or not.
647661847f8eSopenharmony_ci     *
647761847f8eSopenharmony_ci     * @permission ohos.permission.PRIVACY_WINDOW
647861847f8eSopenharmony_ci     * @param { boolean } isPrivacyMode in private mode if true, or not if false.
647961847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
648061847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
648161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
648261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
648361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
648461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
648561847f8eSopenharmony_ci     * @since 9
648661847f8eSopenharmony_ci     */
648761847f8eSopenharmony_ci    /**
648861847f8eSopenharmony_ci     * Sets whether is private mode or not.
648961847f8eSopenharmony_ci     *
649061847f8eSopenharmony_ci     * @permission ohos.permission.PRIVACY_WINDOW
649161847f8eSopenharmony_ci     * @param { boolean } isPrivacyMode in private mode if true, or not if false.
649261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
649361847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
649461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
649561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
649661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
649761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
649861847f8eSopenharmony_ci     * @atomicservice
649961847f8eSopenharmony_ci     * @since 12
650061847f8eSopenharmony_ci     */
650161847f8eSopenharmony_ci    setWindowPrivacyMode(isPrivacyMode: boolean): Promise<void>;
650261847f8eSopenharmony_ci
650361847f8eSopenharmony_ci    /**
650461847f8eSopenharmony_ci     * Sets whether is private mode or not.
650561847f8eSopenharmony_ci     *
650661847f8eSopenharmony_ci     * @permission ohos.permission.PRIVACY_WINDOW
650761847f8eSopenharmony_ci     * @param { boolean } isPrivacyMode in private mode if true, or not if false.
650861847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
650961847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
651061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
651161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
651261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
651361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
651461847f8eSopenharmony_ci     * @since 9
651561847f8eSopenharmony_ci     */
651661847f8eSopenharmony_ci    /**
651761847f8eSopenharmony_ci     * Sets whether is private mode or not.
651861847f8eSopenharmony_ci     *
651961847f8eSopenharmony_ci     * @permission ohos.permission.PRIVACY_WINDOW
652061847f8eSopenharmony_ci     * @param { boolean } isPrivacyMode in private mode if true, or not if false.
652161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
652261847f8eSopenharmony_ci     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
652361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
652461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
652561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
652661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
652761847f8eSopenharmony_ci     * @atomicservice
652861847f8eSopenharmony_ci     * @since 12
652961847f8eSopenharmony_ci     */
653061847f8eSopenharmony_ci    setWindowPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback<void>): void;
653161847f8eSopenharmony_ci
653261847f8eSopenharmony_ci    /**
653361847f8eSopenharmony_ci     * Ignore this window during screenshot.
653461847f8eSopenharmony_ci     *
653561847f8eSopenharmony_ci     * @param { boolean } isSkip skip if true, or not if false.
653661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
653761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
653861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
653961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
654061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
654161847f8eSopenharmony_ci     * @since 9
654261847f8eSopenharmony_ci     */
654361847f8eSopenharmony_ci    /**
654461847f8eSopenharmony_ci     * Ignore this window during screenshot.
654561847f8eSopenharmony_ci     *
654661847f8eSopenharmony_ci     * @param { boolean } isSkip skip if true, or not if false.
654761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
654861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
654961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
655061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
655161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
655261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
655361847f8eSopenharmony_ci     * @since 12
655461847f8eSopenharmony_ci     */
655561847f8eSopenharmony_ci    setSnapshotSkip(isSkip: boolean): void;
655661847f8eSopenharmony_ci
655761847f8eSopenharmony_ci    /**
655861847f8eSopenharmony_ci     * Sets whether is touchable or not.
655961847f8eSopenharmony_ci     *
656061847f8eSopenharmony_ci     * @param { boolean } isTouchable is touchable if true, or not if false.
656161847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
656261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
656361847f8eSopenharmony_ci     * @since 7
656461847f8eSopenharmony_ci     * @deprecated since 9
656561847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowTouchable
656661847f8eSopenharmony_ci     */
656761847f8eSopenharmony_ci    setTouchable(isTouchable: boolean): Promise<void>;
656861847f8eSopenharmony_ci
656961847f8eSopenharmony_ci    /**
657061847f8eSopenharmony_ci     * Sets whether is touchable or not.
657161847f8eSopenharmony_ci     *
657261847f8eSopenharmony_ci     * @param { boolean } isTouchable is touchable if true, or not if false.
657361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
657461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
657561847f8eSopenharmony_ci     * @since 7
657661847f8eSopenharmony_ci     * @deprecated since 9
657761847f8eSopenharmony_ci     * @useinstead ohos.window.Window#setWindowTouchable
657861847f8eSopenharmony_ci     */
657961847f8eSopenharmony_ci    setTouchable(isTouchable: boolean, callback: AsyncCallback<void>): void;
658061847f8eSopenharmony_ci
658161847f8eSopenharmony_ci    /**
658261847f8eSopenharmony_ci     * Sets whether is touchable or not.
658361847f8eSopenharmony_ci     *
658461847f8eSopenharmony_ci     * @param { boolean } isTouchable is touchable if true, or not if false.
658561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
658661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
658761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
658861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
658961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
659061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
659161847f8eSopenharmony_ci     * @since 9
659261847f8eSopenharmony_ci     */
659361847f8eSopenharmony_ci    /**
659461847f8eSopenharmony_ci     * Sets whether is touchable or not.
659561847f8eSopenharmony_ci     *
659661847f8eSopenharmony_ci     * @param { boolean } isTouchable is touchable if true, or not if false.
659761847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
659861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
659961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
660061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
660161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
660261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
660361847f8eSopenharmony_ci     * @atomicservice
660461847f8eSopenharmony_ci     * @since 12
660561847f8eSopenharmony_ci     */
660661847f8eSopenharmony_ci    setWindowTouchable(isTouchable: boolean): Promise<void>;
660761847f8eSopenharmony_ci
660861847f8eSopenharmony_ci    /**
660961847f8eSopenharmony_ci     * Sets whether is touchable or not.
661061847f8eSopenharmony_ci     *
661161847f8eSopenharmony_ci     * @param { boolean } isTouchable is touchable if true, or not if false.
661261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
661361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
661461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
661561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
661661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
661761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
661861847f8eSopenharmony_ci     * @since 9
661961847f8eSopenharmony_ci     */
662061847f8eSopenharmony_ci    /**
662161847f8eSopenharmony_ci     * Sets whether is touchable or not.
662261847f8eSopenharmony_ci     *
662361847f8eSopenharmony_ci     * @param { boolean } isTouchable is touchable if true, or not if false.
662461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
662561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
662661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
662761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
662861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
662961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
663061847f8eSopenharmony_ci     * @atomicservice
663161847f8eSopenharmony_ci     * @since 12
663261847f8eSopenharmony_ci     */
663361847f8eSopenharmony_ci    setWindowTouchable(isTouchable: boolean, callback: AsyncCallback<void>): void;
663461847f8eSopenharmony_ci
663561847f8eSopenharmony_ci    /**
663661847f8eSopenharmony_ci     * Set handwrite flag on the window. This flag means only response handwrite event.
663761847f8eSopenharmony_ci     *
663861847f8eSopenharmony_ci     * @param { boolean } enable - Add handwrite flag to window if true, or remove flag if false.
663961847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
664061847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
664161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
664261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
664361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
664461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
664561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
664661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
664761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
664861847f8eSopenharmony_ci     * @since 12
664961847f8eSopenharmony_ci     */
665061847f8eSopenharmony_ci    setHandwritingFlag(enable: boolean): Promise<void>;
665161847f8eSopenharmony_ci
665261847f8eSopenharmony_ci    /**
665361847f8eSopenharmony_ci     * Sets the flag of the window is forbidden to move in split screen mode
665461847f8eSopenharmony_ci     *
665561847f8eSopenharmony_ci     * @param { boolean } isForbidSplitMove the flag of the window is forbidden to move in split screen mode
665661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
665761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
665861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
665961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
666061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
666161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
666261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
666361847f8eSopenharmony_ci     * @systemapi
666461847f8eSopenharmony_ci     * @since 9
666561847f8eSopenharmony_ci     */
666661847f8eSopenharmony_ci    setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback<void>): void;
666761847f8eSopenharmony_ci
666861847f8eSopenharmony_ci    /**
666961847f8eSopenharmony_ci     * Sets the flag of the window is forbidden to move in split screen mode
667061847f8eSopenharmony_ci     *
667161847f8eSopenharmony_ci     * @param { boolean } isForbidSplitMove the flag of the window is forbidden to move in split screen mode
667261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
667361847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
667461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
667561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
667661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
667761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
667861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
667961847f8eSopenharmony_ci     * @systemapi
668061847f8eSopenharmony_ci     * @since 9
668161847f8eSopenharmony_ci     */
668261847f8eSopenharmony_ci    setForbidSplitMove(isForbidSplitMove: boolean): Promise<void>;
668361847f8eSopenharmony_ci
668461847f8eSopenharmony_ci    /**
668561847f8eSopenharmony_ci     * Obtains snapshot of window
668661847f8eSopenharmony_ci     *
668761847f8eSopenharmony_ci     * @param { AsyncCallback<image.PixelMap> } callback Callback used to return the result.
668861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
668961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
669061847f8eSopenharmony_ci     * @since 9
669161847f8eSopenharmony_ci     */
669261847f8eSopenharmony_ci    /**
669361847f8eSopenharmony_ci     * Obtains snapshot of window
669461847f8eSopenharmony_ci     *
669561847f8eSopenharmony_ci     * @param { AsyncCallback<image.PixelMap> } callback Callback used to return the result.
669661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
669761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
669861847f8eSopenharmony_ci     * @atomicservice
669961847f8eSopenharmony_ci     * @since 12
670061847f8eSopenharmony_ci     */
670161847f8eSopenharmony_ci    snapshot(callback: AsyncCallback<image.PixelMap>): void;
670261847f8eSopenharmony_ci
670361847f8eSopenharmony_ci    /**
670461847f8eSopenharmony_ci     * Obtains snapshot of window
670561847f8eSopenharmony_ci     *
670661847f8eSopenharmony_ci     * @returns { Promise<image.PixelMap> } Promise that returns no value.
670761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
670861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
670961847f8eSopenharmony_ci     * @since 9
671061847f8eSopenharmony_ci     */
671161847f8eSopenharmony_ci    /**
671261847f8eSopenharmony_ci     * Obtains snapshot of window
671361847f8eSopenharmony_ci     *
671461847f8eSopenharmony_ci     * @returns { Promise<image.PixelMap> } Promise that returns no value.
671561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
671661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
671761847f8eSopenharmony_ci     * @atomicservice
671861847f8eSopenharmony_ci     * @since 12
671961847f8eSopenharmony_ci     */
672061847f8eSopenharmony_ci    snapshot(): Promise<image.PixelMap>;
672161847f8eSopenharmony_ci
672261847f8eSopenharmony_ci    /**
672361847f8eSopenharmony_ci     * Sets opacity  of window
672461847f8eSopenharmony_ci     *
672561847f8eSopenharmony_ci     * @param { number } opacity Interval is 0.f-1.f.
672661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
672761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
672861847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
672961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
673061847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
673161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
673261847f8eSopenharmony_ci     * @systemapi
673361847f8eSopenharmony_ci     * @since 9
673461847f8eSopenharmony_ci     */
673561847f8eSopenharmony_ci    /**
673661847f8eSopenharmony_ci     * Sets opacity  of window
673761847f8eSopenharmony_ci     *
673861847f8eSopenharmony_ci     * @param { number } opacity Interval is 0.f-1.f.
673961847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
674061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
674161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
674261847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
674361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
674461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
674561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
674661847f8eSopenharmony_ci     * @systemapi
674761847f8eSopenharmony_ci     * @since 12
674861847f8eSopenharmony_ci     */
674961847f8eSopenharmony_ci    opacity(opacity: number): void;
675061847f8eSopenharmony_ci
675161847f8eSopenharmony_ci    /**
675261847f8eSopenharmony_ci     * Sets scale options of window.
675361847f8eSopenharmony_ci     *
675461847f8eSopenharmony_ci     * @param { ScaleOptions } scaleOptions scale param of window.
675561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
675661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
675761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
675861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
675961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
676061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
676161847f8eSopenharmony_ci     * @systemapi
676261847f8eSopenharmony_ci     * @since 9
676361847f8eSopenharmony_ci     */
676461847f8eSopenharmony_ci    /**
676561847f8eSopenharmony_ci     * Sets scale options of window.
676661847f8eSopenharmony_ci     *
676761847f8eSopenharmony_ci     * @param { ScaleOptions } scaleOptions scale param of window.
676861847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
676961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
677061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
677161847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
677261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
677361847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
677461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
677561847f8eSopenharmony_ci     * @systemapi
677661847f8eSopenharmony_ci     * @since 12
677761847f8eSopenharmony_ci     */
677861847f8eSopenharmony_ci    scale(scaleOptions: ScaleOptions): void;
677961847f8eSopenharmony_ci
678061847f8eSopenharmony_ci    /**
678161847f8eSopenharmony_ci     * Sets rotate options of window.
678261847f8eSopenharmony_ci     *
678361847f8eSopenharmony_ci     * @param { RotateOptions } rotateOptions rotate param of window.
678461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
678561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
678661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
678761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
678861847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
678961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
679061847f8eSopenharmony_ci     * @systemapi
679161847f8eSopenharmony_ci     * @since 9
679261847f8eSopenharmony_ci     */
679361847f8eSopenharmony_ci    /**
679461847f8eSopenharmony_ci     * Sets rotate options of window.
679561847f8eSopenharmony_ci     *
679661847f8eSopenharmony_ci     * @param { RotateOptions } rotateOptions rotate param of window.
679761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
679861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
679961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
680061847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
680161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
680261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
680361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
680461847f8eSopenharmony_ci     * @systemapi
680561847f8eSopenharmony_ci     * @since 12
680661847f8eSopenharmony_ci     */
680761847f8eSopenharmony_ci    rotate(rotateOptions: RotateOptions): void;
680861847f8eSopenharmony_ci
680961847f8eSopenharmony_ci    /**
681061847f8eSopenharmony_ci     * Sets translate options of window.
681161847f8eSopenharmony_ci     *
681261847f8eSopenharmony_ci     * @param { TranslateOptions } translateOptions translate param of window.
681361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
681461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
681561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
681661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
681761847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
681861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
681961847f8eSopenharmony_ci     * @systemapi
682061847f8eSopenharmony_ci     * @since 9
682161847f8eSopenharmony_ci     */
682261847f8eSopenharmony_ci    /**
682361847f8eSopenharmony_ci     * Sets translate options of window.
682461847f8eSopenharmony_ci     *
682561847f8eSopenharmony_ci     * @param { TranslateOptions } translateOptions translate param of window.
682661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
682761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
682861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
682961847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
683061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
683161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
683261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
683361847f8eSopenharmony_ci     * @systemapi
683461847f8eSopenharmony_ci     * @since 12
683561847f8eSopenharmony_ci     */
683661847f8eSopenharmony_ci    translate(translateOptions: TranslateOptions): void;
683761847f8eSopenharmony_ci
683861847f8eSopenharmony_ci    /**
683961847f8eSopenharmony_ci     * Get Transition Controller.
684061847f8eSopenharmony_ci     *
684161847f8eSopenharmony_ci     * @returns { TransitionController }
684261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
684361847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
684461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
684561847f8eSopenharmony_ci     * @systemapi
684661847f8eSopenharmony_ci     * @since 9
684761847f8eSopenharmony_ci     */
684861847f8eSopenharmony_ci    /**
684961847f8eSopenharmony_ci     * Get Transition Controller.
685061847f8eSopenharmony_ci     *
685161847f8eSopenharmony_ci     * @returns { TransitionController }
685261847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
685361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
685461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
685561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
685661847f8eSopenharmony_ci     * @systemapi
685761847f8eSopenharmony_ci     * @since 12
685861847f8eSopenharmony_ci     */
685961847f8eSopenharmony_ci    getTransitionController(): TransitionController;
686061847f8eSopenharmony_ci
686161847f8eSopenharmony_ci    /**
686261847f8eSopenharmony_ci     * Sets the window blur radius.
686361847f8eSopenharmony_ci     *
686461847f8eSopenharmony_ci     * @param { number } radius the blur radius.
686561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
686661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
686761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
686861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
686961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
687061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
687161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
687261847f8eSopenharmony_ci     * @since 9
687361847f8eSopenharmony_ci     */
687461847f8eSopenharmony_ci    /**
687561847f8eSopenharmony_ci     * Sets the window blur radius.
687661847f8eSopenharmony_ci     *
687761847f8eSopenharmony_ci     * @param { number } radius the blur radius.
687861847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
687961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
688061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
688161847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
688261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
688361847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
688461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
688561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
688661847f8eSopenharmony_ci     * @since 12
688761847f8eSopenharmony_ci     */
688861847f8eSopenharmony_ci    setBlur(radius: number): void;
688961847f8eSopenharmony_ci
689061847f8eSopenharmony_ci    /**
689161847f8eSopenharmony_ci     * Sets the window backdrop blur radius.
689261847f8eSopenharmony_ci     *
689361847f8eSopenharmony_ci     * @param { number } radius the blur radius.
689461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
689561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
689661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
689761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
689861847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
689961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
690061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
690161847f8eSopenharmony_ci     * @since 9
690261847f8eSopenharmony_ci     */
690361847f8eSopenharmony_ci    /**
690461847f8eSopenharmony_ci     * Sets the window backdrop blur radius.
690561847f8eSopenharmony_ci     *
690661847f8eSopenharmony_ci     * @param { number } radius the blur radius.
690761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
690861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
690961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
691061847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
691161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
691261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
691361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
691461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
691561847f8eSopenharmony_ci     * @since 12
691661847f8eSopenharmony_ci     */
691761847f8eSopenharmony_ci    setBackdropBlur(radius: number): void;
691861847f8eSopenharmony_ci
691961847f8eSopenharmony_ci    /**
692061847f8eSopenharmony_ci     * Sets the window backdrop blur style.
692161847f8eSopenharmony_ci     *
692261847f8eSopenharmony_ci     * @param { BlurStyle } blurStyle the specified blur style.
692361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
692461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
692561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
692661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
692761847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
692861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
692961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
693061847f8eSopenharmony_ci     * @since 9
693161847f8eSopenharmony_ci     */
693261847f8eSopenharmony_ci    /**
693361847f8eSopenharmony_ci     * Sets the window backdrop blur style.
693461847f8eSopenharmony_ci     *
693561847f8eSopenharmony_ci     * @param { BlurStyle } blurStyle the specified blur style.
693661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
693761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
693861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
693961847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
694061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
694161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
694261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
694361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
694461847f8eSopenharmony_ci     * @since 12
694561847f8eSopenharmony_ci     */
694661847f8eSopenharmony_ci    setBackdropBlurStyle(blurStyle: BlurStyle): void;
694761847f8eSopenharmony_ci
694861847f8eSopenharmony_ci    /**
694961847f8eSopenharmony_ci     * Sets shadow.
695061847f8eSopenharmony_ci     *
695161847f8eSopenharmony_ci     * @param { number } radius the radius of the shadow.
695261847f8eSopenharmony_ci     * @param { string } color the color of the shadow.
695361847f8eSopenharmony_ci     * @param { number } offsetX the offset of the shadow on the x-axis.
695461847f8eSopenharmony_ci     * @param { number } offsetY the offset of the shadow on the y-axis.
695561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
695661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
695761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
695861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
695961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
696061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
696161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
696261847f8eSopenharmony_ci     * @since 9
696361847f8eSopenharmony_ci     */
696461847f8eSopenharmony_ci    /**
696561847f8eSopenharmony_ci     * Sets shadow.
696661847f8eSopenharmony_ci     *
696761847f8eSopenharmony_ci     * @param { number } radius the radius of the shadow.
696861847f8eSopenharmony_ci     * @param { string } color the color of the shadow.
696961847f8eSopenharmony_ci     * @param { number } offsetX the offset of the shadow on the x-axis.
697061847f8eSopenharmony_ci     * @param { number } offsetY the offset of the shadow on the y-axis.
697161847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
697261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
697361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
697461847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
697561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
697661847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
697761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
697861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
697961847f8eSopenharmony_ci     * @since 12
698061847f8eSopenharmony_ci     */
698161847f8eSopenharmony_ci    setShadow(radius: number, color?: string, offsetX?: number, offsetY?: number): void;
698261847f8eSopenharmony_ci
698361847f8eSopenharmony_ci    /**
698461847f8eSopenharmony_ci     * Sets corner radius.
698561847f8eSopenharmony_ci     *
698661847f8eSopenharmony_ci     * @param { number } cornerRadius the corner radius.
698761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
698861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
698961847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
699061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
699161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
699261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
699361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
699461847f8eSopenharmony_ci     * @since 9
699561847f8eSopenharmony_ci     */
699661847f8eSopenharmony_ci    /**
699761847f8eSopenharmony_ci     * Sets corner radius.
699861847f8eSopenharmony_ci     *
699961847f8eSopenharmony_ci     * @param { number } cornerRadius the corner radius.
700061847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
700161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
700261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
700361847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
700461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
700561847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
700661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
700761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
700861847f8eSopenharmony_ci     * @since 12
700961847f8eSopenharmony_ci     */
701061847f8eSopenharmony_ci    setCornerRadius(cornerRadius: number): void;
701161847f8eSopenharmony_ci
701261847f8eSopenharmony_ci    /**
701361847f8eSopenharmony_ci     * Raise app sub window to app top
701461847f8eSopenharmony_ci     *
701561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of raiseToAppTop
701661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
701761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
701861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
701961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
702061847f8eSopenharmony_ci     * @throws { BusinessError } 1300009 - The parent window is invalid.
702161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
702261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
702361847f8eSopenharmony_ci     * @since 10
702461847f8eSopenharmony_ci     */
702561847f8eSopenharmony_ci    raiseToAppTop(callback: AsyncCallback<void>): void;
702661847f8eSopenharmony_ci
702761847f8eSopenharmony_ci    /**
702861847f8eSopenharmony_ci     * Raise app sub window to app top
702961847f8eSopenharmony_ci     *
703061847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function
703161847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
703261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
703361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
703461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
703561847f8eSopenharmony_ci     * @throws { BusinessError } 1300009 - The parent window is invalid.
703661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
703761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
703861847f8eSopenharmony_ci     * @since 10
703961847f8eSopenharmony_ci     */
704061847f8eSopenharmony_ci    raiseToAppTop(): Promise<void>;
704161847f8eSopenharmony_ci
704261847f8eSopenharmony_ci    /**
704361847f8eSopenharmony_ci     * Sets the aspect ratio of window
704461847f8eSopenharmony_ci     *
704561847f8eSopenharmony_ci     * @param { number } ratio - The aspect ratio of window except decoration
704661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setAspectRatio.
704761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
704861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
704961847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
705061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
705161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
705261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
705361847f8eSopenharmony_ci     * @since 10
705461847f8eSopenharmony_ci     */
705561847f8eSopenharmony_ci    /**
705661847f8eSopenharmony_ci     * Sets the aspect ratio of window
705761847f8eSopenharmony_ci     *
705861847f8eSopenharmony_ci     * @param { number } ratio - The aspect ratio of window except decoration
705961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setAspectRatio.
706061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
706161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
706261847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
706361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
706461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
706561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
706661847f8eSopenharmony_ci     * @atomicservice
706761847f8eSopenharmony_ci     * @since 12
706861847f8eSopenharmony_ci     */
706961847f8eSopenharmony_ci    setAspectRatio(ratio: number, callback: AsyncCallback<void>): void;
707061847f8eSopenharmony_ci
707161847f8eSopenharmony_ci    /**
707261847f8eSopenharmony_ci     * Sets the aspect ratio of window
707361847f8eSopenharmony_ci     *
707461847f8eSopenharmony_ci     * @param { number } ratio - The aspect ratio of window except decoration
707561847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
707661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
707761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
707861847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
707961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
708061847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
708161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
708261847f8eSopenharmony_ci     * @since 10
708361847f8eSopenharmony_ci     */
708461847f8eSopenharmony_ci    /**
708561847f8eSopenharmony_ci     * Sets the aspect ratio of window
708661847f8eSopenharmony_ci     *
708761847f8eSopenharmony_ci     * @param { number } ratio - The aspect ratio of window except decoration
708861847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
708961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
709061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
709161847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
709261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
709361847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
709461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
709561847f8eSopenharmony_ci     * @atomicservice
709661847f8eSopenharmony_ci     * @since 12
709761847f8eSopenharmony_ci     */
709861847f8eSopenharmony_ci    setAspectRatio(ratio: number): Promise<void>;
709961847f8eSopenharmony_ci
710061847f8eSopenharmony_ci    /**
710161847f8eSopenharmony_ci     * Resets the aspect ratio of window
710261847f8eSopenharmony_ci     *
710361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setAspectRatio.
710461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
710561847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
710661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
710761847f8eSopenharmony_ci     * @since 10
710861847f8eSopenharmony_ci     */
710961847f8eSopenharmony_ci    /**
711061847f8eSopenharmony_ci     * Resets the aspect ratio of window
711161847f8eSopenharmony_ci     *
711261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setAspectRatio.
711361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
711461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
711561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
711661847f8eSopenharmony_ci     * @atomicservice
711761847f8eSopenharmony_ci     * @since 12
711861847f8eSopenharmony_ci     */
711961847f8eSopenharmony_ci    resetAspectRatio(callback: AsyncCallback<void>): void;
712061847f8eSopenharmony_ci
712161847f8eSopenharmony_ci    /**
712261847f8eSopenharmony_ci     * Resets the aspect ratio of window
712361847f8eSopenharmony_ci     *
712461847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
712561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
712661847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
712761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
712861847f8eSopenharmony_ci     * @since 10
712961847f8eSopenharmony_ci     */
713061847f8eSopenharmony_ci    /**
713161847f8eSopenharmony_ci     * Resets the aspect ratio of window
713261847f8eSopenharmony_ci     *
713361847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
713461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
713561847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
713661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
713761847f8eSopenharmony_ci     * @atomicservice
713861847f8eSopenharmony_ci     * @since 12
713961847f8eSopenharmony_ci     */
714061847f8eSopenharmony_ci    resetAspectRatio(): Promise<void>;
714161847f8eSopenharmony_ci
714261847f8eSopenharmony_ci    /**
714361847f8eSopenharmony_ci     * Set the watermark flag on the window.
714461847f8eSopenharmony_ci     *
714561847f8eSopenharmony_ci     * @param { boolean } enable - Add water mark flag to window if true, or remove flag if false.
714661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setWaterMarkFlag.
714761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
714861847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
714961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
715061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
715161847f8eSopenharmony_ci     * @throws { BusinessError } 1300008 - The display device is abnormal.
715261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
715361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
715461847f8eSopenharmony_ci     * @since 10
715561847f8eSopenharmony_ci     */
715661847f8eSopenharmony_ci    /**
715761847f8eSopenharmony_ci     * Set the watermark flag on the window.
715861847f8eSopenharmony_ci     *
715961847f8eSopenharmony_ci     * @param { boolean } enable - Add water mark flag to window if true, or remove flag if false.
716061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setWaterMarkFlag.
716161847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
716261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
716361847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
716461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
716561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
716661847f8eSopenharmony_ci     * @throws { BusinessError } 1300008 - The display device is abnormal.
716761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
716861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
716961847f8eSopenharmony_ci     * @since 12
717061847f8eSopenharmony_ci     */
717161847f8eSopenharmony_ci    setWaterMarkFlag(enable: boolean, callback: AsyncCallback<void>): void;
717261847f8eSopenharmony_ci
717361847f8eSopenharmony_ci    /**
717461847f8eSopenharmony_ci     * Set the watermark flag on the window
717561847f8eSopenharmony_ci     *
717661847f8eSopenharmony_ci     * @param { boolean } enable - Add water mark flag to window if true, or remove flag if false
717761847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function
717861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
717961847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
718061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
718161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
718261847f8eSopenharmony_ci     * @throws { BusinessError } 1300008 - The display device is abnormal.
718361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
718461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
718561847f8eSopenharmony_ci     * @since 10
718661847f8eSopenharmony_ci     */
718761847f8eSopenharmony_ci    /**
718861847f8eSopenharmony_ci     * Set the watermark flag on the window
718961847f8eSopenharmony_ci     *
719061847f8eSopenharmony_ci     * @param { boolean } enable - Add water mark flag to window if true, or remove flag if false
719161847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function
719261847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
719361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.
719461847f8eSopenharmony_ci     * <br>2. Incorrect parameter types.
719561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
719661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
719761847f8eSopenharmony_ci     * @throws { BusinessError } 1300008 - The display device is abnormal.
719861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
719961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
720061847f8eSopenharmony_ci     * @since 12
720161847f8eSopenharmony_ci     */
720261847f8eSopenharmony_ci    setWaterMarkFlag(enable: boolean): Promise<void>;
720361847f8eSopenharmony_ci
720461847f8eSopenharmony_ci    /**
720561847f8eSopenharmony_ci     * Raise one app sub window above another.
720661847f8eSopenharmony_ci     *
720761847f8eSopenharmony_ci     * @param { number } windowId - Indicates target window id.
720861847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of raiseAboveTarget.
720961847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
721061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Mandatory parameters are left unspecified.
721161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
721261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
721361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
721461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
721561847f8eSopenharmony_ci     * @throws { BusinessError } 1300009 - The parent window is invalid.
721661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
721761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
721861847f8eSopenharmony_ci     * @since 10
721961847f8eSopenharmony_ci     */
722061847f8eSopenharmony_ci    raiseAboveTarget(windowId: number, callback: AsyncCallback<void>): void;
722161847f8eSopenharmony_ci
722261847f8eSopenharmony_ci    /**
722361847f8eSopenharmony_ci     * Raise one app sub window above another.
722461847f8eSopenharmony_ci     *
722561847f8eSopenharmony_ci     * @param { number } windowId - Indicates target window id.
722661847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
722761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
722861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Mandatory parameters are left unspecified.
722961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
723061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
723161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
723261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
723361847f8eSopenharmony_ci     * @throws { BusinessError } 1300009 - The parent window is invalid.
723461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
723561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
723661847f8eSopenharmony_ci     * @since 10
723761847f8eSopenharmony_ci     */
723861847f8eSopenharmony_ci    raiseAboveTarget(windowId: number): Promise<void>;
723961847f8eSopenharmony_ci
724061847f8eSopenharmony_ci    /**
724161847f8eSopenharmony_ci     * Set whether to enable an app sub window to raise itself by click.
724261847f8eSopenharmony_ci     *
724361847f8eSopenharmony_ci     * @param { boolean } enable - Disable app sub window to raise itself by by click if false.
724461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setRaiseByClickEnabled.
724561847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
724661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
724761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
724861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
724961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
725061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
725161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
725261847f8eSopenharmony_ci     * @throws { BusinessError } 1300009 - The parent window is invalid.
725361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
725461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
725561847f8eSopenharmony_ci     * @since 10
725661847f8eSopenharmony_ci     */
725761847f8eSopenharmony_ci    setRaiseByClickEnabled(enable: boolean, callback: AsyncCallback<void>): void;
725861847f8eSopenharmony_ci
725961847f8eSopenharmony_ci    /**
726061847f8eSopenharmony_ci     * Set whether to enable an app sub window to raise itself by click.
726161847f8eSopenharmony_ci     *
726261847f8eSopenharmony_ci     * @param { boolean } enable - Disable app sub window to raise itself by by click if false.
726361847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
726461847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
726561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
726661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
726761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
726861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
726961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
727061847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
727161847f8eSopenharmony_ci     * @throws { BusinessError } 1300009 - The parent window is invalid.
727261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
727361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
727461847f8eSopenharmony_ci     * @since 10
727561847f8eSopenharmony_ci     */
727661847f8eSopenharmony_ci    setRaiseByClickEnabled(enable: boolean): Promise<void>;
727761847f8eSopenharmony_ci
727861847f8eSopenharmony_ci    /**
727961847f8eSopenharmony_ci     * Minimize app main window and hide app subWindow.
728061847f8eSopenharmony_ci     *
728161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of Minimize.
728261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
728361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
728461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
728561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
728661847f8eSopenharmony_ci     * @since 11
728761847f8eSopenharmony_ci     */
728861847f8eSopenharmony_ci    /**
728961847f8eSopenharmony_ci     * Minimize app main window and hide app subWindow.
729061847f8eSopenharmony_ci     *
729161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of Minimize.
729261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
729361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
729461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
729561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
729661847f8eSopenharmony_ci     * @atomicservice
729761847f8eSopenharmony_ci     * @since 12
729861847f8eSopenharmony_ci     */
729961847f8eSopenharmony_ci    minimize(callback: AsyncCallback<void>): void;
730061847f8eSopenharmony_ci
730161847f8eSopenharmony_ci    /**
730261847f8eSopenharmony_ci     * Minimize app main window and hide app subWindow.
730361847f8eSopenharmony_ci     *
730461847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
730561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
730661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
730761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
730861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
730961847f8eSopenharmony_ci     * @since 11
731061847f8eSopenharmony_ci     */
731161847f8eSopenharmony_ci    /**
731261847f8eSopenharmony_ci     * Minimize app main window and hide app subWindow.
731361847f8eSopenharmony_ci     *
731461847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
731561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
731661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
731761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
731861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
731961847f8eSopenharmony_ci     * @atomicservice
732061847f8eSopenharmony_ci     * @since 12
732161847f8eSopenharmony_ci     */
732261847f8eSopenharmony_ci    minimize(): Promise<void>;
732361847f8eSopenharmony_ci
732461847f8eSopenharmony_ci    /**
732561847f8eSopenharmony_ci     * Maximize app main window.
732661847f8eSopenharmony_ci     * @param { MaximizePresentation } presentation - set window presentation when maximize.
732761847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
732861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
732961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
733061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
733161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
733261847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
733361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
733461847f8eSopenharmony_ci     * @atomicservice
733561847f8eSopenharmony_ci     * @since 12
733661847f8eSopenharmony_ci     */
733761847f8eSopenharmony_ci    maximize(presentation?: MaximizePresentation): Promise<void>;
733861847f8eSopenharmony_ci
733961847f8eSopenharmony_ci    /**
734061847f8eSopenharmony_ci     * Set whether to enable a window to resize by drag.
734161847f8eSopenharmony_ci     *
734261847f8eSopenharmony_ci     * @param { boolean } enable - Disable window to resize by drag if false.
734361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setResizeByDragEnabled.
734461847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
734561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
734661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
734761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
734861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
734961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
735061847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
735161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
735261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
735361847f8eSopenharmony_ci     * @since 10
735461847f8eSopenharmony_ci     */
735561847f8eSopenharmony_ci    /**
735661847f8eSopenharmony_ci     * Set whether to enable a window to resize by drag.
735761847f8eSopenharmony_ci     *
735861847f8eSopenharmony_ci     * @param { boolean } enable - Disable window to resize by drag if false.
735961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of setResizeByDragEnabled.
736061847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
736161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
736261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
736361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
736461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
736561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
736661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
736761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
736861847f8eSopenharmony_ci     * @since 11
736961847f8eSopenharmony_ci     */
737061847f8eSopenharmony_ci    setResizeByDragEnabled(enable: boolean, callback: AsyncCallback<void>): void;
737161847f8eSopenharmony_ci
737261847f8eSopenharmony_ci    /**
737361847f8eSopenharmony_ci     * Set whether to enable a window to resize by drag.
737461847f8eSopenharmony_ci     *
737561847f8eSopenharmony_ci     * @param { boolean } enable - Disable window to resize by drag if false.
737661847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
737761847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
737861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
737961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
738061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
738161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
738261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
738361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
738461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
738561847f8eSopenharmony_ci     * @since 10
738661847f8eSopenharmony_ci     */
738761847f8eSopenharmony_ci    setResizeByDragEnabled(enable: boolean): Promise<void>;
738861847f8eSopenharmony_ci
738961847f8eSopenharmony_ci    /**
739061847f8eSopenharmony_ci     * Hide the non-system floating windows.
739161847f8eSopenharmony_ci     *
739261847f8eSopenharmony_ci     * @param { boolean } shouldHide - Hide the non-system floating windows if true, otherwise means the opposite.
739361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - The callback of hideNonSystemFloatingWindows.
739461847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
739561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
739661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
739761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
739861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
739961847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
740061847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
740161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
740261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
740361847f8eSopenharmony_ci     * @since 11
740461847f8eSopenharmony_ci     */
740561847f8eSopenharmony_ci    hideNonSystemFloatingWindows(shouldHide: boolean, callback: AsyncCallback<void>): void;
740661847f8eSopenharmony_ci
740761847f8eSopenharmony_ci    /**
740861847f8eSopenharmony_ci     * Hide the non-system floating windows.
740961847f8eSopenharmony_ci     *
741061847f8eSopenharmony_ci     * @param { boolean } shouldHide - Hide the non-system floating windows if true, otherwise means the opposite.
741161847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
741261847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
741361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
741461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
741561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
741661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
741761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
741861847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
741961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
742061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
742161847f8eSopenharmony_ci     * @since 11
742261847f8eSopenharmony_ci     */
742361847f8eSopenharmony_ci    hideNonSystemFloatingWindows(shouldHide: boolean): Promise<void>;
742461847f8eSopenharmony_ci
742561847f8eSopenharmony_ci    /**
742661847f8eSopenharmony_ci     * Get the window limits of current window.
742761847f8eSopenharmony_ci     *
742861847f8eSopenharmony_ci     * @returns { WindowLimits } - The limits of window.
742961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
743061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
743161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
743261847f8eSopenharmony_ci     * @since 11
743361847f8eSopenharmony_ci     */
743461847f8eSopenharmony_ci    /**
743561847f8eSopenharmony_ci     * Get the window limits of current window.
743661847f8eSopenharmony_ci     *
743761847f8eSopenharmony_ci     * @returns { WindowLimits } - The limits of window.
743861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
743961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
744061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
744161847f8eSopenharmony_ci     * @atomicservice
744261847f8eSopenharmony_ci     * @since 12
744361847f8eSopenharmony_ci     */
744461847f8eSopenharmony_ci    getWindowLimits(): WindowLimits;
744561847f8eSopenharmony_ci
744661847f8eSopenharmony_ci    /**
744761847f8eSopenharmony_ci     * Set the window limits of a window.
744861847f8eSopenharmony_ci     *
744961847f8eSopenharmony_ci     * @param { WindowLimits } windowLimits - window limits of the window.
745061847f8eSopenharmony_ci     * @returns { Promise<WindowLimits> } - Promise is used to return the limits of window.
745161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
745261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
745361847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
745461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
745561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
745661847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
745761847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
745861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
745961847f8eSopenharmony_ci     * @since 11
746061847f8eSopenharmony_ci     */
746161847f8eSopenharmony_ci    /**
746261847f8eSopenharmony_ci     * Set the window limits of a window.
746361847f8eSopenharmony_ci     *
746461847f8eSopenharmony_ci     * @param { WindowLimits } windowLimits - window limits of the window.
746561847f8eSopenharmony_ci     * @returns { Promise<WindowLimits> } - Promise is used to return the limits of window.
746661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
746761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
746861847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
746961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
747061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
747161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
747261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
747361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
747461847f8eSopenharmony_ci     * @atomicservice
747561847f8eSopenharmony_ci     * @since 12
747661847f8eSopenharmony_ci     */
747761847f8eSopenharmony_ci    setWindowLimits(windowLimits: WindowLimits): Promise<WindowLimits>;
747861847f8eSopenharmony_ci
747961847f8eSopenharmony_ci    /**
748061847f8eSopenharmony_ci     * Set whether to enable the single frame composer.
748161847f8eSopenharmony_ci     *
748261847f8eSopenharmony_ci     * @param { boolean } enable - Enable the single frame composer if true, otherwise means the opposite.
748361847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
748461847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
748561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
748661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
748761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
748861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
748961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
749061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
749161847f8eSopenharmony_ci     * @since 11
749261847f8eSopenharmony_ci     */
749361847f8eSopenharmony_ci    setSingleFrameComposerEnabled(enable: boolean): Promise<void>;
749461847f8eSopenharmony_ci
749561847f8eSopenharmony_ci    /**
749661847f8eSopenharmony_ci     * When get focused, keep the keyboard created by other windows, support system window and app subwindow.
749761847f8eSopenharmony_ci     *
749861847f8eSopenharmony_ci     * @param { boolean } keepKeyboardFlag - keep the keyboard if true, otherwise means the opposite.
749961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
750061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
750161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
750261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
750361847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
750461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
750561847f8eSopenharmony_ci     * @since 11
750661847f8eSopenharmony_ci     */
750761847f8eSopenharmony_ci    /**
750861847f8eSopenharmony_ci     * When get focused, keep the keyboard created by other windows, support system window and app subwindow.
750961847f8eSopenharmony_ci     *
751061847f8eSopenharmony_ci     * @param { boolean } keepKeyboardFlag - keep the keyboard if true, otherwise means the opposite.
751161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
751261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
751361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
751461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
751561847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
751661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
751761847f8eSopenharmony_ci     * @atomicservice
751861847f8eSopenharmony_ci     * @since 12
751961847f8eSopenharmony_ci     */
752061847f8eSopenharmony_ci    keepKeyboardOnFocus(keepKeyboardFlag: boolean): void;
752161847f8eSopenharmony_ci
752261847f8eSopenharmony_ci    /**
752361847f8eSopenharmony_ci     * Recover app main window.
752461847f8eSopenharmony_ci     *
752561847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
752661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
752761847f8eSopenharmony_ci     * @throws { BusinessError } 1300001 - Repeated operation.
752861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
752961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
753061847f8eSopenharmony_ci     * @since 11
753161847f8eSopenharmony_ci     */
753261847f8eSopenharmony_ci    /**
753361847f8eSopenharmony_ci     * Recover app main window.
753461847f8eSopenharmony_ci     *
753561847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
753661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
753761847f8eSopenharmony_ci     * @throws { BusinessError } 1300001 - Repeated operation.
753861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
753961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
754061847f8eSopenharmony_ci     * @atomicservice
754161847f8eSopenharmony_ci     * @since 12
754261847f8eSopenharmony_ci     */
754361847f8eSopenharmony_ci    recover(): Promise<void>;
754461847f8eSopenharmony_ci
754561847f8eSopenharmony_ci    /**
754661847f8eSopenharmony_ci     * After the app main window is minimized, if the Ability is not in the background state, you can restore app main window.
754761847f8eSopenharmony_ci     *
754861847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
754961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
755061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
755161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
755261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
755361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
755461847f8eSopenharmony_ci     * @atomicservice
755561847f8eSopenharmony_ci     * @since 14
755661847f8eSopenharmony_ci     */
755761847f8eSopenharmony_ci    restore(): Promise<void>;
755861847f8eSopenharmony_ci
755961847f8eSopenharmony_ci    /**
756061847f8eSopenharmony_ci     * Set the visibility of the window decor.
756161847f8eSopenharmony_ci     *
756261847f8eSopenharmony_ci     * @param { boolean } - Enable the decor visible if true, otherwise means the opposite.
756361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
756461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
756561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
756661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
756761847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
756861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
756961847f8eSopenharmony_ci     * @since 11
757061847f8eSopenharmony_ci     */
757161847f8eSopenharmony_ci    /**
757261847f8eSopenharmony_ci     * Set the visibility of the window decor.
757361847f8eSopenharmony_ci     *
757461847f8eSopenharmony_ci     * @param { boolean } isVisible - Enable the decor visible if true, otherwise means the opposite.
757561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
757661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
757761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
757861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
757961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
758061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
758161847f8eSopenharmony_ci     * @atomicservice
758261847f8eSopenharmony_ci     * @since 12
758361847f8eSopenharmony_ci     */
758461847f8eSopenharmony_ci    setWindowDecorVisible(isVisible: boolean): void;
758561847f8eSopenharmony_ci	
758661847f8eSopenharmony_ci    /**
758761847f8eSopenharmony_ci     * Set the modality of the window.
758861847f8eSopenharmony_ci     *
758961847f8eSopenharmony_ci     * @param { boolean } isModal - Enable the window modal if true, otherwise means the opposite.
759061847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
759161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
759261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
759361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
759461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
759561847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
759661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
759761847f8eSopenharmony_ci     * @atomicservice
759861847f8eSopenharmony_ci     * @since 12
759961847f8eSopenharmony_ci     */
760061847f8eSopenharmony_ci    setSubWindowModal(isModal: boolean): Promise<void>;
760161847f8eSopenharmony_ci
760261847f8eSopenharmony_ci    /**
760361847f8eSopenharmony_ci     * Set the modality of the window.
760461847f8eSopenharmony_ci     *
760561847f8eSopenharmony_ci     * @param { boolean } isModal - Enable the window modal if true, otherwise means the opposite.
760661847f8eSopenharmony_ci     * @param { ModalityType } modalityType - Set modality type when the window modal is true. 
760761847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
760861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
760961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
761061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
761161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
761261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
761361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
761461847f8eSopenharmony_ci     * @atomicservice
761561847f8eSopenharmony_ci     * @since 14
761661847f8eSopenharmony_ci     */
761761847f8eSopenharmony_ci    setSubWindowModal(isModal: boolean, modalityType: ModalityType): Promise<void>;
761861847f8eSopenharmony_ci
761961847f8eSopenharmony_ci    /**
762061847f8eSopenharmony_ci     * Set the height of the window decor.
762161847f8eSopenharmony_ci     *
762261847f8eSopenharmony_ci     * @param { number } - The height of window decor.
762361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
762461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
762561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
762661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
762761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
762861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
762961847f8eSopenharmony_ci     * @since 11
763061847f8eSopenharmony_ci     */
763161847f8eSopenharmony_ci    /**
763261847f8eSopenharmony_ci     * Set the height of the window decor.
763361847f8eSopenharmony_ci     *
763461847f8eSopenharmony_ci     * @param { number } height - The height of window decor.
763561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
763661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
763761847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
763861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
763961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
764061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
764161847f8eSopenharmony_ci     * @atomicservice
764261847f8eSopenharmony_ci     * @since 12
764361847f8eSopenharmony_ci     */
764461847f8eSopenharmony_ci    setWindowDecorHeight(height: number): void;
764561847f8eSopenharmony_ci	
764661847f8eSopenharmony_ci    /**
764761847f8eSopenharmony_ci     * Get the height of the window decor.
764861847f8eSopenharmony_ci     *
764961847f8eSopenharmony_ci     * @returns { number } - The height of window decor.
765061847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
765161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
765261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
765361847f8eSopenharmony_ci     * @since 11
765461847f8eSopenharmony_ci     */
765561847f8eSopenharmony_ci    /**
765661847f8eSopenharmony_ci     * Get the height of the window decor.
765761847f8eSopenharmony_ci     *
765861847f8eSopenharmony_ci     * @returns { number } - The height of window decor.
765961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
766061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
766161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
766261847f8eSopenharmony_ci     * @atomicservice
766361847f8eSopenharmony_ci     * @since 12
766461847f8eSopenharmony_ci     */
766561847f8eSopenharmony_ci    getWindowDecorHeight(): number;
766661847f8eSopenharmony_ci    
766761847f8eSopenharmony_ci    /**
766861847f8eSopenharmony_ci     * Set touchable areas. By default, the entire window area is touchable.
766961847f8eSopenharmony_ci     * If touchable areas are set in the window, touch events outside the areas will be transparent transmitted.
767061847f8eSopenharmony_ci     * If the window area changes, you need to reset it.
767161847f8eSopenharmony_ci     *
767261847f8eSopenharmony_ci     * @param { Array<Rect> } rects - Touchable areas. The maximum size cannot exceed 10, touchable area cannot exceed the window's area.
767361847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
767461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
767561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
767661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
767761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
767861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
767961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
768061847f8eSopenharmony_ci     * @systemapi
768161847f8eSopenharmony_ci     * @since 12
768261847f8eSopenharmony_ci     */
768361847f8eSopenharmony_ci    setTouchableAreas(rects: Array<Rect>): void;
768461847f8eSopenharmony_ci	
768561847f8eSopenharmony_ci    /**
768661847f8eSopenharmony_ci     * Get the area of window title buttons.
768761847f8eSopenharmony_ci     *
768861847f8eSopenharmony_ci     * @returns { TitleButtonRect } - The area of window title buttons.
768961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
769061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
769161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
769261847f8eSopenharmony_ci     * @since 11
769361847f8eSopenharmony_ci     */
769461847f8eSopenharmony_ci    /**
769561847f8eSopenharmony_ci     * Get the area of window title buttons.
769661847f8eSopenharmony_ci     *
769761847f8eSopenharmony_ci     * @returns { TitleButtonRect } - The area of window title buttons.
769861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
769961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
770061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
770161847f8eSopenharmony_ci     * @atomicservice
770261847f8eSopenharmony_ci     * @since 12
770361847f8eSopenharmony_ci     */
770461847f8eSopenharmony_ci    getTitleButtonRect(): TitleButtonRect;
770561847f8eSopenharmony_ci
770661847f8eSopenharmony_ci    /**
770761847f8eSopenharmony_ci     * Set whether to display the maximize, minimize, split buttons of main window.
770861847f8eSopenharmony_ci     *
770961847f8eSopenharmony_ci     * @param { boolean } isMaximizeVisible - Display maximize button if true, or hide maximize button if false.
771061847f8eSopenharmony_ci     * @param { boolean } isMinimizeVisible - Display minimize button if true, or hide minimize button if false.
771161847f8eSopenharmony_ci     * @param { boolean } isSplitVisible - Display split button if true, or hide split button if false.
771261847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
771361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
771461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
771561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
771661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
771761847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
771861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
771961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
772061847f8eSopenharmony_ci     * @since 12
772161847f8eSopenharmony_ci     */
772261847f8eSopenharmony_ci    setTitleButtonVisible(isMaximizeVisible: boolean, isMinimizeVisible: boolean, isSplitVisible: boolean): void;
772361847f8eSopenharmony_ci    
772461847f8eSopenharmony_ci    /**
772561847f8eSopenharmony_ci     * Set whether to display the maximize, minimize buttons of main window.
772661847f8eSopenharmony_ci     *
772761847f8eSopenharmony_ci     * @param { boolean } isMaximizeVisible - Display maximize button if true, or hide maximize button if false.
772861847f8eSopenharmony_ci     * @param { boolean } isMinimizeVisible - Display minimize button if true, or hide minimize button if false.
772961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
773061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
773161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
773261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
773361847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
773461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
773561847f8eSopenharmony_ci     * @atomicservice
773661847f8eSopenharmony_ci     * @since 14
773761847f8eSopenharmony_ci     */
773861847f8eSopenharmony_ci    setWindowTitleButtonVisible(isMaximizeVisible: boolean, isMinimizeVisible: boolean): void;
773961847f8eSopenharmony_ci        
774061847f8eSopenharmony_ci    /**
774161847f8eSopenharmony_ci     * Enable landscape multiWindow
774261847f8eSopenharmony_ci     *
774361847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
774461847f8eSopenharmony_ci     * @throws {BusinessError} 1300002 - This window state is abnormal.
774561847f8eSopenharmony_ci     * @throws {BusinessError} 1300003 - This window manager service works abnormally.
774661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
774761847f8eSopenharmony_ci     * @atomicservice
774861847f8eSopenharmony_ci     * @since 12
774961847f8eSopenharmony_ci     */
775061847f8eSopenharmony_ci    enableLandscapeMultiWindow(): Promise<void>;
775161847f8eSopenharmony_ci
775261847f8eSopenharmony_ci    /**
775361847f8eSopenharmony_ci     * Start moving window.
775461847f8eSopenharmony_ci     *
775561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
775661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
775761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
775861847f8eSopenharmony_ci     * @throws { BusinessError } 1300001 - Repeated operation.
775961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
776061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
776161847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
776261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
776361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
776461847f8eSopenharmony_ci     * @since 13
776561847f8eSopenharmony_ci     */
776661847f8eSopenharmony_ci    startMoving(): Promise<void>;
776761847f8eSopenharmony_ci
776861847f8eSopenharmony_ci    /**
776961847f8eSopenharmony_ci     * Enable drag window.
777061847f8eSopenharmony_ci     *
777161847f8eSopenharmony_ci     * @param { boolean } enable - The value true means to enable window dragging, and false means the opposite.
777261847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
777361847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
777461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
777561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
777661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
777761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
777861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
777961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
778061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
778161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
778261847f8eSopenharmony_ci     * @since 13
778361847f8eSopenharmony_ci     */
778461847f8eSopenharmony_ci    enableDrag(enable: boolean): Promise<void>;
778561847f8eSopenharmony_ci
778661847f8eSopenharmony_ci    /**
778761847f8eSopenharmony_ci     * Disable landscape multiWindow
778861847f8eSopenharmony_ci     *
778961847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
779061847f8eSopenharmony_ci     * @throws {BusinessError} 1300002 - This window state is abnormal.
779161847f8eSopenharmony_ci     * @throws {BusinessError} 1300003 - This window manager service works abnormally.
779261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
779361847f8eSopenharmony_ci     * @atomicservice
779461847f8eSopenharmony_ci     * @since 12
779561847f8eSopenharmony_ci     */
779661847f8eSopenharmony_ci    disableLandscapeMultiWindow(): Promise<void>;
779761847f8eSopenharmony_ci
779861847f8eSopenharmony_ci    /**
779961847f8eSopenharmony_ci     * Register the callback of title buttons area change.
780061847f8eSopenharmony_ci     *
780161847f8eSopenharmony_ci     * @param { 'windowTitleButtonRectChange' } type - The value is fixed at 'windowTitleButtonRectChange', indicating the title buttons area change event.
780261847f8eSopenharmony_ci     * @param { Callback<TitleButtonRect> } callback - Callback used to return the current title buttons area.
780361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
780461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
780561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
780661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
780761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
780861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
780961847f8eSopenharmony_ci     * @since 11
781061847f8eSopenharmony_ci     */
781161847f8eSopenharmony_ci    /**
781261847f8eSopenharmony_ci     * Register the callback of title buttons area change.
781361847f8eSopenharmony_ci     *
781461847f8eSopenharmony_ci     * @param { 'windowTitleButtonRectChange' } type - The value is fixed at 'windowTitleButtonRectChange', indicating the title buttons area change event.
781561847f8eSopenharmony_ci     * @param { Callback<TitleButtonRect> } callback - Callback used to return the current title buttons area.
781661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;
781761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types;
781861847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
781961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
782061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
782161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
782261847f8eSopenharmony_ci     * @atomicservice
782361847f8eSopenharmony_ci     * @since 12
782461847f8eSopenharmony_ci     */
782561847f8eSopenharmony_ci    on(type: 'windowTitleButtonRectChange', callback: Callback<TitleButtonRect>): void;
782661847f8eSopenharmony_ci
782761847f8eSopenharmony_ci    /**
782861847f8eSopenharmony_ci     * Unregister the callback of title buttons area change.
782961847f8eSopenharmony_ci     *
783061847f8eSopenharmony_ci     * @param { 'windowTitleButtonRectChange' } type - The value is fixed at 'windowTitleButtonRectChange', indicating the title buttons area change event.
783161847f8eSopenharmony_ci     * @param { Callback<TitleButtonRect> } callback - Callback used to return the current title buttons area.
783261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
783361847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
783461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
783561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
783661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
783761847f8eSopenharmony_ci     * @since 11
783861847f8eSopenharmony_ci     */
783961847f8eSopenharmony_ci    /**
784061847f8eSopenharmony_ci     * Unregister the callback of title buttons area change.
784161847f8eSopenharmony_ci     *
784261847f8eSopenharmony_ci     * @param { 'windowTitleButtonRectChange' } type - The value is fixed at 'windowTitleButtonRectChange', indicating the title buttons area change event.
784361847f8eSopenharmony_ci     * @param { Callback<TitleButtonRect> } callback - Callback used to return the current title buttons area.
784461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;
784561847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
784661847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
784761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
784861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
784961847f8eSopenharmony_ci     * @atomicservice
785061847f8eSopenharmony_ci     * @since 12
785161847f8eSopenharmony_ci     */
785261847f8eSopenharmony_ci    off(type: 'windowTitleButtonRectChange', callback?: Callback<TitleButtonRect>): void;
785361847f8eSopenharmony_ci    
785461847f8eSopenharmony_ci    /**
785561847f8eSopenharmony_ci     *  Set the window mask of window
785661847f8eSopenharmony_ci     *
785761847f8eSopenharmony_ci     * @param { Array<Array<number>> } windowMask - The mask of window. The value of the array is 0 and 1, the other number is illegal value.
785861847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
785961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
786061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
786161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
786261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
786361847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
786461847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
786561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
786661847f8eSopenharmony_ci     * @atomicservice
786761847f8eSopenharmony_ci     * @since 12
786861847f8eSopenharmony_ci     */
786961847f8eSopenharmony_ci     setWindowMask(windowMask: Array<Array<number>>): Promise<void>;
787061847f8eSopenharmony_ci
787161847f8eSopenharmony_ci    /**
787261847f8eSopenharmony_ci     * Register the callback of windowRectChange
787361847f8eSopenharmony_ci     *
787461847f8eSopenharmony_ci     * @param { 'windowRectChange' } type - The value is fixed at 'windowRectChange', indicating the window rect change event.
787561847f8eSopenharmony_ci     * @param { Callback<RectChangeOptions> } callback - Callback used to return the RectChangeOptions.
787661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
787761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
787861847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
787961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
788061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
788161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
788261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
788361847f8eSopenharmony_ci     * @atomicservice
788461847f8eSopenharmony_ci     * @since 12
788561847f8eSopenharmony_ci     */
788661847f8eSopenharmony_ci    on(type: 'windowRectChange', callback: Callback<RectChangeOptions>): void;
788761847f8eSopenharmony_ci
788861847f8eSopenharmony_ci    /**
788961847f8eSopenharmony_ci     * Unregister the callback of windowRectChange
789061847f8eSopenharmony_ci     *
789161847f8eSopenharmony_ci     * @param { 'windowRectChange' } type - The value is fixed at 'windowRectChange', indicating the window rect change event.
789261847f8eSopenharmony_ci     * @param { Callback<RectChangeOptions> } callback - Callback used to return the RectChangeOptions.
789361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
789461847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
789561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
789661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
789761847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
789861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
789961847f8eSopenharmony_ci     * @atomicservice
790061847f8eSopenharmony_ci     * @since 12
790161847f8eSopenharmony_ci     */
790261847f8eSopenharmony_ci    off(type: 'windowRectChange', callback?: Callback<RectChangeOptions>): void;
790361847f8eSopenharmony_ci
790461847f8eSopenharmony_ci    /**
790561847f8eSopenharmony_ci     * Set gray scale of window.
790661847f8eSopenharmony_ci     *
790761847f8eSopenharmony_ci     * @param { number } grayScale - The value of gray scale.
790861847f8eSopenharmony_ci     * @returns { Promise<void> } - The promise returned by the function.
790961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
791061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
791161847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
791261847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
791361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
791461847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
791561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
791661847f8eSopenharmony_ci     * @atomicservice
791761847f8eSopenharmony_ci     * @since 12
791861847f8eSopenharmony_ci     */
791961847f8eSopenharmony_ci    setWindowGrayScale(grayScale: number): Promise<void>;
792061847f8eSopenharmony_ci
792161847f8eSopenharmony_ci    /**
792261847f8eSopenharmony_ci     * Set whether to enable immersive mode.
792361847f8eSopenharmony_ci     *
792461847f8eSopenharmony_ci     * @param { boolean } enabled - The value true means to enable immersive mode, and false means the opposite.
792561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
792661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
792761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
792861847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
792961847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
793061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
793161847f8eSopenharmony_ci     * @atomicservice
793261847f8eSopenharmony_ci     * @since 12
793361847f8eSopenharmony_ci     */
793461847f8eSopenharmony_ci    setImmersiveModeEnabledState(enabled: boolean): void;
793561847f8eSopenharmony_ci
793661847f8eSopenharmony_ci    /**
793761847f8eSopenharmony_ci     * Get whether the immersive mode is enabled or not.
793861847f8eSopenharmony_ci     *
793961847f8eSopenharmony_ci     * @returns { boolean } - The value true means the immersive mode is enabled, and false means the opposite.
794061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
794161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
794261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
794361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
794461847f8eSopenharmony_ci     * @atomicservice
794561847f8eSopenharmony_ci     * @since 12
794661847f8eSopenharmony_ci     */
794761847f8eSopenharmony_ci    getImmersiveModeEnabledState(): boolean;
794861847f8eSopenharmony_ci
794961847f8eSopenharmony_ci    /**
795061847f8eSopenharmony_ci     * Get the window status of current window.
795161847f8eSopenharmony_ci     *
795261847f8eSopenharmony_ci     * @returns { WindowStatusType } - The status of window.
795361847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
795461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
795561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
795661847f8eSopenharmony_ci     * @atomicservice
795761847f8eSopenharmony_ci     * @since 12
795861847f8eSopenharmony_ci     */
795961847f8eSopenharmony_ci    getWindowStatus(): WindowStatusType;
796061847f8eSopenharmony_ci
796161847f8eSopenharmony_ci    /**
796261847f8eSopenharmony_ci     * Checks whether the window is focused.
796361847f8eSopenharmony_ci     *
796461847f8eSopenharmony_ci     * @returns { boolean } - Whether the window is focused. The value true means that the window is focused, and false means the opposite.
796561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
796661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
796761847f8eSopenharmony_ci     * @atomicservice
796861847f8eSopenharmony_ci     * @since 12
796961847f8eSopenharmony_ci     */
797061847f8eSopenharmony_ci    isFocused(): boolean;
797161847f8eSopenharmony_ci
797261847f8eSopenharmony_ci    /**
797361847f8eSopenharmony_ci     * Create sub window with options.
797461847f8eSopenharmony_ci     *
797561847f8eSopenharmony_ci     * @param { string } name - window name of sub window
797661847f8eSopenharmony_ci     * @param { SubWindowOptions } options - options of sub window creation
797761847f8eSopenharmony_ci     * @returns { Promise<Window> } Promise used to return the subwindow.
797861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
797961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
798061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
798161847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
798261847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
798361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
798461847f8eSopenharmony_ci     * @StageModelOnly
798561847f8eSopenharmony_ci     * @atomicservice
798661847f8eSopenharmony_ci     * @since 12
798761847f8eSopenharmony_ci     */
798861847f8eSopenharmony_ci    createSubWindowWithOptions(name: string, options: SubWindowOptions): Promise<Window>;
798961847f8eSopenharmony_ci
799061847f8eSopenharmony_ci    /**
799161847f8eSopenharmony_ci     * Set whether the title bar and dock bar will show, when the mouse hovers over hot area.
799261847f8eSopenharmony_ci     *
799361847f8eSopenharmony_ci     * @param { boolean } isTitleHoverShown - The value true means to display the title bar, and false means the opposite.
799461847f8eSopenharmony_ci     * @param { boolean } isDockHoverShown - The value true means to display the dock bar, and false means the opposite.
799561847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
799661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
799761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
799861847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
799961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
800061847f8eSopenharmony_ci     * @throws { BusinessError } 1300004 - Unauthorized operation.
800161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
800261847f8eSopenharmony_ci     * @atomicservice
800361847f8eSopenharmony_ci     * @since 14
800461847f8eSopenharmony_ci     */
800561847f8eSopenharmony_ci    setTitleAndDockHoverShown(isTitleHoverShown?: boolean, isDockHoverShown?: boolean): Promise<void>;
800661847f8eSopenharmony_ci  }
800761847f8eSopenharmony_ci
800861847f8eSopenharmony_ci  /**
800961847f8eSopenharmony_ci   * Window stage callback event type
801061847f8eSopenharmony_ci   *
801161847f8eSopenharmony_ci   * @enum { number }
801261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
801361847f8eSopenharmony_ci   * @StageModelOnly
801461847f8eSopenharmony_ci   * @since 9
801561847f8eSopenharmony_ci   */
801661847f8eSopenharmony_ci  /**
801761847f8eSopenharmony_ci   * Window stage callback event type
801861847f8eSopenharmony_ci   *
801961847f8eSopenharmony_ci   * @enum { number }
802061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
802161847f8eSopenharmony_ci   * @StageModelOnly
802261847f8eSopenharmony_ci   * @crossplatform
802361847f8eSopenharmony_ci   * @since 10
802461847f8eSopenharmony_ci   */
802561847f8eSopenharmony_ci  /**
802661847f8eSopenharmony_ci   * Window stage callback event type
802761847f8eSopenharmony_ci   *
802861847f8eSopenharmony_ci   * @enum { number }
802961847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
803061847f8eSopenharmony_ci   * @StageModelOnly
803161847f8eSopenharmony_ci   * @crossplatform
803261847f8eSopenharmony_ci   * @atomicservice
803361847f8eSopenharmony_ci   * @since 11
803461847f8eSopenharmony_ci   */
803561847f8eSopenharmony_ci  enum WindowStageEventType {
803661847f8eSopenharmony_ci    /**
803761847f8eSopenharmony_ci     * The window stage is running in the foreground.
803861847f8eSopenharmony_ci     *
803961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
804061847f8eSopenharmony_ci     * @StageModelOnly
804161847f8eSopenharmony_ci     * @since 9
804261847f8eSopenharmony_ci     */
804361847f8eSopenharmony_ci    /**
804461847f8eSopenharmony_ci     * The window stage is running in the foreground.
804561847f8eSopenharmony_ci     *
804661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
804761847f8eSopenharmony_ci     * @StageModelOnly
804861847f8eSopenharmony_ci     * @crossplatform
804961847f8eSopenharmony_ci     * @since 10
805061847f8eSopenharmony_ci     */
805161847f8eSopenharmony_ci    /**
805261847f8eSopenharmony_ci     * The window stage is running in the foreground.
805361847f8eSopenharmony_ci     *
805461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
805561847f8eSopenharmony_ci     * @StageModelOnly
805661847f8eSopenharmony_ci     * @crossplatform
805761847f8eSopenharmony_ci     * @atomicservice
805861847f8eSopenharmony_ci     * @since 11
805961847f8eSopenharmony_ci     */
806061847f8eSopenharmony_ci    SHOWN = 1,
806161847f8eSopenharmony_ci    /**
806261847f8eSopenharmony_ci     * The window stage gains focus.
806361847f8eSopenharmony_ci     *
806461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
806561847f8eSopenharmony_ci     * @StageModelOnly
806661847f8eSopenharmony_ci     * @since 9
806761847f8eSopenharmony_ci     */
806861847f8eSopenharmony_ci    /**
806961847f8eSopenharmony_ci     * The window stage gains focus.
807061847f8eSopenharmony_ci     *
807161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
807261847f8eSopenharmony_ci     * @StageModelOnly
807361847f8eSopenharmony_ci     * @crossplatform
807461847f8eSopenharmony_ci     * @since 10
807561847f8eSopenharmony_ci     */
807661847f8eSopenharmony_ci    /**
807761847f8eSopenharmony_ci     * The window stage gains focus.
807861847f8eSopenharmony_ci     *
807961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
808061847f8eSopenharmony_ci     * @StageModelOnly
808161847f8eSopenharmony_ci     * @crossplatform
808261847f8eSopenharmony_ci     * @atomicservice
808361847f8eSopenharmony_ci     * @since 11
808461847f8eSopenharmony_ci     */
808561847f8eSopenharmony_ci    ACTIVE,
808661847f8eSopenharmony_ci    /**
808761847f8eSopenharmony_ci     * The window stage loses focus.
808861847f8eSopenharmony_ci     *
808961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
809061847f8eSopenharmony_ci     * @StageModelOnly
809161847f8eSopenharmony_ci     * @since 9
809261847f8eSopenharmony_ci     */
809361847f8eSopenharmony_ci    /**
809461847f8eSopenharmony_ci     * The window stage loses focus.
809561847f8eSopenharmony_ci     *
809661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
809761847f8eSopenharmony_ci     * @StageModelOnly
809861847f8eSopenharmony_ci     * @crossplatform
809961847f8eSopenharmony_ci     * @since 10
810061847f8eSopenharmony_ci     */
810161847f8eSopenharmony_ci    /**
810261847f8eSopenharmony_ci     * The window stage loses focus.
810361847f8eSopenharmony_ci     *
810461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
810561847f8eSopenharmony_ci     * @StageModelOnly
810661847f8eSopenharmony_ci     * @crossplatform
810761847f8eSopenharmony_ci     * @atomicservice
810861847f8eSopenharmony_ci     * @since 11
810961847f8eSopenharmony_ci     */
811061847f8eSopenharmony_ci    INACTIVE,
811161847f8eSopenharmony_ci    /**
811261847f8eSopenharmony_ci     * The window stage is running in the background.
811361847f8eSopenharmony_ci     *
811461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
811561847f8eSopenharmony_ci     * @StageModelOnly
811661847f8eSopenharmony_ci     * @since 9
811761847f8eSopenharmony_ci     */
811861847f8eSopenharmony_ci    /**
811961847f8eSopenharmony_ci     * The window stage is running in the background.
812061847f8eSopenharmony_ci     *
812161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
812261847f8eSopenharmony_ci     * @StageModelOnly
812361847f8eSopenharmony_ci     * @crossplatform
812461847f8eSopenharmony_ci     * @since 10
812561847f8eSopenharmony_ci     */
812661847f8eSopenharmony_ci    /**
812761847f8eSopenharmony_ci     * The window stage is running in the background.
812861847f8eSopenharmony_ci     *
812961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
813061847f8eSopenharmony_ci     * @StageModelOnly
813161847f8eSopenharmony_ci     * @crossplatform
813261847f8eSopenharmony_ci     * @atomicservice
813361847f8eSopenharmony_ci     * @since 11
813461847f8eSopenharmony_ci     */
813561847f8eSopenharmony_ci    HIDDEN,
813661847f8eSopenharmony_ci    /**
813761847f8eSopenharmony_ci     * The window stage is interactive in the foreground.
813861847f8eSopenharmony_ci     *
813961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
814061847f8eSopenharmony_ci     * @StageModelOnly
814161847f8eSopenharmony_ci     * @crossplatform
814261847f8eSopenharmony_ci     * @atomicservice
814361847f8eSopenharmony_ci     * @since 11
814461847f8eSopenharmony_ci     */
814561847f8eSopenharmony_ci    RESUMED,
814661847f8eSopenharmony_ci    /**
814761847f8eSopenharmony_ci     * The window stage is not interactive in the foreground.
814861847f8eSopenharmony_ci     *
814961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
815061847f8eSopenharmony_ci     * @StageModelOnly
815161847f8eSopenharmony_ci     * @crossplatform
815261847f8eSopenharmony_ci     * @atomicservice
815361847f8eSopenharmony_ci     * @since 11
815461847f8eSopenharmony_ci     */
815561847f8eSopenharmony_ci    PAUSED
815661847f8eSopenharmony_ci  }
815761847f8eSopenharmony_ci
815861847f8eSopenharmony_ci  /**
815961847f8eSopenharmony_ci   * Enum for window modality Type
816061847f8eSopenharmony_ci   *
816161847f8eSopenharmony_ci   * @enum { number }
816261847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
816361847f8eSopenharmony_ci   * @atomicservice
816461847f8eSopenharmony_ci   * @since 14
816561847f8eSopenharmony_ci   */
816661847f8eSopenharmony_ci  enum ModalityType {
816761847f8eSopenharmony_ci    /**
816861847f8eSopenharmony_ci     * The value means window modality.
816961847f8eSopenharmony_ci     *
817061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
817161847f8eSopenharmony_ci     * @atomicservice
817261847f8eSopenharmony_ci     * @since 14
817361847f8eSopenharmony_ci     */
817461847f8eSopenharmony_ci    WINDOW_MODALITY = 0,
817561847f8eSopenharmony_ci    /**
817661847f8eSopenharmony_ci     * The value means application modality.
817761847f8eSopenharmony_ci     *
817861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
817961847f8eSopenharmony_ci     * @atomicservice
818061847f8eSopenharmony_ci     * @since 14
818161847f8eSopenharmony_ci     */
818261847f8eSopenharmony_ci    APPLICATION_MODALITY = 1,
818361847f8eSopenharmony_ci  }
818461847f8eSopenharmony_ci
818561847f8eSopenharmony_ci  /**
818661847f8eSopenharmony_ci   * Options for subwindow creation
818761847f8eSopenharmony_ci   * 
818861847f8eSopenharmony_ci   * @interface SubWindowOptions
818961847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
819061847f8eSopenharmony_ci   * @since 11
819161847f8eSopenharmony_ci   */
819261847f8eSopenharmony_ci  /**
819361847f8eSopenharmony_ci   * Options for subwindow creation
819461847f8eSopenharmony_ci   * 
819561847f8eSopenharmony_ci   * @interface SubWindowOptions
819661847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
819761847f8eSopenharmony_ci   * @atomicservice
819861847f8eSopenharmony_ci   * @since 12
819961847f8eSopenharmony_ci   */
820061847f8eSopenharmony_ci  interface SubWindowOptions {
820161847f8eSopenharmony_ci    /**
820261847f8eSopenharmony_ci     * Indicates subwindow title
820361847f8eSopenharmony_ci     * 
820461847f8eSopenharmony_ci     * @type { string }
820561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
820661847f8eSopenharmony_ci     * @since 11
820761847f8eSopenharmony_ci     */
820861847f8eSopenharmony_ci    /**
820961847f8eSopenharmony_ci     * Indicates subwindow title
821061847f8eSopenharmony_ci     * 
821161847f8eSopenharmony_ci     * @type { string }
821261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
821361847f8eSopenharmony_ci     * @atomicservice
821461847f8eSopenharmony_ci     * @since 12
821561847f8eSopenharmony_ci     */
821661847f8eSopenharmony_ci    title: string;
821761847f8eSopenharmony_ci    /**
821861847f8eSopenharmony_ci     * Indicates decor of subwindow
821961847f8eSopenharmony_ci     * 
822061847f8eSopenharmony_ci     * @type { boolean }
822161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
822261847f8eSopenharmony_ci     * @since 11
822361847f8eSopenharmony_ci     */
822461847f8eSopenharmony_ci    /**
822561847f8eSopenharmony_ci     * Indicates decor of subwindow
822661847f8eSopenharmony_ci     * 
822761847f8eSopenharmony_ci     * @type { boolean }
822861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
822961847f8eSopenharmony_ci     * @atomicservice
823061847f8eSopenharmony_ci     * @since 12
823161847f8eSopenharmony_ci     */
823261847f8eSopenharmony_ci    decorEnabled: boolean;
823361847f8eSopenharmony_ci    /**
823461847f8eSopenharmony_ci     * Indicates modality of subwindow
823561847f8eSopenharmony_ci     * 
823661847f8eSopenharmony_ci     * @type { ?boolean }
823761847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
823861847f8eSopenharmony_ci     * @atomicservice
823961847f8eSopenharmony_ci     * @since 12
824061847f8eSopenharmony_ci     */
824161847f8eSopenharmony_ci    isModal?: boolean;
824261847f8eSopenharmony_ci    /**
824361847f8eSopenharmony_ci     * Indicates whether subwindow is topmost
824461847f8eSopenharmony_ci     * 
824561847f8eSopenharmony_ci     * @type { ?boolean }
824661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
824761847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
824861847f8eSopenharmony_ci     * @since 12
824961847f8eSopenharmony_ci     */
825061847f8eSopenharmony_ci    isTopmost?: boolean;
825161847f8eSopenharmony_ci    /**
825261847f8eSopenharmony_ci     * Indicates modality type of subwindow
825361847f8eSopenharmony_ci     * 
825461847f8eSopenharmony_ci     * @type { ?ModalityType }
825561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
825661847f8eSopenharmony_ci     * @atomicservice
825761847f8eSopenharmony_ci     * @since 14
825861847f8eSopenharmony_ci     */
825961847f8eSopenharmony_ci    modalityType?: ModalityType;
826061847f8eSopenharmony_ci  }
826161847f8eSopenharmony_ci  /**
826261847f8eSopenharmony_ci   * WindowStage
826361847f8eSopenharmony_ci   *
826461847f8eSopenharmony_ci   * @interface WindowStage
826561847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
826661847f8eSopenharmony_ci   * @since 9
826761847f8eSopenharmony_ci   */
826861847f8eSopenharmony_ci  /**
826961847f8eSopenharmony_ci   * WindowStage
827061847f8eSopenharmony_ci   *
827161847f8eSopenharmony_ci   * @interface WindowStage
827261847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
827361847f8eSopenharmony_ci   * @crossplatform
827461847f8eSopenharmony_ci   * @since 10
827561847f8eSopenharmony_ci   */
827661847f8eSopenharmony_ci  /**
827761847f8eSopenharmony_ci   * WindowStage
827861847f8eSopenharmony_ci   *
827961847f8eSopenharmony_ci   * @interface WindowStage
828061847f8eSopenharmony_ci   * @syscap SystemCapability.WindowManager.WindowManager.Core
828161847f8eSopenharmony_ci   * @crossplatform
828261847f8eSopenharmony_ci   * @atomicservice
828361847f8eSopenharmony_ci   * @since 11
828461847f8eSopenharmony_ci   */
828561847f8eSopenharmony_ci  interface WindowStage {
828661847f8eSopenharmony_ci    /**
828761847f8eSopenharmony_ci     * Get main window of the stage.
828861847f8eSopenharmony_ci     *
828961847f8eSopenharmony_ci     * @returns { Promise<Window> } Callback used to return the subwindow.
829061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
829161847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
829261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
829361847f8eSopenharmony_ci     * @StageModelOnly
829461847f8eSopenharmony_ci     * @since 9
829561847f8eSopenharmony_ci     */
829661847f8eSopenharmony_ci    /**
829761847f8eSopenharmony_ci     * Get main window of the stage.
829861847f8eSopenharmony_ci     *
829961847f8eSopenharmony_ci     * @returns { Promise<Window> } Callback used to return the subwindow.
830061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
830161847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
830261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
830361847f8eSopenharmony_ci     * @StageModelOnly
830461847f8eSopenharmony_ci     * @crossplatform
830561847f8eSopenharmony_ci     * @since 10
830661847f8eSopenharmony_ci     */
830761847f8eSopenharmony_ci    /**
830861847f8eSopenharmony_ci     * Get main window of the stage.
830961847f8eSopenharmony_ci     *
831061847f8eSopenharmony_ci     * @returns { Promise<Window> } Callback used to return the subwindow.
831161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
831261847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
831361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
831461847f8eSopenharmony_ci     * @StageModelOnly
831561847f8eSopenharmony_ci     * @crossplatform
831661847f8eSopenharmony_ci     * @atomicservice
831761847f8eSopenharmony_ci     * @since 11
831861847f8eSopenharmony_ci     */
831961847f8eSopenharmony_ci    getMainWindow(): Promise<Window>;
832061847f8eSopenharmony_ci    /**
832161847f8eSopenharmony_ci     * Get main window of the stage.
832261847f8eSopenharmony_ci     *
832361847f8eSopenharmony_ci     * @param { AsyncCallback<Window> } callback Callback used to return the main window.
832461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
832561847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
832661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
832761847f8eSopenharmony_ci     * @StageModelOnly
832861847f8eSopenharmony_ci     * @since 9
832961847f8eSopenharmony_ci     */
833061847f8eSopenharmony_ci    /**
833161847f8eSopenharmony_ci     * Get main window of the stage.
833261847f8eSopenharmony_ci     *
833361847f8eSopenharmony_ci     * @param { AsyncCallback<Window> } callback Callback used to return the main window.
833461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
833561847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
833661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
833761847f8eSopenharmony_ci     * @StageModelOnly
833861847f8eSopenharmony_ci     * @crossplatform
833961847f8eSopenharmony_ci     * @since 10
834061847f8eSopenharmony_ci     */
834161847f8eSopenharmony_ci    /**
834261847f8eSopenharmony_ci     * Get main window of the stage.
834361847f8eSopenharmony_ci     *
834461847f8eSopenharmony_ci     * @param { AsyncCallback<Window> } callback Callback used to return the main window.
834561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
834661847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
834761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
834861847f8eSopenharmony_ci     * @StageModelOnly
834961847f8eSopenharmony_ci     * @crossplatform
835061847f8eSopenharmony_ci     * @atomicservice
835161847f8eSopenharmony_ci     * @since 11
835261847f8eSopenharmony_ci     */
835361847f8eSopenharmony_ci    getMainWindow(callback: AsyncCallback<Window>): void;
835461847f8eSopenharmony_ci    /**
835561847f8eSopenharmony_ci     * Get main window of the stage.
835661847f8eSopenharmony_ci     *
835761847f8eSopenharmony_ci     * @returns { Window }
835861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
835961847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
836061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
836161847f8eSopenharmony_ci     * @StageModelOnly
836261847f8eSopenharmony_ci     * @since 9
836361847f8eSopenharmony_ci     */
836461847f8eSopenharmony_ci    /**
836561847f8eSopenharmony_ci     * Get main window of the stage.
836661847f8eSopenharmony_ci     *
836761847f8eSopenharmony_ci     * @returns { Window }
836861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
836961847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
837061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
837161847f8eSopenharmony_ci     * @StageModelOnly
837261847f8eSopenharmony_ci     * @crossplatform
837361847f8eSopenharmony_ci     * @since 10
837461847f8eSopenharmony_ci     */
837561847f8eSopenharmony_ci    /**
837661847f8eSopenharmony_ci     * Get main window of the stage.
837761847f8eSopenharmony_ci     *
837861847f8eSopenharmony_ci     * @returns { Window }
837961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
838061847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
838161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
838261847f8eSopenharmony_ci     * @StageModelOnly
838361847f8eSopenharmony_ci     * @crossplatform
838461847f8eSopenharmony_ci     * @atomicservice
838561847f8eSopenharmony_ci     * @since 11
838661847f8eSopenharmony_ci     */
838761847f8eSopenharmony_ci    getMainWindowSync(): Window;
838861847f8eSopenharmony_ci    /**
838961847f8eSopenharmony_ci     * Create sub window of the stage.
839061847f8eSopenharmony_ci     *
839161847f8eSopenharmony_ci     * @param { string } name window name of sub window
839261847f8eSopenharmony_ci     * @returns { Promise<Window> } Promise used to return the subwindow.
839361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
839461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
839561847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
839661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
839761847f8eSopenharmony_ci     * @StageModelOnly
839861847f8eSopenharmony_ci     * @since 9
839961847f8eSopenharmony_ci     */
840061847f8eSopenharmony_ci    /**
840161847f8eSopenharmony_ci     * Create sub window of the stage.
840261847f8eSopenharmony_ci     *
840361847f8eSopenharmony_ci     * @param { string } name window name of sub window
840461847f8eSopenharmony_ci     * @returns { Promise<Window> } Promise used to return the subwindow.
840561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
840661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
840761847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
840861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
840961847f8eSopenharmony_ci     * @StageModelOnly
841061847f8eSopenharmony_ci     * @crossplatform
841161847f8eSopenharmony_ci     * @since 10
841261847f8eSopenharmony_ci     */
841361847f8eSopenharmony_ci    /**
841461847f8eSopenharmony_ci     * Create sub window of the stage.
841561847f8eSopenharmony_ci     *
841661847f8eSopenharmony_ci     * @param { string } name window name of sub window
841761847f8eSopenharmony_ci     * @returns { Promise<Window> } Promise used to return the subwindow.
841861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
841961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
842061847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
842161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
842261847f8eSopenharmony_ci     * @StageModelOnly
842361847f8eSopenharmony_ci     * @crossplatform
842461847f8eSopenharmony_ci     * @atomicservice
842561847f8eSopenharmony_ci     * @since 11
842661847f8eSopenharmony_ci     */
842761847f8eSopenharmony_ci    createSubWindow(name: string): Promise<Window>;
842861847f8eSopenharmony_ci    /**
842961847f8eSopenharmony_ci     * Create sub window of the stage.
843061847f8eSopenharmony_ci     *
843161847f8eSopenharmony_ci     * @param { string } name window name of sub window
843261847f8eSopenharmony_ci     * @param { AsyncCallback<Window> } callback Callback used to return the subwindow.
843361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
843461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
843561847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
843661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
843761847f8eSopenharmony_ci     * @StageModelOnly
843861847f8eSopenharmony_ci     * @since 9
843961847f8eSopenharmony_ci     */
844061847f8eSopenharmony_ci    /**
844161847f8eSopenharmony_ci     * Create sub window of the stage.
844261847f8eSopenharmony_ci     *
844361847f8eSopenharmony_ci     * @param { string } name window name of sub window
844461847f8eSopenharmony_ci     * @param { AsyncCallback<Window> } callback Callback used to return the subwindow.
844561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
844661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
844761847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
844861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
844961847f8eSopenharmony_ci     * @StageModelOnly
845061847f8eSopenharmony_ci     * @crossplatform
845161847f8eSopenharmony_ci     * @since 10
845261847f8eSopenharmony_ci     */
845361847f8eSopenharmony_ci    /**
845461847f8eSopenharmony_ci     * Create sub window of the stage.
845561847f8eSopenharmony_ci     *
845661847f8eSopenharmony_ci     * @param { string } name window name of sub window
845761847f8eSopenharmony_ci     * @param { AsyncCallback<Window> } callback Callback used to return the subwindow.
845861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
845961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
846061847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
846161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
846261847f8eSopenharmony_ci     * @StageModelOnly
846361847f8eSopenharmony_ci     * @crossplatform
846461847f8eSopenharmony_ci     * @atomicservice
846561847f8eSopenharmony_ci     * @since 11
846661847f8eSopenharmony_ci     */
846761847f8eSopenharmony_ci    createSubWindow(name: string, callback: AsyncCallback<Window>): void;
846861847f8eSopenharmony_ci    /**
846961847f8eSopenharmony_ci     * Create sub window of the stage.
847061847f8eSopenharmony_ci     *
847161847f8eSopenharmony_ci     * @param { string } name - window name of sub window
847261847f8eSopenharmony_ci     * @param { SubWindowOptions } options - options of sub window creation
847361847f8eSopenharmony_ci     * @returns { Promise<Window> } Promise used to return the subwindow.
847461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
847561847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
847661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
847761847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
847861847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
847961847f8eSopenharmony_ci     * @StageModelOnly
848061847f8eSopenharmony_ci     * @since 11
848161847f8eSopenharmony_ci     */
848261847f8eSopenharmony_ci    /**
848361847f8eSopenharmony_ci     * Create sub window of the stage.
848461847f8eSopenharmony_ci     *
848561847f8eSopenharmony_ci     * @param { string } name - window name of sub window
848661847f8eSopenharmony_ci     * @param { SubWindowOptions } options - options of sub window creation
848761847f8eSopenharmony_ci     * @returns { Promise<Window> } Promise used to return the subwindow.
848861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.
848961847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
849061847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
849161847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
849261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
849361847f8eSopenharmony_ci     * @StageModelOnly
849461847f8eSopenharmony_ci     * @atomicservice
849561847f8eSopenharmony_ci     * @since 12
849661847f8eSopenharmony_ci     */
849761847f8eSopenharmony_ci    createSubWindowWithOptions(name: string, options: SubWindowOptions): Promise<Window>;
849861847f8eSopenharmony_ci    /**
849961847f8eSopenharmony_ci     * Get sub window of the stage.
850061847f8eSopenharmony_ci     *
850161847f8eSopenharmony_ci     * @returns { Promise<Array<Window>> }
850261847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
850361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
850461847f8eSopenharmony_ci     * @StageModelOnly
850561847f8eSopenharmony_ci     * @since 9
850661847f8eSopenharmony_ci     */
850761847f8eSopenharmony_ci    /**
850861847f8eSopenharmony_ci     * Get sub window of the stage.
850961847f8eSopenharmony_ci     *
851061847f8eSopenharmony_ci     * @returns { Promise<Array<Window>> }
851161847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
851261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
851361847f8eSopenharmony_ci     * @StageModelOnly
851461847f8eSopenharmony_ci     * @crossplatform
851561847f8eSopenharmony_ci     * @since 10
851661847f8eSopenharmony_ci     */
851761847f8eSopenharmony_ci    /**
851861847f8eSopenharmony_ci     * Get sub window of the stage.
851961847f8eSopenharmony_ci     *
852061847f8eSopenharmony_ci     * @returns { Promise<Array<Window>> }
852161847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
852261847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
852361847f8eSopenharmony_ci     * @StageModelOnly
852461847f8eSopenharmony_ci     * @crossplatform
852561847f8eSopenharmony_ci     * @atomicservice
852661847f8eSopenharmony_ci     * @since 11
852761847f8eSopenharmony_ci     */
852861847f8eSopenharmony_ci    getSubWindow(): Promise<Array<Window>>;
852961847f8eSopenharmony_ci    /**
853061847f8eSopenharmony_ci     * Get sub window of the stage.
853161847f8eSopenharmony_ci     *
853261847f8eSopenharmony_ci     * @param { AsyncCallback<Array<Window>> } callback Callback used to return all the subwindows.
853361847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
853461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
853561847f8eSopenharmony_ci     * @StageModelOnly
853661847f8eSopenharmony_ci     * @since 9
853761847f8eSopenharmony_ci     */
853861847f8eSopenharmony_ci    /**
853961847f8eSopenharmony_ci     * Get sub window of the stage.
854061847f8eSopenharmony_ci     *
854161847f8eSopenharmony_ci     * @param { AsyncCallback<Array<Window>> } callback Callback used to return all the subwindows.
854261847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
854361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
854461847f8eSopenharmony_ci     * @StageModelOnly
854561847f8eSopenharmony_ci     * @crossplatform
854661847f8eSopenharmony_ci     * @since 10
854761847f8eSopenharmony_ci     */
854861847f8eSopenharmony_ci    /**
854961847f8eSopenharmony_ci     * Get sub window of the stage.
855061847f8eSopenharmony_ci     *
855161847f8eSopenharmony_ci     * @param { AsyncCallback<Array<Window>> } callback Callback used to return all the subwindows.
855261847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
855361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
855461847f8eSopenharmony_ci     * @StageModelOnly
855561847f8eSopenharmony_ci     * @crossplatform
855661847f8eSopenharmony_ci     * @atomicservice
855761847f8eSopenharmony_ci     * @since 11
855861847f8eSopenharmony_ci     */
855961847f8eSopenharmony_ci    getSubWindow(callback: AsyncCallback<Array<Window>>): void;
856061847f8eSopenharmony_ci    /**
856161847f8eSopenharmony_ci     * Loads content
856261847f8eSopenharmony_ci     *
856361847f8eSopenharmony_ci     * @param { string } path Path of the page to which the content will be loaded
856461847f8eSopenharmony_ci     * @param { LocalStorage } storage The data object shared within the content instance loaded by the window
856561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
856661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
856761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
856861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
856961847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
857061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
857161847f8eSopenharmony_ci     * @StageModelOnly
857261847f8eSopenharmony_ci     * @since 9
857361847f8eSopenharmony_ci     */
857461847f8eSopenharmony_ci    /**
857561847f8eSopenharmony_ci     * Loads content
857661847f8eSopenharmony_ci     *
857761847f8eSopenharmony_ci     * @param { string } path Path of the page to which the content will be loaded
857861847f8eSopenharmony_ci     * @param { LocalStorage } storage The data object shared within the content instance loaded by the window
857961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
858061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
858161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
858261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
858361847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
858461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
858561847f8eSopenharmony_ci     * @StageModelOnly
858661847f8eSopenharmony_ci     * @crossplatform
858761847f8eSopenharmony_ci     * @since 10
858861847f8eSopenharmony_ci     */
858961847f8eSopenharmony_ci    /**
859061847f8eSopenharmony_ci     * Loads content
859161847f8eSopenharmony_ci     *
859261847f8eSopenharmony_ci     * @param { string } path Path of the page to which the content will be loaded
859361847f8eSopenharmony_ci     * @param { LocalStorage } storage The data object shared within the content instance loaded by the window
859461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
859561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
859661847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
859761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
859861847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
859961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
860061847f8eSopenharmony_ci     * @StageModelOnly
860161847f8eSopenharmony_ci     * @crossplatform
860261847f8eSopenharmony_ci     * @atomicservice
860361847f8eSopenharmony_ci     * @since 11
860461847f8eSopenharmony_ci     */
860561847f8eSopenharmony_ci    loadContent(path: string, storage: LocalStorage, callback: AsyncCallback<void>): void;
860661847f8eSopenharmony_ci    /**
860761847f8eSopenharmony_ci     * Loads content
860861847f8eSopenharmony_ci     *
860961847f8eSopenharmony_ci     * @param { string } path of the page to which the content will be loaded
861061847f8eSopenharmony_ci     * @param { LocalStorage } storage The data object shared within the content instance loaded by the window
861161847f8eSopenharmony_ci     * @returns { Promise<void> }
861261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
861361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
861461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
861561847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
861661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
861761847f8eSopenharmony_ci     * @StageModelOnly
861861847f8eSopenharmony_ci     * @since 9
861961847f8eSopenharmony_ci     */
862061847f8eSopenharmony_ci    /**
862161847f8eSopenharmony_ci     * Loads content
862261847f8eSopenharmony_ci     *
862361847f8eSopenharmony_ci     * @param { string } path of the page to which the content will be loaded
862461847f8eSopenharmony_ci     * @param { LocalStorage } storage The data object shared within the content instance loaded by the window
862561847f8eSopenharmony_ci     * @returns { Promise<void> }
862661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
862761847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
862861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
862961847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
863061847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
863161847f8eSopenharmony_ci     * @StageModelOnly
863261847f8eSopenharmony_ci     * @crossplatform
863361847f8eSopenharmony_ci     * @since 10
863461847f8eSopenharmony_ci     */
863561847f8eSopenharmony_ci    /**
863661847f8eSopenharmony_ci     * Loads content
863761847f8eSopenharmony_ci     *
863861847f8eSopenharmony_ci     * @param { string } path of the page to which the content will be loaded
863961847f8eSopenharmony_ci     * @param { LocalStorage } storage The data object shared within the content instance loaded by the window
864061847f8eSopenharmony_ci     * @returns { Promise<void> }
864161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
864261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
864361847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
864461847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
864561847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
864661847f8eSopenharmony_ci     * @StageModelOnly
864761847f8eSopenharmony_ci     * @crossplatform
864861847f8eSopenharmony_ci     * @atomicservice
864961847f8eSopenharmony_ci     * @since 11
865061847f8eSopenharmony_ci     */
865161847f8eSopenharmony_ci    loadContent(path: string, storage?: LocalStorage): Promise<void>;
865261847f8eSopenharmony_ci    /**
865361847f8eSopenharmony_ci     * Loads content
865461847f8eSopenharmony_ci     *
865561847f8eSopenharmony_ci     * @param { string } path of the page to which the content will be loaded
865661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
865761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
865861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
865961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
866061847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
866161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
866261847f8eSopenharmony_ci     * @StageModelOnly
866361847f8eSopenharmony_ci     * @since 9
866461847f8eSopenharmony_ci     */
866561847f8eSopenharmony_ci    /**
866661847f8eSopenharmony_ci     * Loads content
866761847f8eSopenharmony_ci     *
866861847f8eSopenharmony_ci     * @param { string } path of the page to which the content will be loaded
866961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
867061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
867161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
867261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
867361847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
867461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
867561847f8eSopenharmony_ci     * @StageModelOnly
867661847f8eSopenharmony_ci     * @crossplatform
867761847f8eSopenharmony_ci     * @since 10
867861847f8eSopenharmony_ci     */
867961847f8eSopenharmony_ci    /**
868061847f8eSopenharmony_ci     * Loads content
868161847f8eSopenharmony_ci     *
868261847f8eSopenharmony_ci     * @param { string } path of the page to which the content will be loaded
868361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the result.
868461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
868561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
868661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
868761847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
868861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
868961847f8eSopenharmony_ci     * @StageModelOnly
869061847f8eSopenharmony_ci     * @crossplatform
869161847f8eSopenharmony_ci     * @atomicservice
869261847f8eSopenharmony_ci     * @since 11
869361847f8eSopenharmony_ci     */
869461847f8eSopenharmony_ci    loadContent(path: string, callback: AsyncCallback<void>): void;
869561847f8eSopenharmony_ci
869661847f8eSopenharmony_ci    /**
869761847f8eSopenharmony_ci     * Loads content by named router
869861847f8eSopenharmony_ci     *
869961847f8eSopenharmony_ci     * @param { string } name - name of the page to which the content will be loaded.
870061847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window.
870161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
870261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
870361847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
870461847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
870561847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
870661847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
870761847f8eSopenharmony_ci     * @stagemodelonly
870861847f8eSopenharmony_ci     * @crossplatform
870961847f8eSopenharmony_ci     * @atomicservice
871061847f8eSopenharmony_ci     * @since 11
871161847f8eSopenharmony_ci     */
871261847f8eSopenharmony_ci    loadContentByName(name: string, storage: LocalStorage, callback: AsyncCallback<void>): void;
871361847f8eSopenharmony_ci
871461847f8eSopenharmony_ci    /**
871561847f8eSopenharmony_ci     * Loads content by named router
871661847f8eSopenharmony_ci     *
871761847f8eSopenharmony_ci     * @param { string } name - name of the page to which the content will be loaded.
871861847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the result.
871961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
872061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
872161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
872261847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
872361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
872461847f8eSopenharmony_ci     * @stagemodelonly
872561847f8eSopenharmony_ci     * @crossplatform
872661847f8eSopenharmony_ci     * @atomicservice
872761847f8eSopenharmony_ci     * @since 11
872861847f8eSopenharmony_ci     */
872961847f8eSopenharmony_ci    loadContentByName(name: string, callback: AsyncCallback<void>): void;
873061847f8eSopenharmony_ci
873161847f8eSopenharmony_ci    /**
873261847f8eSopenharmony_ci     * Loads content by named router
873361847f8eSopenharmony_ci     *
873461847f8eSopenharmony_ci     * @param { string } name - name of the page to which the content will be loaded.
873561847f8eSopenharmony_ci     * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window.
873661847f8eSopenharmony_ci     * @returns { Promise<void> } Promise that returns no value.
873761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
873861847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
873961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
874061847f8eSopenharmony_ci     * @throws { BusinessError } 1300003 - This window manager service works abnormally.
874161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
874261847f8eSopenharmony_ci     * @stagemodelonly
874361847f8eSopenharmony_ci     * @crossplatform
874461847f8eSopenharmony_ci     * @atomicservice
874561847f8eSopenharmony_ci     * @since 11
874661847f8eSopenharmony_ci     */
874761847f8eSopenharmony_ci    loadContentByName(name: string, storage?: LocalStorage): Promise<void>;
874861847f8eSopenharmony_ci
874961847f8eSopenharmony_ci    /**
875061847f8eSopenharmony_ci     * Window stage event callback on.
875161847f8eSopenharmony_ci     *
875261847f8eSopenharmony_ci     * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.
875361847f8eSopenharmony_ci     * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.
875461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
875561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
875661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
875761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
875861847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
875961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
876061847f8eSopenharmony_ci     * @StageModelOnly
876161847f8eSopenharmony_ci     * @since 9
876261847f8eSopenharmony_ci     */
876361847f8eSopenharmony_ci    /**
876461847f8eSopenharmony_ci     * Window stage event callback on.
876561847f8eSopenharmony_ci     *
876661847f8eSopenharmony_ci     * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.
876761847f8eSopenharmony_ci     * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.
876861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
876961847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
877061847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
877161847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
877261847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
877361847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
877461847f8eSopenharmony_ci     * @StageModelOnly
877561847f8eSopenharmony_ci     * @crossplatform
877661847f8eSopenharmony_ci     * @since 10
877761847f8eSopenharmony_ci     */
877861847f8eSopenharmony_ci    /**
877961847f8eSopenharmony_ci     * Window stage event callback on.
878061847f8eSopenharmony_ci     *
878161847f8eSopenharmony_ci     * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.
878261847f8eSopenharmony_ci     * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.
878361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
878461847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
878561847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
878661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
878761847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
878861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
878961847f8eSopenharmony_ci     * @StageModelOnly
879061847f8eSopenharmony_ci     * @crossplatform
879161847f8eSopenharmony_ci     * @atomicservice
879261847f8eSopenharmony_ci     * @since 11
879361847f8eSopenharmony_ci     */
879461847f8eSopenharmony_ci    on(eventType: 'windowStageEvent', callback: Callback<WindowStageEventType>): void;
879561847f8eSopenharmony_ci    /**
879661847f8eSopenharmony_ci     * Window stage event callback off.
879761847f8eSopenharmony_ci     *
879861847f8eSopenharmony_ci     * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.
879961847f8eSopenharmony_ci     * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.
880061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
880161847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
880261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
880361847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
880461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
880561847f8eSopenharmony_ci     * @StageModelOnly
880661847f8eSopenharmony_ci     * @since 9
880761847f8eSopenharmony_ci     */
880861847f8eSopenharmony_ci    /**
880961847f8eSopenharmony_ci     * Window stage event callback off.
881061847f8eSopenharmony_ci     *
881161847f8eSopenharmony_ci     * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.
881261847f8eSopenharmony_ci     * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.
881361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
881461847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
881561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
881661847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
881761847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
881861847f8eSopenharmony_ci     * @StageModelOnly
881961847f8eSopenharmony_ci     * @crossplatform
882061847f8eSopenharmony_ci     * @since 10
882161847f8eSopenharmony_ci     */
882261847f8eSopenharmony_ci    /**
882361847f8eSopenharmony_ci     * Window stage event callback off.
882461847f8eSopenharmony_ci     *
882561847f8eSopenharmony_ci     * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.
882661847f8eSopenharmony_ci     * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.
882761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types; 
882861847f8eSopenharmony_ci     *                                                                  2. Parameter verification failed.
882961847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
883061847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
883161847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
883261847f8eSopenharmony_ci     * @StageModelOnly
883361847f8eSopenharmony_ci     * @crossplatform
883461847f8eSopenharmony_ci     * @atomicservice
883561847f8eSopenharmony_ci     * @since 11
883661847f8eSopenharmony_ci     */
883761847f8eSopenharmony_ci    off(eventType: 'windowStageEvent', callback?: Callback<WindowStageEventType>): void;
883861847f8eSopenharmony_ci
883961847f8eSopenharmony_ci    /**
884061847f8eSopenharmony_ci     * Window stage close callback on.
884161847f8eSopenharmony_ci     * 
884261847f8eSopenharmony_ci     * @param { 'windowStageClose' } eventType The value is fixed at 'windowStageClose', indicating the window stage close event.
884361847f8eSopenharmony_ci     * @param { Callback<void> } callback Callback function requires a boolean return value to determine whether to close the current main window.
884461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
884561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
884661847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
884761847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
884861847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
884961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
885061847f8eSopenharmony_ci     * @stagemodelonly
885161847f8eSopenharmony_ci     * @atomicservice
885261847f8eSopenharmony_ci     * @since 14
885361847f8eSopenharmony_ci     */
885461847f8eSopenharmony_ci    on(eventType: 'windowStageClose', callback: Callback<void>): void;
885561847f8eSopenharmony_ci
885661847f8eSopenharmony_ci    /**
885761847f8eSopenharmony_ci     * Window stage close callback off.
885861847f8eSopenharmony_ci     *
885961847f8eSopenharmony_ci     * @param { 'windowStageClose' } eventType The value is fixed at 'windowStageClose', indicating the window stage close event.
886061847f8eSopenharmony_ci     * @param { Callback<void> } callback Callback function requires a boolean return value to determine whether to close the current main window.
886161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
886261847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types; 
886361847f8eSopenharmony_ci     *                                                                  3. Parameter verification failed.
886461847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
886561847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
886661847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
886761847f8eSopenharmony_ci     * @stagemodelonly
886861847f8eSopenharmony_ci     * @atomicservice
886961847f8eSopenharmony_ci     * @since 14
887061847f8eSopenharmony_ci     */
887161847f8eSopenharmony_ci    off(eventType: 'windowStageClose', callback?: Callback<void>): void;
887261847f8eSopenharmony_ci
887361847f8eSopenharmony_ci    /**
887461847f8eSopenharmony_ci     * Disable window decoration. It must be called before loadContent.
887561847f8eSopenharmony_ci     *
887661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
887761847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
887861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
887961847f8eSopenharmony_ci     * @systemapi
888061847f8eSopenharmony_ci     * @StageModelOnly
888161847f8eSopenharmony_ci     * @since 9
888261847f8eSopenharmony_ci     */
888361847f8eSopenharmony_ci    /**
888461847f8eSopenharmony_ci     * Disable window decoration. It must be called before loadContent.
888561847f8eSopenharmony_ci     *
888661847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
888761847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
888861847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
888961847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
889061847f8eSopenharmony_ci     * @systemapi
889161847f8eSopenharmony_ci     * @StageModelOnly
889261847f8eSopenharmony_ci     * @since 12
889361847f8eSopenharmony_ci     */
889461847f8eSopenharmony_ci    disableWindowDecor(): void;
889561847f8eSopenharmony_ci
889661847f8eSopenharmony_ci    /**
889761847f8eSopenharmony_ci     * Sets whether can show on lock screen or not
889861847f8eSopenharmony_ci     *
889961847f8eSopenharmony_ci     * @param { boolean } showOnLockScreen can show on lock screen if true, or not if false
890061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
890161847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
890261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
890361847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
890461847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
890561847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
890661847f8eSopenharmony_ci     * @StageModelOnly
890761847f8eSopenharmony_ci     * @since 9
890861847f8eSopenharmony_ci     */
890961847f8eSopenharmony_ci    /**
891061847f8eSopenharmony_ci     * Sets whether can show on lock screen or not
891161847f8eSopenharmony_ci     *
891261847f8eSopenharmony_ci     * @param { boolean } showOnLockScreen can show on lock screen if true, or not if false
891361847f8eSopenharmony_ci     * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API.
891461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
891561847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
891661847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
891761847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
891861847f8eSopenharmony_ci     * @syscap SystemCapability.WindowManager.WindowManager.Core
891961847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
892061847f8eSopenharmony_ci     * @StageModelOnly
892161847f8eSopenharmony_ci     * @since 12
892261847f8eSopenharmony_ci     */
892361847f8eSopenharmony_ci    setShowOnLockScreen(showOnLockScreen: boolean): void;
892461847f8eSopenharmony_ci
892561847f8eSopenharmony_ci    /**
892661847f8eSopenharmony_ci     * Set whether to use default density.
892761847f8eSopenharmony_ci     *
892861847f8eSopenharmony_ci     * @param { boolean } enabled - Use default density if true, or follow system density change if false
892961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; 
893061847f8eSopenharmony_ci     *                                                                  2. Incorrect parameter types.
893161847f8eSopenharmony_ci     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.
893261847f8eSopenharmony_ci     * @throws { BusinessError } 1300002 - This window state is abnormal.
893361847f8eSopenharmony_ci     * @throws { BusinessError } 1300005 - This window stage is abnormal.
893461847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
893561847f8eSopenharmony_ci     * @StageModelOnly
893661847f8eSopenharmony_ci     * @atomicservice
893761847f8eSopenharmony_ci     * @since 12
893861847f8eSopenharmony_ci     */
893961847f8eSopenharmony_ci    setDefaultDensityEnabled(enabled: boolean): void;
894061847f8eSopenharmony_ci  }
894161847f8eSopenharmony_ci
894261847f8eSopenharmony_ci  /**
894361847f8eSopenharmony_ci   * Attribute of the window for UI service extension ability.
894461847f8eSopenharmony_ci   *
894561847f8eSopenharmony_ci   * @enum { number }
894661847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
894761847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
894861847f8eSopenharmony_ci   * @stagemodelonly
894961847f8eSopenharmony_ci   * @since 14
895061847f8eSopenharmony_ci   */
895161847f8eSopenharmony_ci   enum ExtensionWindowAttribute {
895261847f8eSopenharmony_ci    /**
895361847f8eSopenharmony_ci     * System window.
895461847f8eSopenharmony_ci     *
895561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
895661847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
895761847f8eSopenharmony_ci     * @stagemodelonly
895861847f8eSopenharmony_ci     * @since 14
895961847f8eSopenharmony_ci     */
896061847f8eSopenharmony_ci    SYSTEM_WINDOW,
896161847f8eSopenharmony_ci
896261847f8eSopenharmony_ci    /**
896361847f8eSopenharmony_ci     * Sub window.
896461847f8eSopenharmony_ci     *
896561847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
896661847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
896761847f8eSopenharmony_ci     * @stagemodelonly
896861847f8eSopenharmony_ci     * @since 14
896961847f8eSopenharmony_ci     */
897061847f8eSopenharmony_ci    SUB_WINDOW
897161847f8eSopenharmony_ci  }
897261847f8eSopenharmony_ci
897361847f8eSopenharmony_ci  /**
897461847f8eSopenharmony_ci   * Options for system window creation.
897561847f8eSopenharmony_ci   *
897661847f8eSopenharmony_ci   * @interface SystemWindowOptions
897761847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
897861847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
897961847f8eSopenharmony_ci   * @stagemodelonly
898061847f8eSopenharmony_ci   * @since 14
898161847f8eSopenharmony_ci   */
898261847f8eSopenharmony_ci  interface SystemWindowOptions {
898361847f8eSopenharmony_ci    /**
898461847f8eSopenharmony_ci     * Indicates window type.
898561847f8eSopenharmony_ci     *
898661847f8eSopenharmony_ci     * @type { WindowType }
898761847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
898861847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
898961847f8eSopenharmony_ci     * @stagemodelonly
899061847f8eSopenharmony_ci     * @since 14
899161847f8eSopenharmony_ci     */
899261847f8eSopenharmony_ci    windowType: WindowType;
899361847f8eSopenharmony_ci  }
899461847f8eSopenharmony_ci
899561847f8eSopenharmony_ci  /**
899661847f8eSopenharmony_ci   * Configuration of the window for UI service extension ability.
899761847f8eSopenharmony_ci   *
899861847f8eSopenharmony_ci   * @interface ExtensionWindowConfig
899961847f8eSopenharmony_ci   * @syscap SystemCapability.Window.SessionManager
900061847f8eSopenharmony_ci   * @systemapi Hide this for inner system use.
900161847f8eSopenharmony_ci   * @stagemodelonly
900261847f8eSopenharmony_ci   * @since 14
900361847f8eSopenharmony_ci   */
900461847f8eSopenharmony_ci  interface ExtensionWindowConfig {
900561847f8eSopenharmony_ci    /**
900661847f8eSopenharmony_ci     * Window name.
900761847f8eSopenharmony_ci     *
900861847f8eSopenharmony_ci     * @type { string }
900961847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
901061847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
901161847f8eSopenharmony_ci     * @stagemodelonly
901261847f8eSopenharmony_ci     * @since 14
901361847f8eSopenharmony_ci     */
901461847f8eSopenharmony_ci    windowName: string;
901561847f8eSopenharmony_ci
901661847f8eSopenharmony_ci    /**
901761847f8eSopenharmony_ci     * Defines whether the window is a subwindow or a system window.
901861847f8eSopenharmony_ci     *
901961847f8eSopenharmony_ci     * @type { ExtensionWindowAttribute }
902061847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
902161847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
902261847f8eSopenharmony_ci     * @stagemodelonly
902361847f8eSopenharmony_ci     * @since 14
902461847f8eSopenharmony_ci     */
902561847f8eSopenharmony_ci    windowAttribute: ExtensionWindowAttribute;
902661847f8eSopenharmony_ci
902761847f8eSopenharmony_ci    /**
902861847f8eSopenharmony_ci     * The position and size of window.
902961847f8eSopenharmony_ci     *
903061847f8eSopenharmony_ci     * @type { Rect }
903161847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
903261847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
903361847f8eSopenharmony_ci     * @stagemodelonly
903461847f8eSopenharmony_ci     * @since 14
903561847f8eSopenharmony_ci     */
903661847f8eSopenharmony_ci    windowRect: Rect;
903761847f8eSopenharmony_ci
903861847f8eSopenharmony_ci    /**
903961847f8eSopenharmony_ci     * The options of sub window creation.
904061847f8eSopenharmony_ci     *
904161847f8eSopenharmony_ci     * @type { ?SubWindowOptions }
904261847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
904361847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
904461847f8eSopenharmony_ci     * @stagemodelonly
904561847f8eSopenharmony_ci     * @since 14
904661847f8eSopenharmony_ci     */
904761847f8eSopenharmony_ci    subWindowOptions?: SubWindowOptions;
904861847f8eSopenharmony_ci
904961847f8eSopenharmony_ci    /**
905061847f8eSopenharmony_ci     * The options of system window creation.
905161847f8eSopenharmony_ci     *
905261847f8eSopenharmony_ci     * @type { ?SystemWindowOptions }
905361847f8eSopenharmony_ci     * @syscap SystemCapability.Window.SessionManager
905461847f8eSopenharmony_ci     * @systemapi Hide this for inner system use.
905561847f8eSopenharmony_ci     * @stagemodelonly
905661847f8eSopenharmony_ci     * @since 14
905761847f8eSopenharmony_ci     */
905861847f8eSopenharmony_ci    systemWindowOptions?: SystemWindowOptions;
905961847f8eSopenharmony_ci  }
906061847f8eSopenharmony_ci}
906161847f8eSopenharmony_ci
906261847f8eSopenharmony_ciexport default window;
9063