コード例 #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
ファイル: PlatformExtensions.cs プロジェクト: shinyorg/shiny
 public static GeofenceState FromNative(this Native state) => state switch
 {