docs: ITileDataSink
This commit is contained in:
parent
3297998a42
commit
e1feb4e5b7
@ -20,17 +20,25 @@ import org.oscim.backend.canvas.Bitmap;
|
||||
import org.oscim.core.MapElement;
|
||||
|
||||
/**
|
||||
* MapDatabase callback (implemented by MapTileLoader)
|
||||
* .
|
||||
* NOTE: MapElement passed belong to the caller! i.e. dont hold
|
||||
* references to any of its data after callback function returns.
|
||||
* ITileDataSink callbacks (implemented by MapTileLoader)
|
||||
*/
|
||||
public interface ITileDataSink {
|
||||
|
||||
/**
|
||||
* Pass read MapElement data to loader.
|
||||
* <p>
|
||||
* NOTE: MapElement passed belong to the caller! i.e. dont hold references
|
||||
* to any of its data after callback function returns.
|
||||
*/
|
||||
void process(MapElement element);
|
||||
|
||||
/**
|
||||
* Pass read Bitmap data to loader.
|
||||
*/
|
||||
void setTileImage(Bitmap bitmap);
|
||||
|
||||
/**
|
||||
* Notify loader that tile loading is completed.
|
||||
*/
|
||||
void completed(QueryResult result);
|
||||
|
||||
public static enum QueryResult {
|
||||
|
Loading…
x
Reference in New Issue
Block a user