diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index f7c964c64a79764b42055e80b6e71fa2ba11758e..b1bfab22e63b472223f30a57d5c8b8bcb1a7781e 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -323,7 +323,22 @@ declare namespace window { * Whether the window is touchable. The default value is false * @since 6 */ - isFullScreen: boolean + touchable: boolean + } + + /** + * Type of allowing the specified of color space. + * @since 8 + */ + enum ColorSpace { + /** + * Default color space. + */ + DEFAULT, + /** + * Wide gamut color space. The specific wide color gamut depends on thr screen. + */ + WIDE_GAMUT, } interface Window { @@ -581,6 +596,44 @@ declare namespace window { * @since 7 */ off(type: 'systemAvoidAreaChange', callback?: Callback): void; + + /** + * Whether the window supports thr wide gamut setting. + * @since 8 + */ + isSupportWideGamut(): Promise; + + /** + * Whether the window supports thr wide gamut setting. + * @since 8 + */ + isSupportWideGamut(callback: AsyncCallback): void; + + /** + * Sets the specified color space. + * @param colorSpace the specified color space. + * @since 8 + */ + setColorSpace(colorSpace:ColorSpace): Promise; + + /** + * Sets the specified color space. + * @param colorSpace the specified color space. + * @since 8 + */ + setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback): void; + + /** + * Obtains thr set color space. + * @since 8 + */ + getColorSpace(): Promise; + + /** + * Obtains thr set color space. + * @since 8 + */ + getColorSpace(callback: AsyncCallback): void; } enum WindowStageEventType {