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.
19 namespace Tizen.Location.Geofence
22 /// Event arguments passed when Event is triggered to notify proximity state change.
24 public class ProximityStateEventArgs : EventArgs
27 /// Internal constructor.
29 /// <param name="id">The geofence id.</param>
30 /// <param name="state">The proximity state.</param>
31 /// <param name="provider">The proximity provider.</param>
32 internal ProximityStateEventArgs(int id, ProximityState state, ProximityProvider provider)
48 /// The proximity state.
50 public ProximityState State
56 /// The proximity provider.
58 public ProximityProvider Provider
65 /// Event arguments passed when Event is triggered to notify Geofence state change.
67 public class GeofenceStateEventArgs : EventArgs
70 /// Internal constructor.
72 /// <param name="fenceId">The specified geofence id.</param>
73 /// <param name="state">The geofence state.</param>
74 internal GeofenceStateEventArgs(int fenceId, GeofenceState state)
81 /// The specified geofence id.
89 /// The geofence state.
91 public GeofenceState State
98 /// Event arguments passed when Event occurs in geofence and place such as add, update, etc..
100 public class GeofenceResponseEventArgs : EventArgs
103 /// Internal constructor.
105 /// <param name="placeId">The place id.</param>
106 /// <param name="fenceId">The specified geofence id.</param>
107 /// <param name="error">The error code for the particular action.</param>
108 /// <param name="eventType">The result code for the particular place and geofence management.</param>
109 internal GeofenceResponseEventArgs(int placeId, int fenceId, GeofenceError error, GeofenceEventType eventType)
114 EventType = eventType;
126 /// The specified geofence id.
134 /// The error code for the particular action.
136 public GeofenceError ErrorCode
142 /// The result code for the particular place and geofence management.
144 public GeofenceEventType EventType