Package com.aerisweather.aeris.tiles
Class LoadTileAnimationTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLoadTileAnimationTask.LoadAmpTileCallbackstatic interfaceLoadTileAnimationTask.LoadTileCallbackInterface for handling the callback of the tile loading.static interfaceLoadTileAnimationTask.LoadTileProgressBarInterface 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 VoiddoInBackground(Void... params)protected voidonPostExecute(Void result)protected voidonPreExecute()protected voidonProgressUpdate(Integer... values)voidsetFromTime(int timestamp)Set the start time of the animation, in seconds based on Unix Epoch on January 1st, 1970 at UTCvoidsetToTime(int timestamp)Set the end (or "to") time of the animation, in seconds based on Unix Epoch on January 1st, 1970 at UTCLoadTileAnimationTaskwithProgress(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)
-
-