• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 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
16 /**
17 * @file Defines the halfScreen launch component
18 * @kit ArkUI
19 */
20
21import AtomicServiceOptions from '@ohos.app.ability.AtomicServiceOptions';
22import { Callback, ErrorCallback } from '@ohos.base';
23
24/**
25 * Declare component HalfScreenLaunchComponent
26 * @struct { HalfScreenLaunchComponent }
27 * @syscap SystemCapability.ArkUI.ArkUI.Full
28 * @atomicservice
29 * @since 18
30 */
31@Component
32export declare struct HalfScreenLaunchComponent {
33  /**
34   * Sets the component content.
35   * @type { Callback<void> }
36   * @syscap SystemCapability.ArkUI.ArkUI.Full
37   * @atomicservice
38   * @since 18
39   */
40  @BuilderParam content: Callback<void>;
41  /**
42   * Indicates atomic service appId.
43   * @type { string }
44   * @syscap SystemCapability.ArkUI.ArkUI.Full
45   * @atomicservice
46   * @since 18
47   */
48  appId: string;
49  /**
50   * Indicates the atomic service start options.
51   * @type { ?AtomicServiceOptions }
52   * @syscap SystemCapability.ArkUI.ArkUI.Full
53   * @atomicservice
54   * @since 18
55   */
56  options?: AtomicServiceOptions;
57    /**
58    * Indicates the callback of onError.
59    * @type { ?ErrorCallback }
60    * @syscap SystemCapability.ArkUI.ArkUI.Full
61    * @atomicservice
62    * @since 18
63    */
64    onError?: ErrorCallback;
65    /**
66    * Indicates the callback of onTerminated.
67    * @type { ?Callback<TerminationInfo> }
68    * @syscap SystemCapability.ArkUI.ArkUI.Full
69    * @atomicservice
70    * @since 18
71    */
72    onTerminated?: Callback<TerminationInfo>;
73
74  /**
75   * Indicates the callback of onReceive.
76   * @type { ?Callback<Record<string, Object>> }
77   * @syscap SystemCapability.ArkUI.ArkUI.Full
78   * @atomicservice
79   * @since 20
80   */
81  onReceive?: Callback<Record<string, Object>>;
82}