diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 5172be5e139fc6829a5d1568bf43747a590607b7..37785c3df4ae6eca818fb6d40c3b43651b778137 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -397,6 +397,34 @@ declare namespace bundle { RELATION_UPGRADE = 2, } + /** + * @name SupportWindowMode + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + * @import NA + * @permission NA + */ + export enum SupportWindowMode { + /** + * @default Indicates supported window mode of full screen mode + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + FULL_SCREEN = 0, + /** + * @default Indicates supported window mode of split mode + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + SPLIT = 1, + /** + * @default Indicates supported window mode of floating mode + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + FLOATING = 2, + } + /** * Obtains bundleInfo based on bundleName, bundleFlags and options. * diff --git a/api/bundle/abilityInfo.d.ts b/api/bundle/abilityInfo.d.ts index 099ba7a1b75925ecb5664c3972350e15fb5c1246..7812efd17260ec668699aa83b7b74a72ff26692f 100644 --- a/api/bundle/abilityInfo.d.ts +++ b/api/bundle/abilityInfo.d.ts @@ -146,7 +146,6 @@ export interface AbilityInfo { * @default Enumerates ability display orientations * @since 7 * @syscap SystemCapability.BundleManager.BundleFramework - * @FAModelOnly */ readonly orientation: bundle.DisplayOrientation; @@ -229,5 +228,54 @@ export interface AbilityInfo { * @since 8 * @syscap SystemCapability.BundleManager.BundleFramework */ - readonly enabled: boolean; + readonly enabled: boolean; + + /** + * @default Indicates which window mode is supported + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly supportWindowMode: Array; + + /** + * @default Indicates maximum ratio of width over height of window under free window status. + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly maxWindowRatio: number; + + /** + * @default Indicates minimum ratio of width over height of window under free window status. + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly minWindowRatio: number; + + /** + * @default Indicates maximum width of window under free window status. + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly maxWindowWidth: number; + + /** + * @default Indicates minimum width of window under free window status. + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly minWindowWidth: number; + + /** + * @default Indicates maximum height of window under free window status. + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly maxWindowHeight: number; + + /** + * @default Indicates minimum height of window under free window status. + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + readonly minWindowHeight: number; }