Gamebase SDK for Unity  1.1.5
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)
 Method that setting Gamebase to debug mode. More...
 
static bool IsSuccess (GamebaseError error)
 Returns true if the GamebaseError instance is null or the error code is zero. More...
 
static void Initialize (GamebaseCallback.GamebaseDelegate< GamebaseResponse.Launching.LaunchingInfo > callback)
 This method initialize Gamebase without GamebaseConfiguration instance. More...
 
static void Initialize (GamebaseRequest.GamebaseConfiguration configuration, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Launching.LaunchingInfo > callback)
 This method initialize Gamebase with GamebaseConfiguration instance. More...
 
static void Login (string providerName, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Try to login for last logged in ID Provider. More...
 
static void Login (string providerName, Dictionary< string, object > additionalInfo, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Try to login for last logged in ID Provider. More...
 
static void Login (Dictionary< string, object > credentialInfo, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Try to login with credential information received from External SDK or OAuth. More...
 
static void LoginForLastLoggedInProvider (GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 Gamebase has LoginForLastLoggedInProvider method known as Auto-Login. More...
 
static void Logout (GamebaseCallback.ErrorDelegate callback)
 This method make user logout from Gamebase Game Platform. More...
 
static void Withdraw (GamebaseCallback.ErrorDelegate callback)
 This method make user withdraw from Gamebase Game Platform, but IDPs need to be unlink in each IDP user preference page. More...
 
static void AddMapping (string providerName, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 If you have logged in with an IDP Type. More...
 
static void AddMapping (string providerName, Dictionary< string, object > additionalInfo, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
 If you have logged in with an IDP Type. More...
 
static void RemoveMapping (string providerName, GamebaseCallback.ErrorDelegate callback)
 Disconnect ID Provider from UserID. More...
 
static List< string > GetAuthMappingList ()
 Method that returns which IDPs have been mapped to current UserID. More...
 
static string GetAuthProviderUserID (string providerName)
 Method that returns which userID corresponding to the provider name you entered More...
 
static string GetAuthProviderAccessToken (string providerName)
 Method that returns which accessToken corresponding to the provider name you entered More...
 
static GamebaseResponse.Auth.AuthProviderProfile GetAuthProviderProfile (string providerName)
 Method that returns which profile corresponding to the provider name you entered More...
 
static string GetSDKVersion ()
 Method that got SDK version of client More...
 
static string GetUserID ()
 Method that got an UserID that identify each user in Platform. More...
 
static string GetAccessToken ()
 Method that got an access token is taken from Gamebase Platform server. More...
 
static string GetLastLoggedInProvider ()
 Method that return which IDP have been logged in at last time. More...
 
static string GetLanguageCode ()
 summary More...
 
static string GetCarrierCode ()
 Method that got an language code is taken from SDK. More...
 
static string GetCarrierName ()
 Method that got an carrier name is taken from device. More...
 
static string GetCountryCode ()
 Method that got an country code is taken from device. More...
 
static string GetCountryCodeOfUSIM ()
 Method that got an country code is taken from device USIM. More...
 
static string GetCountryCodeOfDevice ()
 Method that got an country code is taken from device More...
 
static bool IsSandbox ()
 Return whether this project is sandbox mode or not. More...
 

Detailed Description

The Gamebase class is core of Gamebase service.