How to get a list of all files in Cloud Storage in a Firebase app?

后端 未结 19 1062
傲寒
傲寒 2020-11-21 11:25

I\'m working on uploading images, everything works great, but I have 100 pictures and I would like to show all of them in my View, as I get the complete list of

19条回答
  •  星月不相逢
    2020-11-21 11:51

    You can list files in a directory of firebase storage by listAll() method. To use this method, have to implement this version of firebase storage. 'com.google.firebase:firebase-storage:18.1.1'

    https://firebase.google.com/docs/storage/android/list-files

    Keep in mind that upgrade the Security Rules to version 2.

提交回复
热议问题