예제 #1
0
        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);
            }
        }
예제 #2
0
 public static GeofenceState FromNative(this Native state) => state switch
 {