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

CheckFirstRun

class CheckFirstRun : AsyncTask<String, Void, Void>

Task to run the first run check in the background For sg.edu.ntu.scse.cz2006.gymbuddies.tasks in Gym Buddies!

Author
Kenneth Soh

Since
2019-09-16

Types

Callback

Internal interface to handle callbacks

interface Callback

Constructors

<init>

Initializees the task to execute

CheckFirstRun(activity: Activity, callback: Callback)

Properties

actRef

WeakReference<(android.app.Activity..android.app.Activity?)> A weak reference to the activity

val actRef: WeakReference<Activity!>

callback

Callback Callback to call when task completes

val callback: Callback

Functions

doCallback

Sends a callback back to the calling activity

fun doCallback(success: Boolean, activity: Activity): Unit

doInBackground

Internal task to execute in the background on a seperate thread

fun doInBackground(vararg p0: String?): Void?

Companion Object Properties

TAG

Activity Tag for logs

const val TAG: String