diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-10-12 20:17:41 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:45:23 +0300 |
commit | ca29b9e478b433d1a5d1a7a4385410467e97785f (patch) | |
tree | 495139e98cfe42412cff7397884061416b9ac957 /platform/apple_location_service.mm | |
parent | f81ed7bd00ca324c400288d0a2df86151d9989cc (diff) |
refactored Location and Compass observers mechanism.
Diffstat (limited to 'platform/apple_location_service.mm')
-rw-r--r-- | platform/apple_location_service.mm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/apple_location_service.mm b/platform/apple_location_service.mm index f8a2d4b459..d8486aaf07 100644 --- a/platform/apple_location_service.mm +++ b/platform/apple_location_service.mm @@ -41,12 +41,12 @@ public: void OnLocationUpdate(GpsInfo const & info) { - m_observer.OnGpsUpdated(info); + m_observer.OnLocationUpdated(info); } void OnDeniedError() { - m_observer.OnLocationStatusChanged(location::EDisabledByUser); + m_observer.OnLocationError(location::EDenied); } virtual void Start() @@ -59,14 +59,12 @@ public: else { [m_locationManager startUpdatingLocation]; - m_observer.OnLocationStatusChanged(location::EStarted); } } virtual void Stop() { [m_locationManager stopUpdatingLocation]; - m_observer.OnLocationStatusChanged(location::EStopped); } }; |