class UpdateFirebaseFirestoreDocument : AsyncTask<Void, Void, Boolean>
This task handles updating of Firebase Firestore DB user document object in the background For sg.edu.ntu.scse.cz2006.gymbuddies.tasks in Gym Buddies!
Author
Kenneth Soh
Since
2019-09-16
Callback |
Internal interface to handle callbacks interface Callback |
<init> |
Initializees the task to execute UpdateFirebaseFirestoreDocument(docRef: DocumentReference, userObj: User, callback: Callback) |
callback |
Callback Callback to call when task completes var callback: Callback |
docRef |
DocumentReference Document reference in the Firebase Firestore DB var docRef: DocumentReference |
userObj |
User User object to update var userObj: User |
doInBackground |
Internal task to execute in the background on a seperate thread fun doInBackground(vararg p0: Void?): Boolean |
onPostExecute |
Function executed after the task completes with the result of the task fun onPostExecute(result: Boolean): Unit |
TAG |
Activity Tag for logs const val TAG: String |