The Favorite class stores a list of Wayppoints over the applications lifetime
More...
Static Public Member Functions | |
| static native ApiError | addFavorite (Waypoint favorite) |
| static native Iterable< Waypoint > | getFavoriteIterator () |
| static native ApiError | insertFavoriteAt (Waypoint favorite, int index) |
| static native ApiError | removeAll () |
| static native ApiError | removeAt (int index) |
| static native ApiError | replaceFavoriteAt (Waypoint favorite, int index) |
The user can add or remove waypoints from this structure at all times. Duplicates are allowed. The favorites are persistently stored in the file Favorites.xml
Adds a copy of a favorite at the begin of the favorite list.
| favorite | waypoint to add |
|
static |
Inserts a copy of a favorite at a given position. If there is already a favorite with this index, the existing favorite is moved to position index + 1.
| favorite | - waypoint to add |
| index | - position in favorite iterator |
|
static |
|
static |
Remove the favorite with the given index.
| index | - position in favorite iterator. |
Inserts a copy of a favorite waypoint at a given index. The existing waypoint at the given index is deleted.
| favorite | - waypoint to insert |
| index | - position in favorite iterator |