app / sg.edu.ntu.scse.cz2006.gymbuddies.tasks / EvaluateCarparkDistance

EvaluateCarparkDistance

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

Types

Callback

Internal interface to handle callbacks

interface Callback

Constructors

<init>

Initializees the task to execute

EvaluateCarparkDistance(gymLocation: LatLng, carparkDao: CarParkDao, callback: Callback)

Properties

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

Functions

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

Companion Object Properties

TAG

Activity Tag for logs

const val TAG: String