diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index c73851031bf907ceeac42851e3d4e6929c86c4cb..605a0bc01398b03638b730ac5191f73884e558f9 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -65,6 +65,27 @@ declare namespace window { FLOATING } + /** + * Describes the mode of window layout + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @systemapi Hide this for inner system use. + * @since 9 + */ + enum WindowLayoutMode { + /** + * CASCADE + * @systemapi Hide this for inner system use. + * @since 9 + */ + WINDOW_LAYOUT_MODE_CASCADE, + /** + * TILE + * @systemapi Hide this for inner system use. + * @since 9 + */ + WINDOW_LAYOUT_MODE_TILE + } + /** * Properties of status bar and navigation bar, it couldn't update automatically * @syscap SystemCapability.WindowManager.WindowManager.Core @@ -380,6 +401,50 @@ declare namespace window { */ function getTopWindow(ctx: Context, callback: AsyncCallback): void; + /** + * minimize all app windows. + * @systemapi Hide this for inner system use. + * @since 9 + */ + function minimizeAll(id: number, callback: AsyncCallback): void; + + /** + * minimize all app windows. + * @systemapi Hide this for inner system use. + * @since 9 + */ + function minimizeAll(id: number): Promise; + + /** + * Toggle shown state for all app windows. Minimize or restore all app windows. + * @systemapi Hide this for inner system use. + * @since 9 + */ + function toggleShownStateForAllAppWindows(callback: AsyncCallback): void; + + /** + * Toggle shown state for all app windows. Minimize or restore all app windows. + * @systemapi Hide this for inner system use. + * @since 9 + */ + function toggleShownStateForAllAppWindows(): Promise; + + /** + * Set the layout mode of a window. + * @param mode the layout mode of a window. + * @systemapi Hide this for inner system use. + * @since 9 + */ + function setWindowLayoutMode(mode: WindowLayoutMode, callback: AsyncCallback): void; + + /** + * Set the layout mode of a window. + * @param mode the layout mode of a window. + * @systemapi Hide this for inner system use. + * @since 9 + */ + function setWindowLayoutMode(mode: WindowLayoutMode): Promise; + /** * register the callback of systemBarTintChange * @param type: 'systemBarTintChange'