app / sg.edu.ntu.scse.cz2006.gymbuddies.tasks / UploadProfilePic / Callback / onSuccess

onSuccess

abstract fun onSuccess(success: Boolean, imageUri: Uri? = null): Unit

Callback function called when the task completes with the success status and the imageUri of the image you just uploaded

Parameters

success - Boolean If you have succeeded in updating the profile picture

imageUri - Uri? URL of the Uploaded Profile Picture