2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.Collections.Generic;
20 namespace Tizen.Applications
23 /// This class is a parameter of the GetInstalledApplicationsAsync method.
25 /// <since_tizen> 3 </since_tizen>
26 public class ApplicationInfoFilter
29 /// A constructor of ApplicationInfoFilter class.
31 /// <since_tizen> 3 </since_tizen>
32 public ApplicationInfoFilter()
34 Filter = new Dictionary<string, string>();
38 /// This class is a possible value to use in the InstalledApplicationFilter.
40 /// <since_tizen> 5 </since_tizen>
41 #pragma warning disable CA1034
42 public static class Values
43 #pragma warning restore CA1034
46 /// A pre-defined value string for InstalledStorage key. This value indicates that the application is installed at internal storage.
48 /// <since_tizen> 5 </since_tizen>
49 public const string InstalledInternal = "installed_internal";
52 /// A pre-defined value string for InstalledStorage key. This value indicates that the application is installed at external storage.
54 /// <since_tizen> 5 </since_tizen>
55 public const string InstalledExternal = "installed_external";
58 /// A pre-defined value string for InstalledStorage key. This value indicates that the application is installed at extended storage.
60 /// <since_tizen> 5 </since_tizen>
61 public const string InstalledExtended = "installed_extended";
65 /// This class is a possible key to use in the InstalledApplicationFilter.
67 /// <since_tizen> 3 </since_tizen>
68 #pragma warning disable CA1034
69 public static class Keys
70 #pragma warning restore CA1034
73 /// A key to filter by application id.
75 /// <since_tizen> 3 </since_tizen>
76 public const string Id = "PACKAGE_INFO_PROP_APP_ID";
78 /// A key to filter by application type.
80 /// <since_tizen> 3 </since_tizen>
81 public const string Type = "PACKAGE_INFO_PROP_APP_TYPE";
83 /// A key to filter by application category.
85 /// <since_tizen> 3 </since_tizen>
86 public const string Category = "PACKAGE_INFO_PROP_APP_CATEGORY";
88 /// A key to filter by installed storage.
90 /// <since_tizen> 5 </since_tizen>
91 public const string InstalledStorage = "PACKAGE_INFO_PROP_APP_INSTALLED_STORAGE";
93 /// A key to filter by nodisplay attribute.
95 /// <since_tizen> 3 </since_tizen>
96 public const string NoDisplay = "PACKAGE_INFO_PROP_APP_NODISPLAY";
98 /// A key to filter by taskmanage attribute.
100 /// <since_tizen> 3 </since_tizen>
101 public const string TaskManage = "PACKAGE_INFO_PROP_APP_TASKMANAGE";
105 /// A dictionary to store keys and values of filter.
107 /// <since_tizen> 3 </since_tizen>
108 public IDictionary<string, string> Filter