Gamebase SDK for Unity 2.76.0 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ ShowAlert() [2/2]

static void ShowAlert | ( | string | title,
|  | string | message,
|  | GamebaseCallback.VoidDelegate | buttonCallback )
| static

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

Show Alert View with async completion callback.

Since
  Added 1.4.0.

Parameters

  title | The title to be shown in the alert.
  message | The message to be shown in the alert.
  buttonCallback | The buttonCallback to be executed after click ok button.

Example Usage :

public void ShowAlertSample(string title, string message)
{
Gamebase.Util.ShowAlert(title, message, () =>
{
Debug.Log("The button was clicked.");
});
}
Toast.Gamebase.Gamebase.Util.ShowAlert
static void ShowAlert(string title, string message)
This method to create the dialog and display it on screen.
Definition Gamebase.cs:2947
Toast.Gamebase.Gamebase.Util
The Util class provides convenient and useful methods.
Definition Gamebase.cs:2931
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11