Created
July 22, 2019 08:09
-
-
Save sismetanin/d65cd8418e7797b980dc78309e50c98e to your computer and use it in GitHub Desktop.
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
// Create a listener to track downloading state updates. | |
val listener = InstallStateUpdatedListener { state -> | |
// Update progress indicator, request user to approve app reload, etc. | |
} | |
// At some point before starting an update, register a listener for updates. | |
appUpdateManager.registerListener(listener) | |
// ... | |
// At some point when status updates are no longer needed, unregister the listener. | |
appUpdateManager.unregisterListener(listener) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment