Gamebase SDK for Android
1.3.0
Toast Gamebase Platform
|
This class is a wrapper class that is provided to use various features of Gamebase platform. More...
Classes | |
class | Launching |
This class is provided to check information such as launch information, status, and so on. More... | |
class | Network |
class | Purchase |
class | Push |
class | UI |
class | Util |
class | WebView |
Static Public Member Functions | |
static void | activeApp (final Context applicationContext) |
Notifies the Gamebase SDK that the app has launched. More... | |
static void | initialize (final Activity activity, final GamebaseConfiguration configuration, @Nullable final GamebaseDataCallback< LaunchingInfo > callback) |
This function initializes the Gamebase SDK. More... | |
static boolean | isInitialized () |
Check whether the Gamebase is initialized. More... | |
static boolean | isSuccess (GamebaseException exception) |
Returns true if the GamebaseException object is null or the error code is zero. More... | |
static boolean | isDebugMode () |
Indicates if we are in debug mode. More... | |
static void | setDebugMode (boolean enableDebug) |
Used to enable or disable logging, and other debug features. More... | |
static String | getSDKVersion () |
Returns the current version of the Gamebase SDK for Android as a string. More... | |
static boolean | isSandbox () |
Returns whether this project is sandbox mode or not. More... | |
static void | login (@NonNull final Activity activity, final String providerName, @Nullable final GamebaseDataCallback< AuthToken > callback) |
Logs the user in with the external authentication provider. More... | |
static void | login (@NonNull final Activity activity, final String providerName, @Nullable Map< String, Object > additionalInfo, @Nullable final GamebaseDataCallback< AuthToken > callback) |
Logs the user in with the external authentication provider. More... | |
static void | login (@NonNull final Activity activity, @NonNull final Map< String, Object > credentialInfo, @Nullable final GamebaseDataCallback< AuthToken > callback) |
Logs the user in with the credential of external authentication provider. More... | |
static void | loginForLastLoggedInProvider (@NonNull final Activity activity, @Nullable final GamebaseDataCallback< AuthToken > callback) |
Logs the user in with last logged in authentication provider. More... | |
static void | addMapping (@NonNull final Activity activity, final String providerName, @Nullable final GamebaseDataCallback< AuthToken > callback) |
Mapping the currently authenticated user identifier of Gamebase with another external authentication. More... | |
static void | addMapping (@NonNull final Activity activity, @NonNull final Map< String, Object > credentialInfo, @Nullable final GamebaseDataCallback< AuthToken > callback) |
Mapping the currently authenticated user identifier of Gamebase with the credential of external authentication provider. More... | |
static void | addMapping (@NonNull final Activity activity, final String providerName, @Nullable final Map< String, Object > additionalInfo, @Nullable final GamebaseDataCallback< AuthToken > callback) |
Mapping the currently authenticated user identifier of Gamebase with another external authentication. More... | |
static void | removeMapping (@NonNull final Activity activity, final String providerName, @Nullable final GamebaseCallback callback) |
Removes external authentication that is mapped to the current user identifier. More... | |
static void | logout (@NonNull final Activity activity, @Nullable final GamebaseCallback callback) |
Logs out the user. More... | |
static void | withdraw (@NonNull final Activity activity, @Nullable final GamebaseCallback callback) |
Withdraws the user. 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 List< String > | getAuthMappingList () |
Gets the list of external authentication providers mapped to the current user identifier. More... | |
static String | getAuthProviderUserID (@NonNull String providerName) |
Gets the user ID from the authentication provider. More... | |
static String | getAuthProviderAccessToken (@NonNull String providerName) |
Gets the access token from the authentication provider. More... | |
static AuthProviderProfile | getAuthProviderProfile (@NonNull String providerName) |
Gets the profile from the authentication provider. More... | |
static AuthBanInfo | getAuthBanInfo () |
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 void | onActivityResult (int requestCode, int resultCode, Intent data) |
The method that should be called from the Activity's or Fragment's onActivityResult method. More... | |
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.