Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

firebase realtime database get key

var ref  = database.child("clubs")
val database_listener = object : ValueEventListener {
        override fun onDataChange(dataSnapshot: DataSnapshot) {
            for (ds in dataSnapshot.children) {
                val key = ds.key
           }
        }
     }
   ref.addValueEventListener(database_listener)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #firebase #realtime #database #key
ADD COMMENT
Topic
Name
8+1 =