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 18 * @kit AbilityKit 19 */ 20 21import CompletionHandlerForAtomicService from './@ohos.app.ability.CompletionHandlerForAtomicService'; 22import StartOptions from './@ohos.app.ability.StartOptions'; 23 24/** 25 * AtomicServiceOptions is the basic communication component of the system. 26 * 27 * @extends StartOptions 28 * @syscap SystemCapability.Ability.AbilityRuntime.Core 29 * @stagemodelonly 30 * @atomicservice 31 * @since 12 32 */ 33export default class AtomicServiceOptions extends StartOptions { 34 /** 35 * The options of the flags in this AtomicServiceOptions. 36 * 37 * @type { ?number } 38 * @syscap SystemCapability.Ability.AbilityRuntime.Core 39 * @stagemodelonly 40 * @atomicservice 41 * @since 12 42 */ 43 flags?: number; 44 45 /** 46 * The description of the WantParams object in an AtomicServiceOptions 47 * 48 * @type { ?Record<string, Object> } 49 * @syscap SystemCapability.Ability.AbilityRuntime.Core 50 * @stagemodelonly 51 * @atomicservice 52 * @since 12 53 */ 54 parameters?: Record<string, Object>; 55 56 /** 57 * The completion handler of openAtomicService. 58 * 59 * @type { ?CompletionHandlerForAtomicService } 60 * @syscap SystemCapability.Ability.AbilityRuntime.Core 61 * @stagemodelonly 62 * @atomicservice 63 * @since 20 64 * @arkts 1.1&1.2 65 */ 66 completionHandlerForAtomicService?: CompletionHandlerForAtomicService; 67}