class EvaluateCarparkDistance : AsyncTask<Void, Void, ArrayList<Pair<CarPark, Float>>>
Task to execute to generate carpark distances from the gym itself For sg.edu.ntu.scse.cz2006.gymbuddies.tasks in Gym Buddies!
Author
Kenneth Soh
Since
2019-09-25
Callback |
Internal interface to handle callbacks interface Callback |
<init> |
Initializees the task to execute EvaluateCarparkDistance(gymLocation: LatLng, carparkDao: CarParkDao, callback: Callback) |
callback |
Callback callback to call when task completes val callback: Callback |
carparkDao |
val carparkDao: CarParkDao |
gymLocation |
LatLng Current location of the gym val gymLocation: LatLng |
doInBackground |
Internal task to execute in the background on a seperate thread fun doInBackground(vararg p0: Void?): ArrayList<Pair<CarPark, Float>> |
onPostExecute |
Function ran when the task completes fun onPostExecute(result: ArrayList<Pair<CarPark, Float>>): Unit |
TAG |
Activity Tag for logs const val TAG: String |