HERE Android SDK Developer's Guide

LaneInformationListener

The class LaneInformationListener is a member of com.here.android.mpa.guidance.NavigationManager.

Class Summary

public static abstract class NavigationManager.LaneInformationListener

extends java.lang.Object

LaneInformationListener provides callback of LaneInformation related events from NavigationManager .

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in LaneInformationListener
Constructors

LaneInformationListener ()

Method Summary

Table 2. Methods in LaneInformationListener
Methods

public void onLaneInformation (java.util.List <LaneInformation> lanes, RoadElement road)

Called when new information about lanes is available.

Class Details

LaneInformationListener provides callback of LaneInformation related events from NavigationManager . Used to retrieve information about the lane configuration while navigating.

No callback will be triggered if the HERE license key is invalid.

Constructor Details

LaneInformationListener ()

Method Details

public void onLaneInformation (java.util.List <LaneInformation> lanes, RoadElement road)

Called when new information about lanes is available. This method is called whenever the current available lane information changes. No available lane information is indicated by an empty List (e.g. lane information should stop being displayed).

The lanes are ordered from left (index = 0) to right (index = lanes.size( ) - 1).

Parameters:

  • lanes

    A List of LaneInformation objects. An empty List indicates that no lane information is available and lane information should stop being shown. The lanes are ordered from left (index = 0) to right (index = lanes.size( ) - 1).

  • road

    The RoadElement that the LaneInformation is associated with. null if not available or if lanes is empty.