com.mapbox.mapboxsdk.tileprovider.IMapTileProviderCallback Maven / Gradle / Ivy
package com.mapbox.mapboxsdk.tileprovider;
import android.graphics.drawable.Drawable;
import uk.co.senab.bitmapcache.CacheableBitmapDrawable;
public interface IMapTileProviderCallback {
/**
* The map tile request has completed.
*
* @param aState a state object
* @param aDrawable a drawable
*/
void mapTileRequestCompleted(MapTileRequestState aState, final Drawable aDrawable);
/**
* The map tile request has failed.
*
* @param aState a state object
*/
void mapTileRequestFailed(MapTileRequestState aState);
/**
* The map tile request has produced an expired tile.
*
* @param aState a state object
*/
void mapTileRequestExpiredTile(MapTileRequestState aState,
final CacheableBitmapDrawable aDrawable);
/**
* Returns true if the network connection should be used, false if not.
*
* @return true if data connection should be used, false otherwise
*/
public boolean useDataConnection();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy