Interface IMultilevelTiledRasterDataRetriever
-
Method Summary
Modifier and TypeMethodDescriptionvoid
retrieveTileData
(MultilevelTileCoordinate tileCoordinate, CancellationToken cancellationToken, IMultilevelTiledRasterDataRetrieverCallback callback) Retrieves the raster tile data for a give tile coordinate.
-
Method Details
-
retrieveTileData
void retrieveTileData(@NotNull MultilevelTileCoordinate tileCoordinate, @NotNull CancellationToken cancellationToken, @NotNull IMultilevelTiledRasterDataRetrieverCallback callback) Retrieves the raster tile data for a give tile coordinate.Call one of the methods on the
callback
.When the data is retrieved successfully you can call either
onDataAvailable
oronImageAvailable
depending on whether you provide the 'raw' tile data or decoded already as an image.When there is no tile data available for a tile coordinate call the method
onDataNotAvailable
.When an error occurred while retrieving the raster tile data call the method
onError
.When the request has been canceled call the method
onCanceled
. Note that while handling the tile data retrieval you need to check within your implementation whether the cancellation token has changed its value totrue
using the methodisCanceled
.When none of the callback methods is called the data cannot be visualized.
This function must be thread-safe.
- Parameters:
tileCoordinate
- the tile coordinate.cancellationToken
- a cancellation token.callback
- the callback on which to invoke methods depending on success, unavailable data, or errors.- See Also:
-