The History class stores all destinations of past and present navigations over application lifetime
More...
The MapTrip SDK stores a history of the latest destinations which have been added by the application by using Navigation.startNavigation().
The Waypoint history can be modified e.g. added, deleted and traversed The History is persistently stored in the file History.xml
◆ addHistoryEntry()
Adds a copy of the waypoint at the front of the history list. If a waypoint with the same attributes already exists in the history, it is deleted
- Parameters
-
- Returns
- Errorcode
◆ getHistoryIterator()
| static Iterable< Waypoint > getHistoryIterator |
( |
| ) |
|
|
static |
Retrieve the waypoints from the history.
- Returns
- The iterator over contained waypoints.
◆ removeAll()
Remove all waypoints from history.
- Returns
- Errorcode
◆ removeAt()
| static ApiError removeAt |
( |
final int |
index | ) |
|
|
static |
Remove waypoint from history at specific position.
- Parameters
-
- Returns
- Errorcode
The documentation for this class was generated from the following file: