Navigator.ArrivalListener

  • Navigator.ArrivalListener provides methods to track driver arrival at waypoints during navigation.

  • The onArrival method is called when the driver reaches a waypoint specified using Navigator.setDestination(Waypoint).

  • All notifications from this listener occur on the UI thread, ensuring smooth updates to the user interface.

public static interface Navigator.ArrivalListener

Defines signatures for methods that are called when the driver arrives at a waypoint. If more than one destination is set, this is invoked multiple times——once for each destination.

All notifications will occur on the UI thread.

Public Method Summary

abstract void
onArrival(ArrivalEvent event)
Called when the driver has arrived at a Waypoint set by setDestination APIs like Navigator.setDestination(Waypoint) or Navigator.setDestinations(List).

Public Methods

public abstract void onArrival (ArrivalEvent event)

Called when the driver has arrived at a Waypoint set by setDestination APIs like Navigator.setDestination(Waypoint) or Navigator.setDestinations(List).

Parameters
event an event containing the waypoint at which the driver has arrived