OOUI/Windows/Simple messages

A few convenience functions exist to display a quick message or question dialog, without having to set up a MessageDialog and WindowManager and other boilerplate.

For both  and , some additional options, such as  , can be passed in the second parameter. If you need more flexibility, you'll need to use create and display a MessageDialog.

Alert dialog
displays a quick modal alert dialog. The dialog has only one action button, labelled "OK", clicking it will simply close the dialog. See complete documentation.

Confirmation dialog
displays a quick modal confirmation dialog. The dialog has two action buttons, one to confirm an operation (labelled "OK") and one to cancel it (labelled "Cancel"). See complete documentation.