From 410ec5af2b3a93f4209952a2d37c1694bbee1f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=98=8A=E8=8B=8F?= Date: Thu, 12 Jun 2025 14:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0arkts1.2=E6=8E=A5=E5=8F=A3;?= =?UTF-8?q?=20Signed-off-by:liuhaosu@huawei.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘昊苏 --- api/@ohos.print.d.ts | 498 ++++++++++++++++++++++++++++--------------- 1 file changed, 332 insertions(+), 166 deletions(-) diff --git a/api/@ohos.print.d.ts b/api/@ohos.print.d.ts index f78f22a71e..cd7aa0b062 100644 --- a/api/@ohos.print.d.ts +++ b/api/@ohos.print.d.ts @@ -26,7 +26,8 @@ import type Context from './application/Context'; * * @namespace print * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace print { @@ -34,7 +35,8 @@ declare namespace print { * PrintTask provide event callback. * @interface PrintTask * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrintTask { /** @@ -45,7 +47,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'block', callback: Callback): void; @@ -57,7 +60,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'succeed', callback: Callback): void; @@ -69,7 +73,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'fail', callback: Callback): void; @@ -81,7 +86,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'cancel', callback: Callback): void; @@ -93,7 +99,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'block', callback?: Callback): void; @@ -105,7 +112,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'succeed', callback?: Callback): void; @@ -117,7 +125,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'fail', callback?: Callback): void; @@ -129,7 +138,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'cancel', callback?: Callback): void; } @@ -138,7 +148,8 @@ declare namespace print { * Third-party application implement this interface to render files to be printed. * @interface PrintDocumentAdapter * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrintDocumentAdapter { @@ -153,7 +164,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ onStartLayoutWrite(jobId: string, oldAttrs: PrintAttributes, newAttrs: PrintAttributes, fd: number, writeResultCallback: (jobId: string, writeResult: PrintFileCreationState) => void): void; @@ -166,7 +178,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ onJobStateChanged(jobId: string, state: PrintDocumentAdapterState): void; } @@ -179,7 +192,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function print(files: Array, callback: AsyncCallback): void; @@ -191,7 +205,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function print(files: Array): Promise; @@ -204,7 +219,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function print(files: Array, context: Context, callback: AsyncCallback): void; @@ -217,7 +233,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function print(files: Array, context: Context): Promise; @@ -232,7 +249,8 @@ declare namespace print { * @throws { BusinessError } 201 - the application does not have permission to call this function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function print(jobName: string, printAdapter: PrintDocumentAdapter, printAttributes: PrintAttributes, context: Context): Promise; @@ -241,14 +259,16 @@ declare namespace print { * defines print attributes. * @typedef PrintAttributes * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrintAttributes { /** * Copies of document list. * @type { ?number } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ copyNumber?: number; @@ -256,7 +276,8 @@ declare namespace print { * Range size to be printed. * @type { ?PrintPageRange } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ pageRange?: PrintPageRange; @@ -264,7 +285,8 @@ declare namespace print { * Page size. * @type { ?(PrintPageSize | PrintPageType) } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ pageSize?: PrintPageSize | PrintPageType; @@ -272,7 +294,8 @@ declare namespace print { * Print direction. * @type { ?PrintDirectionMode } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ directionMode?: PrintDirectionMode; @@ -280,7 +303,8 @@ declare namespace print { * Color mode. * @type { ?PrintColorMode } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ colorMode?: PrintColorMode; @@ -288,7 +312,8 @@ declare namespace print { * Duplex mode. * @type { ?PrintDuplexMode } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ duplexMode?: PrintDuplexMode; } @@ -297,14 +322,16 @@ declare namespace print { * defines print page range. * @typedef PrintPageRange * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrintPageRange { /** * Start page of sequence. * @type { ?number } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ startPage?: number; @@ -312,7 +339,8 @@ declare namespace print { * End page of sequence. * @type { ?number } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ endPage?: number; @@ -320,7 +348,8 @@ declare namespace print { * Discrete page of sequence. * @type { ?Array } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ pages?: Array; } @@ -330,7 +359,8 @@ declare namespace print { * @typedef PrintMargin * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrintMargin { /** @@ -338,7 +368,8 @@ declare namespace print { * @type { ?number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ top?: number; @@ -347,7 +378,8 @@ declare namespace print { * @type { ?number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ bottom?: number; @@ -356,7 +388,8 @@ declare namespace print { * @type { ?number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ left?: number; @@ -365,7 +398,8 @@ declare namespace print { * @type { ?number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ right?: number; } @@ -375,7 +409,8 @@ declare namespace print { * @typedef PrinterRange * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrinterRange { /** @@ -383,7 +418,8 @@ declare namespace print { * @type { ?number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ startPage?: number; @@ -392,7 +428,8 @@ declare namespace print { * @type { ?number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ endPage?: number; @@ -401,7 +438,8 @@ declare namespace print { * @type { ?Array } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ pages?: Array; } @@ -411,7 +449,8 @@ declare namespace print { * @typedef PreviewAttribute * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PreviewAttribute { /** @@ -419,7 +458,8 @@ declare namespace print { * @type { PrinterRange } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ previewRange: PrinterRange; @@ -428,7 +468,8 @@ declare namespace print { * @type { ?number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ result?: number; } @@ -438,7 +479,8 @@ declare namespace print { * @typedef PrintResolution * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrintResolution { /** @@ -446,7 +488,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ id: string; @@ -455,7 +498,8 @@ declare namespace print { * @type { number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ horizontalDpi: number; @@ -464,7 +508,8 @@ declare namespace print { * @type { number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ verticalDpi: number; } @@ -473,14 +518,16 @@ declare namespace print { * defines print page size. * @typedef PrintPageSize * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrintPageSize { /** * Page size id. * @type { string } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ id: string; @@ -488,7 +535,8 @@ declare namespace print { * Page size name. * @type { string } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ name: string; @@ -496,7 +544,8 @@ declare namespace print { * Unit: millimeter width. * @type { number } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ width: number; @@ -504,7 +553,8 @@ declare namespace print { * Unit: millimeter height. * @type { number } * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ height: number; } @@ -514,7 +564,8 @@ declare namespace print { * @typedef PrinterCapability * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrinterCapability { /** @@ -522,7 +573,8 @@ declare namespace print { * @type { number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ colorMode: number; @@ -531,7 +583,8 @@ declare namespace print { * @type { number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ duplexMode: number; @@ -540,7 +593,8 @@ declare namespace print { * @type { Array } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ pageSize: Array; @@ -549,7 +603,8 @@ declare namespace print { * @type { ?Array } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ resolution?: Array; @@ -558,7 +613,8 @@ declare namespace print { * @type { ?PrintMargin } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ minMargin?: PrintMargin; @@ -567,7 +623,8 @@ declare namespace print { * @type { ?Object } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ options?: Object; } @@ -577,7 +634,8 @@ declare namespace print { * @typedef PrinterInfo * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrinterInfo { /** @@ -585,7 +643,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ printerId: string; @@ -594,7 +653,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ printerName: string; @@ -603,7 +663,8 @@ declare namespace print { * @type { PrinterState } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ printerState: PrinterState; @@ -612,7 +673,8 @@ declare namespace print { * @type { ?number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ printerIcon?: number; @@ -621,7 +683,8 @@ declare namespace print { * @type { ?string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ description?: string; @@ -630,7 +693,8 @@ declare namespace print { * @type { ?PrinterCapability } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ capability?: PrinterCapability; @@ -639,7 +703,8 @@ declare namespace print { * @type { ?Object } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ options?: Object; } @@ -649,7 +714,8 @@ declare namespace print { * @typedef PrintJob * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrintJob { /** @@ -657,7 +723,8 @@ declare namespace print { * @type { Array } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ fdList: Array; @@ -666,7 +733,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ jobId: string; @@ -675,7 +743,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ printerId: string; @@ -684,7 +753,8 @@ declare namespace print { * @type { PrintJobState } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ jobState: PrintJobState; @@ -693,7 +763,8 @@ declare namespace print { * @type { PrintJobSubState } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ jobSubstate: PrintJobSubState; @@ -702,7 +773,8 @@ declare namespace print { * @type { number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ copyNumber: number; @@ -711,7 +783,8 @@ declare namespace print { * @type { PrinterRange } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ pageRange: PrinterRange; @@ -720,7 +793,8 @@ declare namespace print { * @type { boolean } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ isSequential: boolean; @@ -729,7 +803,8 @@ declare namespace print { * @type { PrintPageSize } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ pageSize: PrintPageSize; @@ -738,7 +813,8 @@ declare namespace print { * @type { boolean } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ isLandscape: boolean; @@ -747,7 +823,8 @@ declare namespace print { * @type { number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ colorMode: number; @@ -756,7 +833,8 @@ declare namespace print { * @type { number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ duplexMode: number; @@ -765,7 +843,8 @@ declare namespace print { * @type { ?PrintMargin } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ margin?: PrintMargin; @@ -774,7 +853,8 @@ declare namespace print { * @type { ?PreviewAttribute } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ preview?: PreviewAttribute; @@ -783,7 +863,8 @@ declare namespace print { * @type { ?Object } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ options?: Object; } @@ -792,27 +873,31 @@ declare namespace print { * Enumeration of Print Direction Mode. * @enum { number } PrintDirectionMode * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ enum PrintDirectionMode { /** * Automatically select direction. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ DIRECTION_MODE_AUTO = 0, /** * Print portrait. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ DIRECTION_MODE_PORTRAIT = 1, /** * Print landscape. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ DIRECTION_MODE_LANDSCAPE = 2, } @@ -821,20 +906,23 @@ declare namespace print { * Enumeration of Print Color Mode. * @enum { number } PrintColorMode * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ enum PrintColorMode { /** * Print monochrome. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ COLOR_MODE_MONOCHROME = 0, /** * Color printing. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ COLOR_MODE_COLOR = 1, } @@ -843,27 +931,31 @@ declare namespace print { * Enumeration of Print Duplex Mode. * @enum { number } PrintDuplexMode * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ enum PrintDuplexMode { /** * Single side printing. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ DUPLEX_MODE_NONE = 0, /** * Long-edge flip-up duplex printing. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ DUPLEX_MODE_LONG_EDGE = 1, /** * Short-edge flip-up duplex printing. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ DUPLEX_MODE_SHORT_EDGE = 2, } @@ -872,90 +964,103 @@ declare namespace print { * Enumeration of Print Page Type. * @enum { number } PrintPageType * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ enum PrintPageType { /** * A3 page. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_ISO_A3 = 0, /** * A4 page. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_ISO_A4 = 1, /** * A5 page. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_ISO_A5 = 2, /** * B5 page. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_JIS_B5 = 3, /** * C5 page. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_ISO_C5 = 4, /** * DL Envelope. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_ISO_DL = 5, /** * Letter. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_LETTER = 6, /** * Legal. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_LEGAL = 7, /** * Photo 4x6. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_PHOTO_4X6 = 8, /** * Photo 5x7. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_PHOTO_5X7 = 9, /** * Envelope INT DL. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_INT_DL_ENVELOPE = 10, /** * Tabloid B. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PAGE_B_TABLOID = 11, } @@ -964,41 +1069,47 @@ declare namespace print { * Enumeration of Print Document Adapter State. * @enum { number } PrintDocumentAdapterState * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ enum PrintDocumentAdapterState { /** * Preview failed. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PREVIEW_DESTROY = 0, /** * Print state is succeed. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PRINT_TASK_SUCCEED = 1, /** * Print state is fail. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PRINT_TASK_FAIL = 2, /** * Print state is cancel. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PRINT_TASK_CANCEL = 3, /** * Print state is block. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PRINT_TASK_BLOCK = 4, } @@ -1007,27 +1118,31 @@ declare namespace print { * Enumeration of Print File Creation State. * @enum { number } PrintFileCreationState * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ enum PrintFileCreationState { /** * Print file created success. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PRINT_FILE_CREATED = 0, /** * Print file created fail. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PRINT_FILE_CREATION_FAILED = 1, /** * Print file created success but unrendered. * @syscap SystemCapability.Print.PrintFramework - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ PRINT_FILE_CREATED_UNRENDERED = 2, } @@ -1441,7 +1556,8 @@ declare namespace print { * @typedef PrinterExtensionInfo * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrinterExtensionInfo { /** @@ -1449,7 +1565,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ extensionId: string; @@ -1458,7 +1575,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ vendorId: string; @@ -1467,7 +1585,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ vendorName: string; @@ -1476,7 +1595,8 @@ declare namespace print { * @type { number } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ vendorIcon: number; @@ -1485,7 +1605,8 @@ declare namespace print { * @type { string } * @syscap SystemCapability.Print.PrintFramework * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ version: string; } @@ -1498,7 +1619,8 @@ declare namespace print { * @throws { BusinessError } 202 - not system application * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function queryAllPrinterExtensionInfos(callback: AsyncCallback>): void; @@ -1510,7 +1632,8 @@ declare namespace print { * @throws { BusinessError } 202 - not system application * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function queryAllPrinterExtensionInfos(): Promise>; @@ -1525,7 +1648,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function startDiscoverPrinter(extensionList: Array, callback: AsyncCallback): void; @@ -1540,7 +1664,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function startDiscoverPrinter(extensionList: Array): Promise; @@ -1552,7 +1677,8 @@ declare namespace print { * @throws { BusinessError } 202 - not system application * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function stopDiscoverPrinter(callback: AsyncCallback): void; @@ -1564,7 +1690,8 @@ declare namespace print { * @throws { BusinessError } 202 - not system application * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function stopDiscoverPrinter(): Promise; @@ -1578,7 +1705,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function connectPrinter(printerId: string, callback: AsyncCallback): void; @@ -1592,7 +1720,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function connectPrinter(printerId: string): Promise; @@ -1606,7 +1735,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function disconnectPrinter(printerId: string, callback: AsyncCallback): void; @@ -1620,7 +1750,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function disconnectPrinter(printerId: string): Promise; @@ -1634,7 +1765,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function queryPrinterCapability(printerId: string, callback: AsyncCallback): void; @@ -1648,7 +1780,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function queryPrinterCapability(printerId: string): Promise; @@ -1662,7 +1795,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function startPrintJob(jobInfo: PrintJob, callback: AsyncCallback): void; @@ -1676,7 +1810,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function startPrintJob(jobInfo: PrintJob): Promise; @@ -1690,7 +1825,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function cancelPrintJob(jobId: string, callback: AsyncCallback): void; @@ -1704,7 +1840,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function cancelPrintJob(jobId: string): Promise; @@ -1718,7 +1855,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function requestPrintPreview(jobInfo: PrintJob, callback: Callback): void; @@ -1732,7 +1870,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function requestPrintPreview(jobInfo: PrintJob): Promise; @@ -1746,7 +1885,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function on(type: 'printerStateChange', callback: (state: PrinterState, info: PrinterInfo) => void): void; @@ -1760,7 +1900,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function off(type: 'printerStateChange', callback?: Callback): void; @@ -1774,7 +1915,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function on(type: 'jobStateChange', callback: (state: PrintJobState, job: PrintJob) => void): void; @@ -1788,7 +1930,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function off(type: 'jobStateChange', callback?: Callback): void; @@ -1802,7 +1945,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function on(type: 'extInfoChange', callback: (extensionId: string, info: string) => void): void; @@ -1816,7 +1960,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function off(type: 'extInfoChange', callback?: Callback): void; @@ -1830,7 +1975,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function addPrinters(printers: Array, callback: AsyncCallback): void; @@ -1844,7 +1990,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function addPrinters(printers: Array): Promise; @@ -1858,7 +2005,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function removePrinters(printerIds: Array, callback: AsyncCallback): void; @@ -1872,7 +2020,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function removePrinters(printerIds: Array): Promise; @@ -1886,7 +2035,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function updatePrinters(printers: Array, callback: AsyncCallback): void; @@ -1900,7 +2050,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function updatePrinters(printers: Array): Promise; @@ -1915,7 +2066,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function updatePrinterState(printerId: string, state: PrinterState, callback: AsyncCallback): void; @@ -1930,7 +2082,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function updatePrinterState(printerId: string, state: PrinterState): Promise; @@ -1946,7 +2099,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function updatePrintJobState(jobId: string, state: PrintJobState, subState: PrintJobSubState, callback: AsyncCallback): void; @@ -1962,7 +2116,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function updatePrintJobState(jobId: string, state: PrintJobState, subState: PrintJobSubState): Promise; @@ -1976,7 +2131,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function updateExtensionInfo(info: string, callback: AsyncCallback): void; @@ -1990,7 +2146,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function updateExtensionInfo(info: string): Promise; @@ -2002,7 +2159,8 @@ declare namespace print { * @throws { BusinessError } 202 - not system application * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 * @deprecated since 11 * @useinstead print#queryPrintJobList */ @@ -2016,7 +2174,8 @@ declare namespace print { * @throws { BusinessError } 202 - not system application * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 * @deprecated since 11 * @useinstead print#queryPrintJobList */ @@ -2030,7 +2189,8 @@ declare namespace print { * @throws { BusinessError } 202 - not system application * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function queryPrintJobList(callback: AsyncCallback>): void; @@ -2042,7 +2202,8 @@ declare namespace print { * @throws { BusinessError } 202 - not system application * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function queryPrintJobList(): Promise>; @@ -2056,7 +2217,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function queryPrintJobById(jobId: string, callback: AsyncCallback): void; @@ -2070,7 +2232,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function queryPrintJobById(jobId: string): Promise; @@ -2086,7 +2249,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function startGettingPrintFile(jobId: string, printAttributes: PrintAttributes, fd: number, onFileStateChanged: Callback): void; @@ -2102,7 +2266,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function notifyPrintService(jobId: string, type: 'spooler_closed_for_cancelled' | 'spooler_closed_for_started', callback: AsyncCallback): void; @@ -2117,7 +2282,8 @@ declare namespace print { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types. * @syscap SystemCapability.Print.PrintFramework * @systemapi Hide this for inner system use. - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ function notifyPrintService(jobId: string, type: 'spooler_closed_for_cancelled' | 'spooler_closed_for_started'): Promise; -- Gitee