diff --git a/api/@internal/component/ets/remote_window.d.ts b/api/@internal/component/ets/remote_window.d.ts index 9f6c2cbd2356055fc28e8724ae3b1836e3779bda..ed14a61c372d556e5155356e852376afbd9aa473 100644 --- a/api/@internal/component/ets/remote_window.d.ts +++ b/api/@internal/component/ets/remote_window.d.ts @@ -43,6 +43,8 @@ interface WindowAnimationTarget { readonly abilityName: string; readonly windowBounds: RRect; + + readonly missionId: number; } /** diff --git a/api/@ohos.animation.windowAnimationManager.d.ts b/api/@ohos.animation.windowAnimationManager.d.ts index 6dcb530783832de0b10cf95807fba41b19eb9897..4cd8c3bc2e64ccd042361e8f019c3f811dcbf722 100644 --- a/api/@ohos.animation.windowAnimationManager.d.ts +++ b/api/@ohos.animation.windowAnimationManager.d.ts @@ -13,6 +13,8 @@ * limitations under the License. */ +import {AsyncCallback} from "./basic"; + /** * Window animation manager. * @@ -31,6 +33,29 @@ declare namespace windowAnimationManager { */ function setController(controller: WindowAnimationController): void; + /** + * Minimize the window target with animation. + * + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @param windowTarget The window target to be minimized. + * @return Returns the animation finished callback. + * @systemapi Hide this for inner system use. + * @since 9 + */ + function minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget, + callback: AsyncCallback): void; + + /** + * Minimize the window target with animation. + * + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @param windowTarget The window target to be minimized. + * @return Returns the animation finished callback. + * @systemapi Hide this for inner system use. + * @since 9 + */ + function minimizeWindowWithAnimation(windowTarget: WindowAnimationTarget): Promise; + /** * Round rect. * @@ -63,6 +88,8 @@ declare namespace windowAnimationManager { readonly abilityName: string; readonly windowBounds: RRect; + + readonly missionId: number; } /** @@ -158,6 +185,18 @@ declare namespace windowAnimationManager { * @since 9 */ onScreenUnlock(finishCallback: WindowAnimationFinishedCallback): void; + + + /** + * Called on window animation targets update. + * + * @param fullScreenWindowTarget The fullscreen window target. + * @param floatingWindowTargets All the floating window targets. + * @systemapi Hide this for inner system use. + * @since 9 + */ + onWindowAnimationTargetsUpdate(fullScreenWindowTarget: WindowAnimationTarget, + floatingWindowTargets: Array): void; } }