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 * Indicates the callback of onReceive. 52 * @type { ?Callback<Record<string, Object>> } 53 * @syscap SystemCapability.ArkUI.ArkUI.Full 54 * @systemapi 55 * @since 20 56 */ 57 onReceive?: Callback<Record<string, Object>>; 58} 59 60/** 61 * Declare type LaunchController 62 * @syscap SystemCapability.ArkUI.ArkUI.Full 63 * @systemapi 64 * @since 12 65 */ 66export declare class LaunchController { 67 68 /** 69 * Function to launch atomicservice. 70 * 71 * @type { LaunchAtomicServiceCallback } 72 * @syscap SystemCapability.ArkUI.ArkUI.Full 73 * @systemapi 74 * @since 12 75 **/ 76 public launchAtomicService: LaunchAtomicServiceCallback; 77} 78 79 80/** 81 * Callback for launch atomicservice. 82 * 83 * @typedef { function } LaunchAtomicServiceCallback 84 * @param { string } appId - appId of atomicservice. 85 * @param { AtomicServiceOptions } [options] - options that could be empty. 86 * @syscap SystemCapability.ArkUI.ArkUI.Full 87 * @systemapi 88 * @since 12 89 **/ 90export declare type LaunchAtomicServiceCallback = (appId: string, options?: AtomicServiceOptions) => void;