Loading...
Searching...
No Matches
<NCAsyncRouteListener> Protocol Reference

Class provides a callback to be invoked when RouteSession handle changed/advanced events. More...

#include <com/navigine/idl/objc/NCAsyncRouteListener.h>

Inherits <NSObject>.

Instance Methods

(void) - onRouteChanged:
 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
 

Detailed Description

Class provides a callback to be invoked when RouteSession handle changed/advanced events.

Referenced from AsyncRouteManager RouteSession.

Note
The callback is invoked in the UI thread.

Definition at line 21 of file NCAsyncRouteListener.h.

Method Documentation

◆ onRouteAdvanced:point:

- (void) onRouteAdvanced: (float) distance
point: (nonnull NCLocationPoint *) point 

Called when user has progressed along the route that was built in the method onRouteChanged

Parameters
distancedistance from the beginning or the route (unit meters)
pointcurrent location point on the route

◆ onRouteChanged:

- (void) onRouteChanged: (nullable NCRoutePath *) currentPath

Called when new route was built or old route was rebuilt after missing previouse one.

Parameters
currentPathRoutePath from current postion to destination point

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