From 531c7ed2e177fdbe08f4ba56965a5700d43d319f Mon Sep 17 00:00:00 2001 From: leafly2021 Date: Wed, 9 Mar 2022 11:37:36 +0800 Subject: [PATCH] remove since9 api Signed-off-by: leafly2021 Change-Id: I0fb022dd29be7cadb18dbefab8b9dc2d749472ec --- api/@ohos.window.d.ts | 112 ++---------------------------------------- 1 file changed, 5 insertions(+), 107 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 0609aa55d6..5562c31409 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -23,6 +23,7 @@ declare namespace window { /** * The type of a window. * @syscap SystemCapability.WindowManager.WindowManager.Core + * @since 7 */ enum WindowType { /** @@ -297,7 +298,6 @@ declare namespace window { * @param ctx Indicates the context on which the window depends * @param id Indicates window id. * @param type Indicates window type. - * @systemapi Hide this for inner system use. * @permission ohos.permission.SYSTEM_FLOAT_WINDOW * @since 8 */ @@ -308,7 +308,6 @@ declare namespace window { * @param ctx Indicates the context on which the window depends * @param id Indicates window id. * @param type Indicates window type. - * @systemapi Hide this for inner system use. * @permission ohos.permission.SYSTEM_FLOAT_WINDOW * @since 8 */ @@ -448,21 +447,21 @@ declare namespace window { /** * Set the type of a window. - * @param windowType Indicate the type of a window. + * @param type Indicate the type of a window. * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 7 */ - setWindowType(windowType: WindowType): Promise; + setWindowType(type: WindowType): Promise; /** * Set the type of a window. - * @param windowType Indicate the type of a window. + * @param type Indicate the type of a window. * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. * @since 7 */ - setWindowType(windowType: WindowType, callback: AsyncCallback): void; + setWindowType(type: WindowType, callback: AsyncCallback): void; /** * get the properties of current window @@ -556,24 +555,6 @@ declare namespace window { */ setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise; - /** - * Loads content - * @param path path Path of the page to which the content will be loaded - * @param storage storage The data object shared within the content instance loaded by the window - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 9 - */ - loadContent(path: string, storage: ContentStorage, callback: AsyncCallback): void; - - /** - * Loads content - * @param path path of the page to which the content will be loaded - * @param storage storage The data object shared within the content instance loaded by the window - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 9 - */ - loadContent(path: string, storage: ContentStorage): Promise; - /** * Loads content * @param path path of the page to which the content will be loaded @@ -674,89 +655,6 @@ declare namespace window { */ getColorSpace(callback: AsyncCallback): void; } - /** - * window stage callback event type - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 9 - */ - enum WindowStageEventType { - FOREGROUND = 1, - ACTIVE, - INACTIVE, - BACKGROUND, - } - /** - * WindowStage - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 9 - */ - interface WindowStage { - /** - * Get main window of the stage. - * @since 9 - */ - getMainWindow(): Promise; - /** - * Get main window of the stage. - * @since 9 - */ - getMainWindow(callback: AsyncCallback): void; - /** - * Create sub window of the stage. - * @param name window name of sub window - * @since 9 - */ - createSubWindow(name: string): Promise; - /** - * Create sub window of the stage. - * @param name window name of sub window - * @since 9 - */ - createSubWindow(name: string, callback: AsyncCallback): void; - /** - * Get sub window of the stage. - * @since 9 - */ - getSubWindow(): Promise>; - /** - * Get sub window of the stage. - * @since 9 - */ - getSubWindow(callback: AsyncCallback>): void; - /** - * Loads content - * @param path path Path of the page to which the content will be loaded - * @param storage storage The data object shared within the content instance loaded by the window - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 9 - */ - loadContent(path: string, storage: ContentStorage, callback: AsyncCallback): void; - /** - * Loads content - * @param path path of the page to which the content will be loaded - * @param storage storage The data object shared within the content instance loaded by the window - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 9 - */ - loadContent(path: string, storage?: ContentStorage): Promise; - /** - * Loads content - * @param path path of the page to which the content will be loaded - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @since 9 - */ - loadContent(path: string, callback: AsyncCallback): void; - /** - * window stage event callback on. - * @since 9 - */ - on(eventType: 'windowStageEvent', callback: Callback): void; - /** - * window stage event callback off. - * @since 9 - */ - off(eventType: 'windowStageEvent', callback?: Callback): void; - } } export default window; -- Gitee