GeofenceState FromNative(Windows.Devices.Geolocation.Geofencing.GeofenceState state)
        {
            switch (state)
            {
            case Windows.Devices.Geolocation.Geofencing.GeofenceState.Entered:
                return(GeofenceState.Entered);

            case Windows.Devices.Geolocation.Geofencing.GeofenceState.Exited:
                return(GeofenceState.Exited);

            default:
                return(GeofenceState.Unknown);
            }
        }
Exemple #2
0
 public static GeofenceState FromNative(this Native state) => state switch
 {