MMKLocationManager
@interface MMKLocationManager : NSObject |
Handles location updates and changes.
Summary
Instance methods
-Â (void)subscribeForLocationUpdatesWithSubscriptionSettings: |
-Â (void)requestSingleUpdateWithLocationListener: |
-Â (void)unsubscribeWithLocationListener: |
-Â (void)suspend; |
-Â (void)resume; |
Instance methods
subscribeForLocationUpdatesWithSubscriptionSettings:locationListener:
-Â (void)subscribeForLocationUpdatesWithSubscriptionSettings: |
Subscribe for location update events. If the listener was already subscribed to updates from the LocationManager, subscription settings will be updated.
The class does not retain the object in the 'locationListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
Parameters |
|
subscriptionSettings |
Subscription settings. |
locationListener |
Location update listener. |
requestSingleUpdateWithLocationListener:
-Â (void)requestSingleUpdateWithLocationListener: |
Subscribe to a single location update. If the listener was already subscribed to location updates, the previous subscription will be removed.
The class does not retain the object in the 'locationListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
Parameters |
|
locationListener |
Location update listener. |
unsubscribeWithLocationListener:
-Â (void)unsubscribeWithLocationListener: |
Unsubscribe from location update events. Can be called for either MMKLocationManager::subscribeForLocationUpdatesWithSubscriptionSettings:locationListener: or MMKLocationManager::requestSingleUpdateWithLocationListener:. For MMKLocationManager::requestSingleUpdateWithLocationListener:, if an event was already received, MMKLocationManager::unsubscribeWithLocationListener: does not have any effect. If the listener is already unsubscribed, the method call is ignored.
The class does not retain the object in the 'locationListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
Parameters |
|
locationListener |
Listener passed to either MMKLocationManager::subscribeForLocationUpdatesWithSubscriptionSettings:locationListener: or MMKLocationManager::requestSingleUpdateWithLocationListener:. |
suspend
-Â (void)suspend; |
Stops updates for all subscriptions until resume() is called.
resume
-Â (void)resume; |
Resumes updates stopped by a suspend() call.