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
/** | |
* Creates and shows an [AlertDialog] while maintaining the immersive mode. | |
* @param activity the `Activity` which will host the dialog | |
* @param title dialog's title | |
* @param message dialog's message | |
* @param cancelable whether the dialog should be cancelable | |
* @param yesButton the text for the positive button (no positive button will be added if `null` is passed) | |
* @param noButton the text for the negative button (no negative button will be added if `null` is passed) | |
* @param yesCallback callback to invoke when the user presses the positive button | |
* @param noCallback callback to invoke when the user presses the negative button |