Cirrious.MvvmCross.Plugins.Location.WindowsCommon.MvxWCommonGeoLocationWatcher.OnStatusChanged C# (CSharp) Method

OnStatusChanged() private method

private OnStatusChanged ( Geolocator geolocator, StatusChangedEventArgs args ) : void
geolocator Windows.Devices.Geolocation.Geolocator
args Windows.Devices.Geolocation.StatusChangedEventArgs
return void
        private void OnStatusChanged(Geolocator geolocator, StatusChangedEventArgs args)
        {
            switch (args.Status)
            {
                case PositionStatus.Ready:
                    break;
                case PositionStatus.Initializing:
                    break;
                case PositionStatus.NoData:
                    // TODO - trace could be useful here?
                    SendError(MvxLocationErrorCode.PositionUnavailable);
                    break;
                case PositionStatus.Disabled:
                    // TODO - trace could be useful here?
                    SendError(MvxLocationErrorCode.ServiceUnavailable);
                    break;
                case PositionStatus.NotInitialized:
                    // TODO - trace could be useful here?
                    SendError(MvxLocationErrorCode.ServiceUnavailable);
                    break;
                case PositionStatus.NotAvailable:
                    // TODO - trace could be useful here?
                    SendError(MvxLocationErrorCode.ServiceUnavailable);
                    break;
                default:
                    throw new ArgumentOutOfRangeException();
            }
        }