1/**
2 * Copyright (c) 2024-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
16export interface MenuConfig {
17  businessId: string,
18
19  //   card|list(card代表卡片方式接入,list代表列表方式接入)
20  displayedMode: string;
21
22  //   卡片式菜单显示时的图标
23  iconResource: string;
24
25  //   入口菜单显示的主标题字串的资源名
26  mainTitleResource: string;
27
28  //   入口菜单显示的副标题字串的资源名
29  subTitleResource: string;
30
31  /**
32   * uri路径,该ability继承自DataShareExtensionAbility,接入方可覆写其query函数,通过query函数返回的结果集告知安全隐私中心,是否需要展示该菜单
33   * query结果集为KEY_VALUE形式
34   * key: SHOW_RESULT
35   * Value:
36   * 0x55,展示
37   * 0xaa,不展示
38   */
39  showControlAbilityUri: string;
40  displayUserConfig: string;
41
42  /**
43   * 0: 表示被拉起的ability为UiAbility
44   * 1: 表示被拉起的ability为UiextensionAbility
45   */
46  dstAbilityMode: number;
47
48  /**
49   * 跳转的目的ability
50   * dstAbilityMode为0时,该ability为UiAbility
51   * dstAbilityMode为1时,该ability需继承自UIExtensionAbility,接入方在此ability中加载自身页面
52   */
53  dstAbilityName: string;
54
55  //   跳转的目的bundle名
56  dstBundleName: string;
57
58  //   应用的包名
59  bundleName: string;
60}