MMKLocationSimulator
@interface MMKLocationSimulator : MMKLocationManager |
Simulates the device location.
Summary
Instance methods
-Â (void)subscribeForSimulatorEventsWithSimulatorListener: |
-Â (void)unsubscribeFromSimulatorEventsWithSimulatorListener: |
-Â (void)startSimulationWithSimulationAccuracy: |
-Â (void)stopSimulation; |
- (nonnull MMKPolylinePosition *)polylinePosition; |
-Â (void)setLocationSpeedProvidingWithProvide:(BOOL)provide; |
Properties
@property (nonatomic, assign, unsafe_unretained, readwrite, nullable) |
@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.
startSimulationWithSimulationAccuracy:
-Â (void)startSimulationWithSimulationAccuracy: |
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.
Alert
Use simulatorSettings.locationSettings.speed.enabled.
Properties
geometry
@property (nonatomic, assign, unsafe_unretained, readwrite, nullable) |
The polyline describing the location.
Optional property, can be nil.
Alert
Now field in SimulationSettings settings.
speed
@property (nonatomic, assign, unsafe_unretained, readwrite) double speed; |
Movement speed.
Alert
Now field in settings.
settings
@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull) |
Undocumented
active
@property (nonatomic, readonly, getter=isActive) BOOL active; |
True if simulator is not suspended.