DataSourceConfigurationObject
Objective-C
@interface DataSourceConfigurationObject : NSObject
Swift
class DataSourceConfigurationObject : NSObject
This class encapsulates position preferences object.
-
Initializes and returns a newly allocated object using the model data.
Declaration
Objective-C
- (nonnull instancetype)initWithModelData:(nonnull void *)data;
-
Returns the model data.
Declaration
Objective-C
- (nonnull void *)getModelData;
-
Sets the allow background location updates flag.
Declaration
Objective-C
- (void)setAllowBackgroundLocationUpdates:(BOOL)state;
Swift
func setAllowBackgroundLocationUpdates(_ state: Bool)
Parameters
state
A Boolean value indicating whether the Sdk should receive location updates when client app is in background. Setting the value to YES but omitting the UIBackgroundModes key and location value in your app’s Info.plist file is a programmer error. @discussion Application must have access to user location before calling this API.
-
Sets the position accuracy flag.
Declaration
Objective-C
- (void)setPositionAccuracy:(PositionAccuracyType)accuracy;
Swift
func setPositionAccuracy(_ accuracy: PositionAccuracyType)
-
Sets the position activity flag.
Declaration
Objective-C
- (void)setPositionActivity:(PositionActivityType)activity;
Swift
func setPositionActivity(_ activity: PositionActivityType)
-
Sets the pauses location updates automatically flag.
Declaration
Objective-C
- (void)setPausesLocationUpdatesAutomatically:(BOOL)state;
Swift
func setPausesLocationUpdatesAutomatically(_ state: Bool)
-
Sets the position distance filter flag.
Declaration
Objective-C
- (void)setPositionDistanceFilter:(float)distanceFilter;
Swift
func setPositionDistanceFilter(_ distanceFilter: Float)
-
Sets the improved position update frequency. @details Default value is 30 Hz. Bigger frequency provides smoother positions but increases CPU / battery usage.
Declaration
Objective-C
- (void)setImprovedPositionUpdateFrequency:(NSInteger)frequency;
Swift
func setImprovedPositionUpdateFrequency(_ frequency: Int)
-
Sets the improved position default transport mode.
Declaration
Objective-C
- (void)setImprovedPositionDefTransportMode:(RouteTransportMode)mode;
Swift
func setImprovedPositionDefTransportMode(_ mode: RouteTransportMode)
-
Sets the threshold for snapping to map link data ( meters integer ) - car / truck transport mode. @details default 50 meters. If position is close to a map link at a smaller distance than this value, the improved position will automatically snap to the map link. 0 means never snap to map data.
Declaration
Objective-C
- (void)setImprovedPositionSnapToMapLinkThresholdVehicle:(NSInteger)threshold;
Swift
func setImprovedPositionSnapToMapLinkThresholdVehicle(_ threshold: Int)
-
Sets the threshold for snapping to map link data ( meters integer ) - bike transport mode. @details default 50 meters if position is close to a map link at a smaller distance than this value, the improved position will automatically snap to the map link 0 means never snap to map data.
Declaration
Objective-C
- (void)setImprovedPositionSnapToMapLinkThresholdBike:(NSInteger)threshold;
Swift
func setImprovedPositionSnapToMapLinkThresholdBike(_ threshold: Int)
-
Sets the preffered value for snapping the arrow to the route (instead of the most probable link). Default is false. @details If set to true, the arrow will always snap to the route (if the route exits). If set to false, it will snap to the most probable map link, which is not necessarily the route link. This is only for display; does not affect the matching and guidance algorithm
Declaration
Objective-C
- (void)setImprovedPositionPreferRouteSnap:(BOOL)state;
Swift
func setImprovedPositionPreferRouteSnap(_ state: Bool)