Android Studio – Returning a value which is inside of add on Success Listener in kotlin
I am facing a problem to get a return type in a function in kotlin The function is override suspend fun uploaded_docs_retrival() : ArrayList<String> { Firebase.firestore.collection("profiles").whereEqualTo("uid", "$uid").get() .addOnSuccessListener { result -> for (document in result) { val myObject = document.toObject(docretreving::class.java)…