• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 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 inner fullScreen launch component for system applications
18 * @kit ArkUI
19 */
20
21import AtomicServiceOptions from '@ohos.app.ability.AtomicServiceOptions';
22import Callback from '@ohos.base';
23
24/**
25 * Declare component InnerFullScreenLaunchComponent
26 * @syscap SystemCapability.ArkUI.ArkUI.Full
27 * @systemapi
28 * @since 12
29 */
30@Component
31export declare struct InnerFullScreenLaunchComponent {
32  /**
33   * Sets the component content.
34   * @type { Callback<void> }
35   * @syscap SystemCapability.ArkUI.ArkUI.Full
36   * @systemapi
37   * @since 12
38   */
39  @BuilderParam content: Callback<void>;
40
41  /**
42   * Sets the component Controller.
43   * @type { LaunchController }.
44   * @syscap SystemCapability.ArkUI.ArkUI.Full
45   * @systemapi
46   * @since 12
47   */
48  controller: LaunchController;
49}
50
51/**
52 * Declare type LaunchController
53 * @syscap SystemCapability.ArkUI.ArkUI.Full
54 * @systemapi
55 * @since 12
56 */
57export declare class LaunchController {
58
59  /**
60   * Function to launch atomicservice.
61   *
62   * @type { LaunchAtomicServiceCallback }
63   * @syscap SystemCapability.ArkUI.ArkUI.Full
64   * @systemapi
65   * @since 12
66   **/
67  public launchAtomicService: LaunchAtomicServiceCallback;
68}
69
70
71/**
72 * Callback for launch atomicservice.
73 *
74 * @typedef { function } LaunchAtomicServiceCallback
75 * @param { string } appId - appId of atomicservice.
76 * @param { AtomicServiceOptions } [options] - options that could be empty.
77 * @syscap SystemCapability.ArkUI.ArkUI.Full
78 * @systemapi
79 * @since 12
80 **/
81export declare type LaunchAtomicServiceCallback = (appId: string, options?: AtomicServiceOptions) => void;