Firestore Tutorial Part 13 - DOCUMENT CHANGES - Android Studio Tutorial
У вашего броузера проблема в совместимости с HTML5
In part 13 of the Firestore tutorial we will learn how to use DocumentChanges to listen to granular changes in our data set. This way we can retrieve only particular documents that have been added, modified or removed, rather than always retrieving all documents of a query at once. This is particularly useful if we want to display our data in a RecyclerView.
We get a List of DocumentChange objects by calling getDocumentChanges on the QuerySnapshot that we get passed in the onEvent method of a SnapshotListener.
DocumentChanges can have 3 types: ADDED, MODIFIED and REMOVED, depending on which kind of change happened to the document.
From these DocumentChange objects we can retrive the affected DocumentSnapshot by calling getDocument on it. With getOldIndex and getNewIndex we can get the position of the document before and after the change.
Watch the whole playlist:
https://www.youtube.com/playlist?list=PLrnPJCHvNZuDrSqu-dKdDi3Q6nM-VUyxD
Example code, setup guide link etc:
https://codinginflow.com/tutorials/android/cloud-firestore/part-13-documentchanges
____________________
❗ Subscribe to the channel:
https://www.youtube.com/c/codinginflow?sub_confirmation=1
⏯ Watch more tutorials:
https://www.youtube.com/c/codinginflow/playlists
⭐ Become a channel member for exclusive tutorials and other perks:
https://www.youtube.com/channel/UC_Fh8kvtkVPkeihBs42jGcA/join
㊙ Help translating the videos:
http://www.youtube.com/timedtext_cs_panel?c=UC_Fh8kvtkVPkeihBs42jGcA&tab=2
? Support the content:
https://codinginflow.com/support-the-content
? Join the Discord chat:
https://discord.gg/TSnMvmc
? Audiobooks and podcasts for programmers:
https://codinginflow.com/audiobooks-podcasts-programmer
? How to get started with Android development:
https://codinginflow.com/learn-android-development-complete-beginner
? Follow Coding in Flow on social media:
Facebook:
https://www.facebook.com/codinginflow
Instagram:
https://www.instagram.com/codinginflow
Twitter:
https://twitter.com/codinginflow
Blog:
https://codinginflow.com