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 instancetype) 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 instancetype) 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