1/*
2 * Copyright (c) 2023 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
16import type rpc from '@ohos.rpc';
17import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility';
18import Want from '@ohos.app.ability.Want';
19
20export default class ServiceExtension extends ServiceExtensionAbility {
21  onCreate(want: Want): void {
22    console.log('[FormRender] onCreate');
23  }
24
25  onRequest(want: Want, startId: number): void {
26    console.log('[FormRender] onRequest');
27  }
28
29  onConnect(want: Want): rpc.RemoteObject | Promise<rpc.RemoteObject> {
30    console.log('[FormRender] onConnect');
31    return undefined;
32  }
33
34  onDisconnect(want: Want): void | Promise<void> {
35    console.log('[FormRender] onDisconnect');
36  }
37
38  onDestroy(): void {
39    console.log('[FormRender] onDestroy');
40  }
41}