Gamebase SDK for Unity  1.5.0
Toast Gamebase Platform
Gamebase Class Reference

The Gamebase class is core of Gamebase service. More...

Collaboration diagram for Gamebase:
Collaboration graph

Classes

class  Launching
 The Launching class contains several informations that is received from the server after application is successfully launched. More...
 
class  Network
 The Network class indicates Network status. More...
 
class  Purchase
 The Purchase class provides several APIs related to purchasing processes. More...
 
class  Push
 The Push class provides registering push token API to ToastCloud Push Server and querying push token API. More...
 
class  Util
 The Util class provides convenient and useful methods. More...
 
class  Webview
 The WebView class represents the entry point for launching WebView. More...
 

Static Public Member Functions

static void SetDebugMode (bool isDebugMode)
 Used to enable or disable logging, and other debug features. More...
 
static bool IsSuccess (GamebaseError error)
 Returns true if the GamebaseException object is null or the error code is zero. More...
 
static void Initialize (GamebaseCallback.GamebaseDelegate< GamebaseResponse.Launching.LaunchingInfo > callback)
 This function initializes the Gamebase SDK. More...
 
static void Login (string providerName, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Logs the user in with the external authentication provider. More...
 
static void Login (string providerName, Dictionary< string, object > additionalInfo, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Logs the user in with the external authentication provider. More...
 
static void Login (Dictionary< string, object > credentialInfo, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Logs the user in with the credential of external authentication provider. More...
 
static void LoginForLastLoggedInProvider (GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Logs the user in with last logged in authentication provider. More...
 
static void Logout (GamebaseCallback.ErrorDelegate callback)
 Logs out the user. More...
 
static void Withdraw (GamebaseCallback.ErrorDelegate callback)
 Withdraws the user. More...
 
static void AddMapping (string providerName, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Mapping the currently authenticated user identifier of Gamebase with another external authentication. More...
 
static void AddMapping (string providerName, Dictionary< string, object > additionalInfo, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Mapping the currently authenticated user identifier of Gamebase with another external authentication. More...
 
static void AddMapping (Dictionary< string, object > credentialInfo, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Mapping the currently authenticated user identifier of Gamebase with the credential of external authentication provider. More...
 
static void RemoveMapping (string providerName, GamebaseCallback.ErrorDelegate callback)
 Removes external authentication that is mapped to the current user identifier. More...
 
static List< string > GetAuthMappingList ()
 Gets the list of external authentication providers mapped to the current user identifier. More...
 
static string GetAuthProviderUserID (string providerName)
 Gets the user ID from the authentication provider. More...
 
static string GetAuthProviderAccessToken (string providerName)
 Gets the access token from the authentication provider. More...
 
static GamebaseResponse.Auth.AuthProviderProfile GetAuthProviderProfile (string providerName)
 Gets the profile from the authentication provider. More...
 
static GamebaseResponse.Auth.BanInfo GetBanInfo ()
 Gets the ban information of the suspended user. More...
 
static string GetSDKVersion ()
 Returns the current version of the Gamebase SDK for Android as a string. More...
 
static string GetUserID ()
 Gets the user ID that is currently logged in. More...
 
static string GetAccessToken ()
 Gets the access token for the current user. More...
 
static string GetLastLoggedInProvider ()
 Gets the name of the last logged-in authentication provider. More...
 
static string GetLanguageCode ()
 Gets the language code set for the current device. More...
 
static string GetCarrierCode ()
 Gets the carrier code set for the current device. More...
 
static string GetCarrierName ()
 Gets the carrier name set for the current device. More...
 
static string GetCountryCode ()
 Gets the country code. More...
 
static string GetCountryCodeOfUSIM ()
 Gets the country code set in USIM. More...
 
static string GetCountryCodeOfDevice ()
 Gets the country code currently set on the device. More...
 
static bool IsSandbox ()
 Returns whether this project is sandbox mode or not. More...
 

Detailed Description

The Gamebase class is core of Gamebase service.