Walks a polyline at a constant speed for demos and guidance QA. More...
#include <com/navigine/idl/objc/NCRouteSimulator.h>
Inherits NSObject.
Instance Methods | |
| (BOOL) | - setGeometry: |
| Geometry in walk order. A later polyline may be on another floor. | |
| (void) | - setSpeed: |
| Walking speed in meters per second. Default is 1.4. Zero pauses motion. | |
| (float) | - speed |
| Current speed in meters per second. | |
| (BOOL) | - start |
| Starts from the beginning, or continues when already active. | |
| (void) | - stop |
Stops and rewinds to the start. Does not emit onFinished. | |
| (BOOL) | - active |
| True while a walk is in progress. | |
| (nullable NCRouteSimulatorSample *) | - sample |
| Latest sample, or null before the first tick. | |
| (void) | - addListener: |
| (void) | - removeListener: |
Properties | |
| BOOL | valid |
Walks a polyline at a constant speed for demos and guidance QA.
Distinct from MeasurementManager signal generators. Does not publish a navigation position and does not move the user-location layer. Hosts apply sample to an icon or other preview.
Created with NavigineSdk getRouteSimulator.
Definition at line 26 of file NCRouteSimulator.h.
| - (BOOL) active |
True while a walk is in progress.
| - (void) addListener: | (nullable id< NCRouteSimulatorListener >) | listener |
| - (void) removeListener: | (nullable id< NCRouteSimulatorListener >) | listener |
| - (nullable NCRouteSimulatorSample *) sample |
| - (BOOL) setGeometry: | (nonnull NSArray< NCLocationPolyline * > *) | polylines |
Geometry in walk order. A later polyline may be on another floor.
Swift code snippet:
Objective C code snippet:
| - (void) setSpeed: | (float) | metersPerSecond |
Walking speed in meters per second. Default is 1.4. Zero pauses motion.
Swift code snippet:
Objective C code snippet:
| - (float) speed |
Current speed in meters per second.
| - (BOOL) start |
Starts from the beginning, or continues when already active.
Swift code snippet:
Objective C code snippet:
| - (void) stop |
Stops and rewinds to the start. Does not emit onFinished.
|
readnonatomicassign |
Tells if this object is valid or not. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now.
Definition at line 118 of file NCRouteSimulator.h.