Ejemplo n.º 1
0
        private LocationServiceStatusExt getRealStatus()
        {
            LocationServiceStatus    realStatus = realLocation.status;
            LocationServiceStatusExt stats      = LocationServiceStatusExt.Stopped;

            if (realStatus == LocationServiceStatus.Stopped)
            {
                stats = LocationServiceStatusExt.Stopped;
            }

            if (realStatus == LocationServiceStatus.Initializing)
            {
                stats = LocationServiceStatusExt.Initializing;
            }

            if (realStatus == LocationServiceStatus.Running)
            {
                stats = LocationServiceStatusExt.Running;
            }

            if (realStatus == LocationServiceStatus.Failed)
            {
                stats = LocationServiceStatusExt.Failed;
            }

            return(stats);
        }
Ejemplo n.º 2
0
 public void Stop()
 {
     if (useMockLocation)
     {
         mockedStatus = LocationServiceStatusExt.Stopped;
     }
     else
     {
         realLocation.Stop();
     }
 }
Ejemplo n.º 3
0
 public void Start(float desiredAccuracyInMeters, float updateDistanceInMeters)
 {
     if (useMockLocation)
     {
         mockedStatus = LocationServiceStatusExt.Running;
     }
     else
     {
         realLocation.Start(desiredAccuracyInMeters, updateDistanceInMeters);
     }
 }
Ejemplo n.º 4
0
 public void Start()
 {
     if (useMockLocation)
     {
         mockedStatus = LocationServiceStatusExt.Running;
     }
     else
     {
         realLocation.Start();
     }
 }