mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-03-04 23:37:33 +00:00
支持厂商打印拓展
Signed-off-by: zhengzhihao <zhengzhihao3@huawei.com>
This commit is contained in:
parent
e6b92dcc90
commit
9ec3d951a1
21
api/@ohos.app.ability.PrintExtensionAbility.d.ts
vendored
21
api/@ohos.app.ability.PrintExtensionAbility.d.ts
vendored
@ -25,9 +25,8 @@ import type print from './@ohos.print';
|
||||
* class of print extensionAbility.
|
||||
*
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
* @since 12
|
||||
*/
|
||||
export default class PrintExtensionAbility {
|
||||
|
||||
@ -36,9 +35,8 @@ export default class PrintExtensionAbility {
|
||||
* @param { Want } want - call print page want params.
|
||||
* @throws { BusinessError } 202 - not system application
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
* @since 12
|
||||
*/
|
||||
onCreate(want: Want): void;
|
||||
|
||||
@ -46,9 +44,8 @@ export default class PrintExtensionAbility {
|
||||
* Called once to start to discover the printers connected with the device.
|
||||
* @throws { BusinessError } 202 - not system application
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
* @since 12
|
||||
*/
|
||||
onStartDiscoverPrinter(): void;
|
||||
|
||||
@ -56,9 +53,8 @@ export default class PrintExtensionAbility {
|
||||
* Called once to stop discovering the printer.
|
||||
* @throws { BusinessError } 202 - not system application
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
* @since 12
|
||||
*/
|
||||
onStopDiscoverPrinter(): void;
|
||||
|
||||
@ -67,9 +63,8 @@ export default class PrintExtensionAbility {
|
||||
* @param { number } printerId - connect the printerId.
|
||||
* @throws { BusinessError } 202 - not system application
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
* @since 12
|
||||
*/
|
||||
onConnectPrinter(printerId: number): void;
|
||||
|
||||
@ -78,9 +73,8 @@ export default class PrintExtensionAbility {
|
||||
* @param { number } printerId - connect the printerId.
|
||||
* @throws { BusinessError } 202 - not system application
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
* @since 12
|
||||
*/
|
||||
onDisconnectPrinter(printerId: number): void;
|
||||
|
||||
@ -134,9 +128,8 @@ export default class PrintExtensionAbility {
|
||||
* Called once to finalize the extensionAbility.
|
||||
* @throws { BusinessError } 202 - not system application
|
||||
* @syscap SystemCapability.Print.PrintFramework
|
||||
* @systemapi Hide this for inner system use.
|
||||
* @StageModelOnly
|
||||
* @since 10
|
||||
* @since 12
|
||||
*/
|
||||
onDestroy(): void;
|
||||
}
|
||||
|
1794
api/@ohos.print.d.ts
vendored
1794
api/@ohos.print.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@ -781,6 +781,7 @@ pss
|
||||
pssh
|
||||
puk
|
||||
pvr
|
||||
qualities
|
||||
quant
|
||||
querier
|
||||
queriers
|
||||
|
Loading…
x
Reference in New Issue
Block a user