Developers can overwrite the default functionality by creating a new OnClickListener, or add their own functionality on top of the default functionality by extending the provided UpdateClickListener and DisableClickListener.
This feature could be useful to developers who would like to enforce updates, because they could provide some logic when the user would dismiss the update dialog (i.e. simply finish() the current activity).
Added the possibility to add a custom click listener for each of the buttons of the update dialog.
setButtonUpdateClickListener(DialogInterface.OnClickListener clickListener)
setButtonDismissClickListener(DialogInterface.OnClickListener clickListener)
setButtonDoNotShowAgainClickListener(DialogInterface.OnClickListener clickListener)
Developers can overwrite the default functionality by creating a new OnClickListener, or add their own functionality on top of the default functionality by extending the provided
UpdateClickListener
andDisableClickListener
.This feature could be useful to developers who would like to enforce updates, because they could provide some logic when the user would dismiss the update dialog (i.e. simply
finish()
the current activity).