diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index aded7ac14a9e909f31d5f3c4cb82881c1d8b7c33..5f7a0b1da7f178d79eb682246273c1e02571a340 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -428,6 +428,19 @@ declare namespace window { isTransparent: boolean } + /** + * frame statistics of window + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @systemapi Hide this for inner system use. + * @since 9 + */ + interface FrameStatistics { + /** + * frame rate of window + */ + frameRate: number; + } + /** * Type of allowing the specified of color space. * @since 8 @@ -1102,6 +1115,22 @@ declare namespace window { * @since 7 */ setTouchable(isTouchable: boolean, callback: AsyncCallback): void; + + /** + * get the frame statistics of window + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @systemapi Hide this for inner system use. + * @since 9 + */ + getFrameStatistics(callback: AsyncCallback): void; + + /** + * get the frame statistics of window + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @systemapi Hide this for inner system use. + * @since 9 + */ + getFrameStatistics(): Promise; /** * set the flag of the window is forbidden to move in split screen mode