1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16class PrintExtension {
17  onCreated(want) {
18    console.log('onCreated, want:' + want.abilityName);
19  }
20
21  onStartDiscoverPrinter() {
22    console.log('onStartDiscoverPrinter');
23  }
24
25  onStopDiscoverPrinter() {
26    console.log('onStopDiscoverPrinter');
27  }
28
29  onConnectPrinter(printerId) {
30    console.log('onConnectPrinter:' + printerId);
31  }
32
33  onDisconnectPrinter(printerId) {
34    console.log('onDisconnectPrinter');
35  }
36
37  onStartPrintJob(jobInfo) {
38    console.log('onStartPrintJob');
39  }
40
41  onCancelPrintJob(jobInfo) {
42    console.log('onCancelPrintJob');
43  }
44
45  onRequestPrinterCapability(printerId) {
46    console.log('onRequestPrinterCapability:' + printerId);
47  }
48
49  onRequestPreview(jobInfo) {
50    console.log('onRequestPreview');
51  }
52
53  onDestroy() {
54    console.log('onDestroy');
55  }
56}
57
58export default PrintExtension;
59