Untitled

mail@pastecode.io avatar
unknown
kotlin
5 months ago
422 B
2
Indexable
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