public interface TileCallback

Asynchronous result callback for TileSource.fetchTile. Implementations are invoked on the Codename One event dispatch thread.

Methods

public abstract void tileLoaded(int z, int x, int y, byte[] data)Delivers the decompressed tile payload (MVT protobuf or encoded image bytes depending on the source).
public abstract void tileFailed(int z, int x, int y)Reports that the tile could not be retrieved.

Method details

tileLoaded

public abstract void tileLoaded(int z, int x, int y, byte[] data)
Delivers the decompressed tile payload (MVT protobuf or encoded image bytes depending on the source).

tileFailed

public abstract void tileFailed(int z, int x, int y)
Reports that the tile could not be retrieved.