• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 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 package ohos;
17 
18 import java.util.ArrayList;
19 import java.util.HashMap;
20 import java.util.List;
21 
22 /**
23  * App Shortcut info.
24  *
25  */
26 public class Shortcut {
27     /**
28      * Indicates the shortcutId of app Shortcut.
29      */
30     public String shortcutId = "";
31 
32     /**
33      * Indicates the label of app Shortcut.
34      */
35     public String label = "";
36 
37     /**
38      * Indicates the icon of app Shortcut.
39      */
40     public String icon = "";
41 
42     /**
43      * Indicates the intents of app Shortcut.
44      */
45     public List<IntentInfo> intents = new ArrayList<IntentInfo>();
46 
47     private HashMap<String, String> labels = new HashMap<>();
48 
getLabels()49     public HashMap<String, String> getLabels() {
50         return labels;
51     }
52 
setLabels(HashMap<String, String> labels)53     public void setLabels(HashMap<String, String> labels) {
54         this.labels = labels;
55     }
56 }
57