HERE iOS SDK Developer's Guide

NMADevicePositionSource

Class Summary

class NMADevicePositionSource

Derived from: NSObject, NMAPositionDataSource, <CLLocationManagerDelegate>

A position data source which gets updates from CLLocationManager.

Include: NMAKit.framework/headers/NMADevicePositionSource.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMADevicePositionSource

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] CLLocationManager *  locationManager

The CLLocationManager instance used to generate position updates

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull) init

-(void) setPositioningMethod:( NMADevicePositioningMethod ) method

A convenience method to set the frequency of position updates.

Class Details

A position data source which gets updates from CLLocationManager.

NMADevicePositionSource provides basic usage of CLLocationManager to the NMAPositioningManager. The properties of the CLLocationManager instance may be customized as needed, otherwise the default values are used.

Note:

More advanced usage of CLLocationManager may be achieved by subclassing NMADevicePositionSource. Any of the CLLocationManagerDelegate methods may be freely implemented, except locationManager:didUpdateLocations: and locationManager:didFailWithError:. If either of these methods is implemented, the superclass method should be invoked at some point in the subclass implementation.

Public Property Details

[readable, assign] CLLocationManager * locationManager

The CLLocationManager instance used to generate position updates.

Instance Method Details

-(nonnull) init

Initialize an NMADevicePositionSource instance

-(void) setPositioningMethod:( NMADevicePositioningMethod ) method

A convenience method to set the frequency of position updates.

The device positioning method controls how CLLocationManger generates its updates. Refer to the CLLocationManager API reference for an explanation of the update methods.

Defaults to NMADevicePositioningMethodGPS

See also:

NMADevicePositioningMethod

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.