class UploadProfilePic : AsyncTask<Void, Void, Void>
Task ran to upload profile picture onto Firebase Storage and generate the URL of the image 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 UploadProfilePic(activity: Activity, ref: StorageReference, bitmap: Bitmap, callback: Callback) |
actRef |
WeakReference<(android.app.Activity..android.app.Activity?)> A weak reference to the activity val actRef: WeakReference<Activity!> |
bitmap |
Bitmap The bitmap image to store on the server and generate the URL from val bitmap: Bitmap |
callback |
Callback Callback to call when task completes val callback: Callback |
ref |
StorageReference Reference to store the soon-to-be uploaded picture in on Firebase Storage val ref: StorageReference |
doInBackground |
Internal task to execute in the background on a seperate thread fun doInBackground(vararg p0: Void?): Void? |
TAG |
Activity Tag for logs const val TAG: String |