Created
March 11, 2020 17:19
-
-
Save varundwarkani/ed2509f955618fd015d3ae832bffb42f to your computer and use it in GitHub Desktop.
InAppUpdateDownloadListener
This file contains 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
listener = new InstallStateUpdatedListener() { | |
@Override | |
public void onStateUpdate(InstallState state) { | |
if (state.installStatus() == InstallStatus.DOWNLOADED) { | |
//Display Snackbar/dialog and ask the user to update | |
} | |
} | |
}; | |
appUpdateManager.registerListener(listener); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment