MMKLocationSimulator
|
@interface MMKLocationSimulator : MMKLocationManager |
Simulates the device location.
Summary
Instance methods
|
-Â (void)subscribeForSimulatorEventsWithSimulatorListener: |
|
-Â (void)unsubscribeFromSimulatorEventsWithSimulatorListener: |
|
-Â (void)startSimulationWithSettings: |
|
-Â (void)stopSimulation; |
|
- (nonnull MMKPolylinePosition *)polylinePosition; |
Properties
|
@property (nonatomic, assign, unsafe_unretained, readwrite) double speed; |
|
@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull) |
|
@property (nonatomic, readonly, getter=isActive) BOOL active; |
Instance methods
subscribeForSimulatorEventsWithSimulatorListener:
|
-Â (void)subscribeForSimulatorEventsWithSimulatorListener: |
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: |
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: |
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) |
active
|
@property (nonatomic, readonly, getter=isActive) BOOL active; |
True if simulator is not suspended.