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, 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.
Properties
geometry
@property (nonatomic, assign, unsafe_unretained, readwrite, nullable) |
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.