Gamebase SDK for Android  1.3.0
Toast Gamebase Platform

◆ showAlert() [2/2]

static void showAlert ( @NonNull final Context  context,
@NonNull final String  title,
@NonNull final String  message,
@Nullable final DialogInterface.OnClickListener  clickListener 
)
static

This method to create the dialog and display it on screen.

Parameters
contextThe context to use. Usually your android.app.Application or android.app.Activity object.
titleThe title displayed in the dialog.
messageThe message to display.
clickListenerThe clickListener to be invoked when the button of the dialog is pressed.