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)startSimulationWithSettings:
    (nonnull NSArray<MMKSimulationSettings *> *)settings;

Start simulation

- (void)stopSimulation;
Stop simulation

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

Properties

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

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    NSArray<MMKSimulationSettings *> *settings;

@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.


startSimulationWithSettings:

- (void)startSimulationWithSettings:
    (nonnull NSArray<MMKSimulationSettings *> *)settings;

Start simulation.

Parameters

settings

Generate locations with given simulation settings.


stopSimulation

- (void)stopSimulation;

Stop simulation.


polylinePosition

- (nonnull MMKPolylinePosition *)polylinePosition;

The position of the polyline.


Properties

speed

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

Movement speed.

Alert

Now field in settings.


settings

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    NSArray<MMKSimulationSettings *> *settings;


active

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

True if simulator is not suspended.