Skip to content

Instantly share code, notes, and snippets.

@varundwarkani
Created March 11, 2020 17:19
Show Gist options
  • Save varundwarkani/ed2509f955618fd015d3ae832bffb42f to your computer and use it in GitHub Desktop.
Save varundwarkani/ed2509f955618fd015d3ae832bffb42f to your computer and use it in GitHub Desktop.
InAppUpdateDownloadListener
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