From 3cb22dbf4df8e93d9ca04db83026a8011a773cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E4=BF=9D=E8=89=AF?= Date: Tue, 2 Sep 2025 16:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3displaySync=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 鲁保良 --- api/@ohos.graphics.displaySync.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/api/@ohos.graphics.displaySync.d.ts b/api/@ohos.graphics.displaySync.d.ts index 18e8192b67..5f6b7c780b 100644 --- a/api/@ohos.graphics.displaySync.d.ts +++ b/api/@ohos.graphics.displaySync.d.ts @@ -16,7 +16,6 @@ /** * @file * @kit ArkGraphics2D - * @arkts 1.1&1.2 */ import type { Callback } from './@ohos.base'; @@ -30,6 +29,7 @@ import { ExpectedFrameRateRange } from './arkui/component/common'; * @namespace displaySync * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ declare namespace displaySync { /** @@ -37,6 +37,7 @@ declare namespace displaySync { * @interface IntervalInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ interface IntervalInfo { /** @@ -44,6 +45,7 @@ declare namespace displaySync { * @type { long } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ timestamp: long; @@ -52,6 +54,7 @@ declare namespace displaySync { * @type { long } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ targetTimestamp: long; } @@ -62,6 +65,7 @@ declare namespace displaySync { * @interface DisplaySync * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ interface DisplaySync { /** @@ -76,6 +80,7 @@ declare namespace displaySync { * or check ExpectedFrameRateRange if valid. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ setExpectedFrameRateRange(rateRange: ExpectedFrameRateRange) : void; @@ -86,6 +91,7 @@ declare namespace displaySync { * @param { Callback } callback - The callback function to be called when DisplaySync dispatching. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ on(type: 'frame', callback: Callback): void; @@ -97,6 +103,7 @@ declare namespace displaySync { * will be removed. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ off(type: 'frame', callback?: Callback): void; @@ -105,6 +112,7 @@ declare namespace displaySync { * the callback function be enabled. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ start(): void; @@ -113,6 +121,7 @@ declare namespace displaySync { * the callback function be disabled. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ stop(): void; } @@ -122,6 +131,7 @@ declare namespace displaySync { * @returns { DisplaySync } DisplaySync * @syscap SystemCapability.ArkUI.ArkUI.Full * @since arkts {'1.1': '11', '1.2': '20'} + * @arkts 1.1&1.2 */ function create(): DisplaySync; } -- Gitee