AI-generated Key Takeaways
-
ArrivalEventis an immutable event triggered when reaching a destination, providing information about the arrival. -
It includes details about the arrival waypoint and whether it's the final destination of the journey.
-
Developers can access the arrival waypoint and check if it's the final destination using
getWaypoint()andisFinalDestination()methods, respectively. -
This event is essential for handling navigation logic and providing user feedback upon arrival at a location.
An immutable event fired upon arrival at a destination.
Public Constructor Summary
|
ArrivalEvent(Waypoint waypoint, boolean isFinalDestination)
|
Public Method Summary
| Waypoint |
getWaypoint()
The arrival
Waypoint. |
| boolean |
isFinalDestination()
Returns whether the arrival waypoint is the final destination in the journey.
|
Inherited Method Summary
Public Constructors
public ArrivalEvent (Waypoint waypoint, boolean isFinalDestination)
Parameters
| waypoint | |
|---|---|
| isFinalDestination |
Public Methods
public Waypoint getWaypoint ()
The arrival Waypoint. This will be identical to the waypoint set using Navigator.setDestination(Waypoint).
public boolean isFinalDestination ()
Returns whether the arrival waypoint is the final destination in the journey.