Package com.aerisweather.aeris.tiles
Class LoadTileAnimationTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LoadTileAnimationTask.LoadAmpTileCallback
static interface
LoadTileAnimationTask.LoadTileCallback
Interface for handling the callback of the tile loading.static interface
LoadTileAnimationTask.LoadTileProgressBar
Interface to pass to thewithProgress(LoadTileProgressBar)
.
-
Constructor Summary
Constructors Constructor Description LoadTileAnimationTask(AerisAmp aerisAmp, AerisMapOptions options, AerisMapView mapView, LoadTileAnimationTask.LoadAmpTileCallback callback, com.google.android.gms.maps.model.LatLng latLng, int zoom)
LoadTileAnimationTask(AerisTile tile, AerisMapView mapView, LoadTileAnimationTask.LoadTileCallback callback)
Create an instance of the task with the current tile, AerisMapView for latitude/longitude bounds, and a callback listener to pass the loaded tiles to.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Void
doInBackground(Void... params)
protected void
onPostExecute(Void result)
protected void
onPreExecute()
protected void
onProgressUpdate(Integer... values)
void
setFromTime(int timestamp)
Set the start time of the animation, in seconds based on Unix Epoch on January 1st, 1970 at UTCvoid
setToTime(int timestamp)
Set the end (or "to") time of the animation, in seconds based on Unix Epoch on January 1st, 1970 at UTCLoadTileAnimationTask
withProgress(LoadTileAnimationTask.LoadTileProgressBar bar)
-
-
-
Constructor Detail
-
LoadTileAnimationTask
public LoadTileAnimationTask(AerisTile tile, AerisMapView mapView, LoadTileAnimationTask.LoadTileCallback callback)
Create an instance of the task with the current tile, AerisMapView for latitude/longitude bounds, and a callback listener to pass the loaded tiles to.- Parameters:
tile
- tile type to use.mapView
- mapview to get bounds from.callback
- to pass the callback too.
-
LoadTileAnimationTask
public LoadTileAnimationTask(AerisAmp aerisAmp, AerisMapOptions options, AerisMapView mapView, LoadTileAnimationTask.LoadAmpTileCallback callback, com.google.android.gms.maps.model.LatLng latLng, int zoom)
-
-
Method Detail
-
setFromTime
public void setFromTime(int timestamp)
Set the start time of the animation, in seconds based on Unix Epoch on January 1st, 1970 at UTC- Parameters:
timestamp
- int UNIX timestamp
-
setToTime
public void setToTime(int timestamp)
Set the end (or "to") time of the animation, in seconds based on Unix Epoch on January 1st, 1970 at UTC- Parameters:
timestamp
- int UNIX timestamp
-
withProgress
public LoadTileAnimationTask withProgress(LoadTileAnimationTask.LoadTileProgressBar bar)
-
onPreExecute
protected void onPreExecute()
-
onProgressUpdate
protected void onProgressUpdate(Integer... values)
-
-