Untitled
uploadTask.addOnProgressListener { taskSnapshot -> val progress = (100.0 * taskSnapshot.bytesTransferred) / taskSnapshot.totalByteCount d { "Upload is $progress% done" } }.addOnPausedListener { d { "Upload is paused" } }.addOnFailureListener { d { "failure: ${it.printStackTrace()}" } }.addOnSuccessListener { profilePhotosRef.downloadUrl.addOnSuccessListener { d { "downloadUrl: $it" } } }
Leave a Comment