Gamebase SDK for Android  2.7.2
Toast Gamebase Platform
GamebaseConfiguration.Builder Class Reference
Collaboration diagram for GamebaseConfiguration.Builder:
Collaboration graph

Public Member Functions

 Builder (String appId, String appVersion)
 Set the required parameters for the Gamebase SDK initialization. More...
 
Builder enablePopup (boolean enable)
 
Builder enableLaunchingStatusPopup (boolean enable)
 
Builder enableBanPopup (boolean enable)
 
Builder setDisplayLanguageCode (String displayLanguage)
 
GamebaseConfiguration build ()
 
Builder setZoneType (String zoneType)
 API for the test application. More...
 
Builder setStoreCode (String storeCode)
 Set store code. More...
 
Builder setFCMSenderId (String senderId)
 Set firebase-messaging sender id. More...
 
Builder setTencentAccessKey (String accessKey)
 Set tencent notification access key. More...
 
Builder setTencentAccessId (String accessId)
 Set tencent notification access id. More...
 

Protected Member Functions

 Builder (String appId, String appVersion, String storeCode)
 

Protected Attributes

String mServerApiVersion = DEFAULT_SERVER_API_VERSION
 
String mZoneType = DEFAULT_SERVICE_ZONE
 
String mPushType = PushProvider.Type.NONE
 

Constructor & Destructor Documentation

◆ Builder() [1/2]

Builder ( String  appId,
String  appVersion,
String  storeCode 
)
protected

◆ Builder() [2/2]

Builder ( String  appId,
String  appVersion 
)

Set the required parameters for the Gamebase SDK initialization.

Since
Added 1.0.0.
Deprecated:
As of release 2.6.0, use GamebaseConfiguration#newBuilder(String, String, String) method instead.
Parameters
appIdProjectKey of the TOAST Console.
appVersionClient version of the Gamebase.

Member Function Documentation

◆ build()

◆ enableBanPopup()

Builder enableBanPopup ( boolean  enable)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ enableLaunchingStatusPopup()

Builder enableLaunchingStatusPopup ( boolean  enable)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ enablePopup()

Builder enablePopup ( boolean  enable)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDisplayLanguageCode()

Builder setDisplayLanguageCode ( String  displayLanguage)

◆ setFCMSenderId()

Builder setFCMSenderId ( String  senderId)

Set firebase-messaging sender id.

Since
Added 1.4.0.
Deprecated:
As of release 2.6.0, You don't need to call this API anymore.
Parameters
senderIdFirebase-messaging sender id

◆ setStoreCode()

Builder setStoreCode ( String  storeCode)

Set store code.

Since
Added 1.4.0.
Deprecated:
As of release 2.6.0, use GamebaseConfiguration#newBuilder(String, String, String) method instead.
Parameters
storeCodeStore code

◆ setTencentAccessId()

Builder setTencentAccessId ( String  accessId)

Set tencent notification access id.

Since
Added 1.4.0.
Deprecated:
As of release 2.6.0, You need to define AccessKey and AccessID to the AndroidManifest.xml or build.gradle.
Parameters
accessIdTencent notification access id

◆ setTencentAccessKey()

Builder setTencentAccessKey ( String  accessKey)

Set tencent notification access key.

Since
Added 1.4.0.
Deprecated:
As of release 2.6.0, You need to define AccessKey and AccessID to the AndroidManifest.xml or build.gradle.
Parameters
accessKeyTencent notification access key

◆ setZoneType()

Builder setZoneType ( String  zoneType)

API for the test application.

Since
Added 1.0.0.
Deprecated:
As of release 2.6.0, do not call this method.
Parameters
zoneType
Returns
Here is the call graph for this function:

Member Data Documentation

◆ mPushType

String mPushType = PushProvider.Type.NONE
protected

◆ mServerApiVersion

String mServerApiVersion = DEFAULT_SERVER_API_VERSION
protected

◆ mZoneType

String mZoneType = DEFAULT_SERVICE_ZONE
protected