Gamebase SDK for Unity 2.75.0 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ GetNotificationOptions()

static GamebaseResponse.Push.NotificationOptions GetNotificationOptions | ( |  | ) |
| static

Get notification options in device.

Since
  Added 2.15.0.

Example Usage :

public void GetNotificationOptionsSample()
{
GamebaseResponse.Push.NotificationOptions notificationOptions = Gamebase.Push.GetNotificationOptions();
GamebaseRequest.Push.NotificationOptions options = new GamebaseRequest.Push.NotificationOptions(notificationOptions);
options.foregroundEnabled = true;
options.smallIconName = "notification_icon_name";
GamebaseRequest.Push.PushConfiguration configuration = new GamebaseRequest.Push.PushConfiguration();
Gamebase.Push.RegisterPush(configuration, options, (error)=> { });
}
Toast.Gamebase.Gamebase.Push.GetNotificationOptions
static GamebaseResponse.Push.NotificationOptions GetNotificationOptions()
Get notification options in device.
Definition: Gamebase.cs:2805
Toast.Gamebase.Gamebase.Push.RegisterPush
static void RegisterPush(GamebaseRequest.Push.PushConfiguration pushConfiguration, GamebaseCallback.ErrorDelegate callback)
With user's agreement to enablePush, enableAdPush, and enableAdNightPush, call following API to compl...
Definition: Gamebase.cs:2645
Toast.Gamebase.Gamebase.Push
The Push class provides registering push token API to ToastCloud Push Server and querying push token ...
Definition: Gamebase.cs:2610
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11
Here is the call graph for this function:
Here is the caller graph for this function: