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();
}
}