internal delegate bool ProximityStateChangedCallback(int fenceId, ProximityState state, ProximityProvider provider, IntPtr userData);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- internal delegate bool GeofenceEventCallback(int placeId, int fenceId, GeofenceError error, GeoFenceEventType eventType, IntPtr userData);
+ internal delegate bool GeofenceEventCallback(int placeId, int fenceId, GeofenceError error, GeofenceEventType eventType, IntPtr userData);
[DllImport(Libraries.Geofence, EntryPoint = "geofence_manager_is_supported")]
internal static extern int IsSupported(out bool supported);
/// <summary>
/// Enumerations for geofence management events.
/// </summary>
- public enum GeoFenceEventType
+ public enum GeofenceEventType
{
/// <summary>
/// Geofence is added.
/// <param name="fenceId">The specified geofence id.</param>
/// <param name="error">The error code for the particular action.</param>
/// <param name="eventType">The result code for the particular place and geofence management.</param>
- internal GeofenceResponseEventArgs(int placeId, int fenceId, GeofenceError error, GeoFenceEventType eventType)
+ internal GeofenceResponseEventArgs(int placeId, int fenceId, GeofenceError error, GeofenceEventType eventType)
{
PlaceId = placeId;
FenceId = fenceId;
/// <summary>
/// The result code for the particular place and geofence management.
/// </summary>
- public GeoFenceEventType EventType
+ public GeofenceEventType EventType
{
get;
}
}
}
- private static readonly Interop.GeofenceManager.GeofenceEventCallback s_geofenceEventCallback = (int placeId, int fenceId, GeofenceError error, GeoFenceEventType eventType, IntPtr data) =>
+ private static readonly Interop.GeofenceManager.GeofenceEventCallback s_geofenceEventCallback = (int placeId, int fenceId, GeofenceError error, GeofenceEventType eventType, IntPtr data) =>
{
GeofenceResponseEventArgs evenArgs = new GeofenceResponseEventArgs(placeId, fenceId, error, eventType);
s_geofenceEventChanged?.Invoke(null, evenArgs);
/// The value of place_id or geofence_id is -1 when the place id or geofence id is not assigned.
/// </remarks>
/// <exception cref="NotSupportedException">Incase of feature Not supported.</exception>
- public event EventHandler<GeofenceResponseEventArgs> GeoFenceEventChanged
+ public event EventHandler<GeofenceResponseEventArgs> GeofenceEventChanged
{
add
{
/// <exception cref="InvalidOperationException">Incase of any System error.</exception>
/// <exception cref="UnauthorizedAccessException">Incase of Privileges are not defined.</exception>
/// <exception cref="NotSupportedException">Incase of Geofence is not supported.</exception>
- public IEnumerable<FenceData> GetGeoFenceDataListByPlaceId(int placeId)
+ public IEnumerable<FenceData> GetGeofenceDataListByPlaceId(int placeId)
{
List<FenceData> fences = new List<FenceData>();
Interop.VirtualPerimeter.ForEachFenceListCallback callback = (int fenceId, IntPtr handle, int index, int count, IntPtr data) =>