diff --git a/api/@ohos.display.d.ts b/api/@ohos.display.d.ts index 6690c73c7563a6671d1cc35ac5c65626efbb370e..48a52d789ff30353cb137f2aa083fd474177003b 100644 --- a/api/@ohos.display.d.ts +++ b/api/@ohos.display.d.ts @@ -109,7 +109,8 @@ declare namespace display { * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ function getPrimaryDisplaySync(): Display; @@ -742,7 +743,8 @@ declare namespace display { * @throws { BusinessError } 801 - Capability not supported.function createVirtualScreen can not work correctly due to limited device capabilities. * @throws { BusinessError } 1400001 - Invalid display or screen. * @syscap SystemCapability.Window.SessionManager - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ function createVirtualScreen(config: VirtualScreenConfig): Promise; @@ -759,7 +761,8 @@ declare namespace display { * @throws { BusinessError } 1400001 - Invalid display or screen. * @throws { BusinessError } 1400003 - This display manager service works abnormally. * @syscap SystemCapability.Window.SessionManager - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ function destroyVirtualScreen(screenId: long): Promise; @@ -777,7 +780,8 @@ declare namespace display { * @throws { BusinessError } 1400001 - Invalid display or screen. * @throws { BusinessError } 1400003 - This display manager service works abnormally. * @syscap SystemCapability.Window.SessionManager - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ function setVirtualScreenSurface(screenId: long, surfaceId: string): Promise; @@ -794,7 +798,8 @@ declare namespace display { * @throws { BusinessError } 1400001 - Invalid display or screen. * @throws { BusinessError } 1400003 - This display manager service works abnormally. * @syscap SystemCapability.Window.SessionManager - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ function makeUnique(screenId: long): Promise; @@ -865,7 +870,8 @@ declare namespace display { * * @interface VirtualScreenConfig * @syscap SystemCapability.Window.SessionManager - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ interface VirtualScreenConfig { /** @@ -873,7 +879,8 @@ declare namespace display { * * @type { string } * @syscap SystemCapability.Window.SessionManager - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ name: string; @@ -902,7 +909,8 @@ declare namespace display { * * @type { double } * @syscap SystemCapability.Window.SessionManager - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ density: double; @@ -911,7 +919,8 @@ declare namespace display { * * @type { string } * @syscap SystemCapability.Window.SessionManager - * @since 16 + * @since arkts {'1.1':'16', '1.2':'20'} + * @arkts 1.1&1.2 */ surfaceId: string; } @@ -2427,8 +2436,9 @@ declare namespace display { * @throws { BusinessError } 1400003 - This display manager service works abnormally. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} * @test + * @arkts 1.1&1.2 */ getDisplayCapability(): string; } diff --git a/api/@ohos.screenshot.d.ts b/api/@ohos.screenshot.d.ts index a4fdcbf0c76969d1eda9fdd5ca703d4cc833a00c..538128392bd4b400556a3a51b38011af8fada6d2 100644 --- a/api/@ohos.screenshot.d.ts +++ b/api/@ohos.screenshot.d.ts @@ -106,7 +106,8 @@ declare namespace screenshot { * @throws { BusinessError } 1400003 - This display manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ function capture(options?: CaptureOption): Promise; @@ -118,7 +119,8 @@ declare namespace screenshot { * @throws { BusinessError } 1400003 - This display manager service works abnormally. * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function pick(): Promise; @@ -138,7 +140,8 @@ declare namespace screenshot { * @type { Rect } * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ pickRect: Rect; @@ -148,7 +151,8 @@ declare namespace screenshot { * @type { image.PixelMap } * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ pixelMap: image.PixelMap; } @@ -247,7 +251,8 @@ declare namespace screenshot { * @interface CaptureOption * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ interface CaptureOption { /** @@ -256,7 +261,8 @@ declare namespace screenshot { * @type { ?long } * @syscap SystemCapability.WindowManager.WindowManager.Core * @atomicservice - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ displayId?: long; }