SYRoutePositionSimulator Class Reference

SYRoutePositionSimulator is for demonstration purposes. It simulates position along the route with the average speed of road element. It replaces GPS source of location and it will affect all map view instances. More...

#import <SYRouting.h>

Inheritance diagram for SYRoutePositionSimulator:
Collaboration diagram for SYRoutePositionSimulator:

Instance Methods

((unavailable("Use createWithRoute:completion: method instead.") - __attribute__
 
- Instance Methods inherited from SYSimulatorPositionSource
(void) - setRepeat:completion:
 Asynchronously set parameter, if simulation should repeat after reaching the destination. More...
 
(void) - setSpeedMultiplier:completion:
 Asynchronously set speed multiplier. More...
 
(void) - pause
 Pause simulation. More...
 
(void) - seekTo:completion:
 Seek the simulation up to some percentage value. More...
 
- Instance Methods inherited from SYPositionDataSource
(void) - start
 Notifies the data source that position updates should start. More...
 
(void) - stop
 Notifies the data source that position updates should stop. More...
 

Class Methods

(void) + createWithRoute:completion:
 Asynchronously create instance. More...
 
((unavailable("Use createWithRoute:completion: method instead.") + __attribute__
 

Additional Inherited Members

- Properties inherited from SYSimulatorPositionSource
BOOL repeat
 Repeat simulation after reaching the destination. More...
 
CGFloat speedMultiplier
 Speed multiplier for simulator. More...
 
BOOL isPaused
 Represents if the simulation is paused. More...
 
- Properties inherited from SYPositionDataSource
BOOL backgroundUpdatesEnabled
 Indicates whether or not position updates should continue when the app is sent to the background. Default value is NO; The position data source in use must support background updates in order to use positioning-dependent features such as navigation in the background. More...
 

Detailed Description

SYRoutePositionSimulator is for demonstration purposes. It simulates position along the route with the average speed of road element. It replaces GPS source of location and it will affect all map view instances.

Method Documentation

◆ createWithRoute:completion:

+ (void) createWithRoute: (nonnull SYRoute *)  route
completion: (nonnull SYRoutePositionSimulatorBlock)  completion 

Asynchronously create instance.

Parameters
routeSYRoute object.
completionCompletion block which is called when instance is created.

◆ __attribute__ [1/2]

- ((unavailable("Use) createWithRoute:

Implements SYPositionDataSource.

◆ __attribute__ [2/2]

+ ((unavailable("Use) createWithRoute:

Implements SYPositionDataSource.


The documentation for this class was generated from the following file: