Created
January 15, 2026 22:07
-
-
Save LethalMaus/84ece189f7b6dce99c6548b7f50d9dd6 to your computer and use it in GitHub Desktop.
onDataChanged.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override fun onDataChanged(dataEvents: DataEventBuffer) { | |
| dataEvents.forEach { event -> | |
| when (event.type) { | |
| DataEvent.TYPE_CHANGED -> handleDataItem(event.dataItem) | |
| DataEvent.TYPE_DELETED -> handleDeletion(event.dataItem.uri) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment