MMKLocationSimulator

@interface MMKLocationSimulator : MMKLocationManager

Simulates the device location.

Summary

Instance methods

- (void)subscribeForSimulatorEventsWithSimulatorListener:
    (nonnull id<MMKLocationSimulatorListener>)simulatorListener;

Subscribes to simulation events

- (void)unsubscribeFromSimulatorEventsWithSimulatorListener:
    (nonnull id<MMKLocationSimulatorListener>)simulatorListener;

Unsubscribes from simulation events

- (void)startSimulationWithSimulationAccuracy:
    (MMKSimulationAccuracy)simulationAccuracy;

Start simulation

- (void)stopSimulation;
Stop simulation

- (nonnull MMKPolylinePosition *)polylinePosition;
The position of the polyline

- (void)setLocationSpeedProvidingWithProvide:(BOOL)provide;
Fill location::Location::speed

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
    MMKPolyline *geometry;

The polyline describing the location

@property (nonatomic, assign, unsafe_unretained, readwrite) double speed;
Movement speed

@property (nonatomic, readonly, getter=isActive) BOOL active;
True if simulator is not suspended

Instance methods

subscribeForSimulatorEventsWithSimulatorListener:

- (void)subscribeForSimulatorEventsWithSimulatorListener:
    (nonnull id<MMKLocationSimulatorListener>)simulatorListener;

Subscribes to simulation events.

The class does not retain the object in the 'simulatorListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


unsubscribeFromSimulatorEventsWithSimulatorListener:

- (void)unsubscribeFromSimulatorEventsWithSimulatorListener:
    (nonnull id<MMKLocationSimulatorListener>)simulatorListener;

Unsubscribes from simulation events.

The class does not retain the object in the 'simulatorListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


startSimulationWithSimulationAccuracy:

- (void)startSimulationWithSimulationAccuracy:
    (MMKSimulationAccuracy)simulationAccuracy;

Start simulation.

Parameters

simulationAccuracy

Generate locations with given accuracy.


stopSimulation

- (void)stopSimulation;

Stop simulation.


polylinePosition

- (nonnull MMKPolylinePosition *)polylinePosition;

The position of the polyline.


setLocationSpeedProvidingWithProvide:

- (void)setLocationSpeedProvidingWithProvide:(BOOL)provide;

Fill location::Location::speed.


Properties

geometry

@property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
    MMKPolyline *geometry;

The polyline describing the location.

Optional property, can be nil.


speed

@property (nonatomic, assign, unsafe_unretained, readwrite) double speed;

Movement speed.


active

@property (nonatomic, readonly, getter=isActive) BOOL active;

True if simulator is not suspended.