Gamebase SDK for Unity 2.76.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

  message | The message to be shown in the alert.
  type | The 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);
}
Toast.Gamebase.Gamebase.Util.ShowToast
static void ShowToast(string message, GamebaseUIToastType type)
Show a standard toast that just contains a text view.
Definition Gamebase.cs:2997
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