Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ ShowToast()

static void ShowToast ( string message,
GamebaseUIToastType type )
static

Show a standard toast that just contains a text view.

Since
Added 1.4.0.
Parameters
messageThe message to be shown in the alert.
typeThe time interval to be exposed. GamebaseUIToastType.TOAST_LENGTH_LONG (3.5 seconds), GamebaseUIToastType.TOAST_LENGTH_SHORT (2 seconds)

Example Usage :

public void ShowToastSample(string message)
{
// GamebaseUIToastType.TOAST_LENGTH_SHORT or 0 : 2 seconds
// GamebaseUIToastType.TOAST_LENGTH_LONG or 1 : 3.5 seconds
// All the rest values : 2 seconds
var type = GamebaseUIToastType.TOAST_LENGTH_SHORT;
Gamebase.Util.ShowToast(message, type);
}
static void ShowToast(string message, GamebaseUIToastType type)
Show a standard toast that just contains a text view.
Definition Gamebase.cs:2968
The Util class provides convenient and useful methods.
Definition Gamebase.cs:2902
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11