Interface NavigationInfoChangedListener


  • public interface NavigationInfoChangedListener
    An interface allowing to listen to navigation info changes while navigating on a route.
    • Method Detail

      • onNavigationInfoChanged

        void onNavigationInfoChanged​(Direction nextDirection,
                                     int distanceToNextDirectionInMeters,
                                     PositionOnRoute positionOnRoute)
        The method is called once at least one of the following changes: next direction, distance to it or position on route.
        Parameters:
        nextDirection - The next direction information;
        distanceToNextDirectionInMeters - Distance to the next direction in meters;
        positionOnRoute - Position on route.