Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Location.Geofence / Tizen.Location.Geofence / GeofenceEnum.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 namespace Tizen.Location.Geofence
18 {
19     /// <summary>
20     /// Enumeration for geofence type.
21     /// </summary>
22     /// <since_tizen>3</since_tizen>
23     public enum FenceType
24     {
25         /// <summary>
26         /// Geofence is specified by geospatial coordinate.
27         /// </summary>
28         /// <since_tizen>3</since_tizen>
29         GeoPoint = 1,
30
31         /// <summary>
32         /// Geofence is specified by Wi-Fi access point.
33         /// </summary>
34         /// <since_tizen>3</since_tizen>
35         Wifi,
36
37         /// <summary>
38         /// Geofence is specified by Bluetooth device.
39         /// </summary>
40         /// <since_tizen>3</since_tizen>
41         Bluetooth
42     };
43
44     /// <summary>
45     /// Enumerations for the state of geofence.
46     /// </summary>
47     /// <since_tizen>3</since_tizen>
48     public enum GeofenceState
49     {
50         /// <summary>
51         /// Uncertain state of geofence.
52         /// </summary>
53         /// <since_tizen>3</since_tizen>
54         Uncertain = 0,
55
56         /// <summary>
57         /// Geofence In state.
58         /// </summary>
59         /// <since_tizen>3</since_tizen>
60         In,
61
62         /// <summary>
63         /// Geofence Out state.
64         /// </summary>
65         /// <since_tizen>3</since_tizen>
66         Out
67     };
68
69     /// <summary>
70     /// Enumerations for geofence management events.
71     /// </summary>
72     /// <since_tizen>3</since_tizen>
73     public enum GeofenceEventType
74     {
75         /// <summary>
76         /// Geofence is added.
77         /// </summary>
78         /// <since_tizen>3</since_tizen>
79         FenceAdded = 0,
80
81         /// <summary>
82         /// Geofence is removed.
83         /// </summary>
84         /// <since_tizen>3</since_tizen>
85         FenceRemoved,
86
87         /// <summary>
88         /// Geofencing is started.
89         /// </summary>
90         /// <since_tizen>3</since_tizen>
91         FenceStarted,
92
93         /// <summary>
94         /// Geofencing is stopped.
95         /// </summary>
96         /// <since_tizen>3</since_tizen>
97         FenceStopped,
98
99         /// <summary>
100         /// Place is added.
101         /// </summary>
102         /// <since_tizen>3</since_tizen>
103         PlaceAdded = 0x10,
104
105         /// <summary>
106         /// Place is removed.
107         /// </summary>
108         /// <since_tizen>3</since_tizen>
109         PlaceRemoved,
110
111         /// <summary>
112         /// Place is updated.
113         /// </summary>
114         /// <since_tizen>3</since_tizen>
115         PlaceUpdated,
116
117         /// <summary>
118         /// Setting for geofencing is enabled.
119         /// </summary>
120         /// <since_tizen>3</since_tizen>
121         SettingEnabled = 0x20,
122
123         /// <summary>
124         /// Setting for geofencing is disabled.
125         /// </summary>
126         /// <since_tizen>3</since_tizen>
127         SettingDisabled
128     };
129
130     /// <summary>
131     /// Enumeration for the provider of proximity.
132     /// </summary>
133     /// <since_tizen>3</since_tizen>
134     public enum ProximityProvider
135     {
136         /// <summary>
137         /// Proximity is specified by geospatial coordinate.
138         /// </summary>
139         /// <since_tizen>3</since_tizen>
140         Location = 0,
141
142         /// <summary>
143         /// Proximity is specified by Wi-Fi access point.
144         /// </summary>
145         /// <since_tizen>3</since_tizen>
146         Wifi,
147
148         /// <summary>
149         /// Proximity is specified by Bluetooth device.
150         /// </summary>
151         /// <since_tizen>3</since_tizen>
152         Bluetooth,
153
154         /// <summary>
155         /// Proximity is specified by Bluetooth low energy device.
156         /// </summary>
157         /// <since_tizen>3</since_tizen>
158         BLE,
159
160         /// <summary>
161         /// Proximity is specified by Sensor.
162         /// </summary>
163         /// <since_tizen>3</since_tizen>
164         Sensor
165     }
166
167     /// <summary>
168     /// Enumeration for the state of proximity.
169     /// </summary>
170     /// <since_tizen>3</since_tizen>
171     public enum ProximityState
172     {
173         /// <summary>
174         /// Uncertain state of proximity.
175         /// </summary>
176         /// <since_tizen>3</since_tizen>
177         Uncertain = 0,
178
179         /// <summary>
180         /// Far state of proximity.
181         /// </summary>
182         /// <since_tizen>3</since_tizen>
183         Far,
184
185         /// <summary>
186         /// Far state of proximity.
187         /// </summary>
188         /// <since_tizen>3</since_tizen>
189         Near,
190
191         /// <summary>
192         /// Immediate state of proximity.
193         /// </summary>
194         /// <since_tizen>3</since_tizen>
195         Immediate
196     }
197 }