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