forked from upstream-mirrors/OpenTracks
22 lines
493 B
Java
22 lines
493 B
Java
package de.dennisguse.opentracks.content;
|
|
|
|
import android.database.Cursor;
|
|
import android.location.Location;
|
|
|
|
import java.util.Iterator;
|
|
|
|
/**
|
|
* A lightweight wrapper around the original {@link Cursor} with a method to clean up.
|
|
*/
|
|
public interface LocationIterator extends Iterator<Location>, AutoCloseable {
|
|
|
|
/**
|
|
* Gets the most recently retrieved track point id by {@link #next()}.
|
|
*/
|
|
long getLocationId();
|
|
|
|
/**
|
|
* Closes the iterator.
|
|
*/
|
|
void close();
|
|
} |