Class provides a callback to be invoked when RouteSession handle changed/advanced events. More...
#include <com/navigine/idl/objc/NCAsyncRouteListener.h>
Inheritance diagram for <NCAsyncRouteListener>:Instance Methods | |
| (void) | - onRouteChanged:currentPath: |
| Called when new route was built or old route was rebuilt after missing previouse one. | |
| (void) | - onRouteAdvanced:point: |
Called when user has progressed along the route that was built in the method onRouteChanged | |
Class provides a callback to be invoked when RouteSession handle changed/advanced events.
Referenced from AsyncRouteManager RouteSession.
Definition at line 22 of file NCAsyncRouteListener.h.
| - (void) onRouteAdvanced: | (float) | distance | |
| point: | (nonnull NCLocationPoint *) | point |
Called when user has progressed along the route that was built in the method onRouteChanged
| distance | distance from the beginning or the route (unit meters) |
| point | current location point on the route |
Swift code snippet:
Objective C code snippet:
| - (void) onRouteChanged: | (NCRouteStatus) | status | |
| currentPath: | (nullable NCRoutePath *) | currentPath |
Called when new route was built or old route was rebuilt after missing previouse one.
| status | RouteStatus indicating the current router state |
| currentPath | RoutePath from current postion to destination point (null if status is not new_route) |
Swift code snippet:
Objective C code snippet: