Gamebase

class Gamebase

This class is a wrapper class that is provided to use various features of Gamebase platform. Provides functions such as authentication, launching, pushing, and billing.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Analytics
Link copied to clipboard
class Contact
This class provides wrapping of function execution related to TOAST Contact.
Link copied to clipboard
This class provides functionality related to image notices.
Link copied to clipboard
class Launching
This class is provided to check information such as launch information, status, and so on.
Link copied to clipboard
class Logger
Link copied to clipboard
class Network
This class provides network status information.
Link copied to clipboard
class Purchase
This class provides wrapping of function execution related to payment.
Link copied to clipboard
class Push
This class provides wrapping of function execution related to push notification.
Link copied to clipboard
This class provides functionality related to temporary withdrawal.
Link copied to clipboard
class Terms
This class provides functionality related to terms of use view.
Link copied to clipboard
class Util
This class provides Android utility functions.
Link copied to clipboard
class WebView
This class implements the Webview call function.

Functions

Link copied to clipboard
open fun activeApp(applicationContext: Context)
Notifies the Gamebase SDK that the app has launched.
Link copied to clipboard
Add a Gamebase event handler to be called when every events are arrived.
Link copied to clipboard
open fun addMapping(@NonNull activity: Activity, @NonNull providerName: String, @Nullable callback: GamebaseDataCallback<AuthToken>)
open fun addMapping(@NonNull activity: Activity, @NonNull providerName: String, @Nullable additionalInfo: Map<String, Any>, @Nullable callback: GamebaseDataCallback<AuthToken>)
Mapping the currently authenticated user identifier of Gamebase with another external authentication.
open fun addMapping(@NonNull activity: Activity, @NonNull credentialInfo: Map<String, Any>, @Nullable callback: GamebaseDataCallback<AuthToken>)
Mapping the currently authenticated user identifier of Gamebase with the credential of external authentication provider.
Link copied to clipboard
open fun addMappingForcibly(@NonNull activity: Activity, @NonNull forcingMappingTicket: ForcingMappingTicket, @Nullable callback: GamebaseDataCallback<AuthToken>)
open fun addMappingForcibly(@NonNull activity: Activity, @NonNull providerName: String, @NonNull forcingMappingKey: String, @Nullable callback: GamebaseDataCallback<AuthToken>)
open fun addMappingForcibly(@NonNull activity: Activity, @NonNull credentialInfo: Map<String, Any>, @NonNull forcingMappingKey: String, @Nullable callback: GamebaseDataCallback<AuthToken>)
open fun addMappingForcibly(@NonNull activity: Activity, @NonNull providerName: String, @NonNull forcingMappingKey: String, @Nullable additionalInfo: Map<String, Any>, @Nullable callback: GamebaseDataCallback<AuthToken>)
Forcibly trying to map the currently authenticated user identifier of Gamebase with the credential of external authentication provider.
Link copied to clipboard
open fun addObserver(observer: Observer)
Add a observer to be called when network status, launching status or user status is changed.
Link copied to clipboard
Add a server push event listener to be called when server push message is arrived.
Link copied to clipboard
open fun changeLogin(@NonNull activity: Activity, @NonNull forcingMappingTicket: ForcingMappingTicket, @Nullable callback: GamebaseDataCallback<AuthToken>)
Change logged in account with ForcingMappingTicket.
Link copied to clipboard
Gets the access token for the current user.
Link copied to clipboard
Gets the list of external authentication providers mapped to the current user identifier.
Link copied to clipboard
open fun getAuthProviderAccessToken(@NonNull providerName: String): String
Gets the access token from the authentication provider.
Link copied to clipboard
Gets the profile from the authentication provider.
Link copied to clipboard
open fun getAuthProviderUserID(@NonNull providerName: String): String
Gets the user ID from the authentication provider.
Link copied to clipboard
open fun getBanInfo(): BanInfo
Gets the ban information of the suspended user.
Link copied to clipboard
Gets the carrier code set for the current device.
Link copied to clipboard
Gets the carrier name set for the current device.
Link copied to clipboard
Gets the country code.
Link copied to clipboard
Gets the country code currently set on the device.
Link copied to clipboard
Gets the country code set in USIM.
Link copied to clipboard
Gets the language code set for the current device.
Link copied to clipboard
Gets the display language code set for the current device.
Link copied to clipboard
Gets the name of the last logged-in authentication provider.
Link copied to clipboard
open fun getSDKVersion(): String
Returns the current version of the Gamebase SDK for Android as a string.
Link copied to clipboard
open fun getUserID(): String
Gets the user ID that is currently logged in.
Link copied to clipboard
open fun initialize(activity: Activity, configuration: GamebaseConfiguration, @Nullable callback: GamebaseDataCallback<LaunchingInfo>)
This function initializes the Gamebase SDK.
Link copied to clipboard
open fun isDebugMode(): Boolean
Indicates if we are in debug mode.
Link copied to clipboard
Check whether the Gamebase is initialized.
Link copied to clipboard
open fun isSandbox(): Boolean
Returns whether this project is sandbox mode or not.
Link copied to clipboard
Returns true if the GamebaseException object is null or the error code is zero.
Link copied to clipboard
Try to issue the transfer account.
Link copied to clipboard
open fun login(@NonNull activity: Activity, providerName: String, @Nullable callback: GamebaseDataCallback<AuthToken>)
open fun login(@NonNull activity: Activity, providerName: String, @Nullable additionalInfo: Map<String, Any>, @Nullable callback: GamebaseDataCallback<AuthToken>)
Logs the user in with the external authentication provider.
open fun login(@NonNull activity: Activity, @NonNull credentialInfo: Map<String, Any>, @Nullable callback: GamebaseDataCallback<AuthToken>)
Logs the user in with the credential of external authentication provider.
Link copied to clipboard
Logs the user in with last logged in authentication provider.
Link copied to clipboard
open fun logout(@NonNull activity: Activity, @Nullable callback: GamebaseCallback)
Logs out the user.
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent)
The method that should be called from the Activity's or Fragment's onActivityResult method.
Link copied to clipboard
Try to query the transfer account to Gamebase.
Link copied to clipboard
Remove all Gamebase event listeners.
Link copied to clipboard
Remove all observer listeners.
Link copied to clipboard
Remove all server push event listeners.
Link copied to clipboard
Remove a Gamebase event listener.
Link copied to clipboard
open fun removeMapping(@NonNull activity: Activity, @NonNull providerName: String, @Nullable callback: GamebaseCallback)
Removes external authentication that is mapped to the current user identifier.
Link copied to clipboard
open fun removeObserver(observer: Observer)
Remove a observer listener.
Link copied to clipboard
Remove a server push event listener.
Link copied to clipboard
Try to renew the transfer account.
Link copied to clipboard
open fun setDebugMode(enableDebug: Boolean)
Used to enable or disable logging, and other debug features.
Link copied to clipboard
open fun setDisplayLanguageCode(@NonNull displayLanguageCode: String)
Link copied to clipboard
open fun transferAccountWithIdPLogin(accountId: String, accountPassword: String, callback: GamebaseDataCallback<AuthToken>)
Try to transfer account with transfer account id and password.
Link copied to clipboard
open fun withdraw(@NonNull activity: Activity, @Nullable callback: GamebaseCallback)
Withdraws the user.