Package com.startapp.sdk.adsbase
Class StartAppSDK.InitParams
java.lang.Object
com.startapp.sdk.adsbase.StartAppSDK.InitParams
- Enclosing class:
- StartAppSDK
Provides a convenient way to configure SDK parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Initialize the SDK with configured parameters.setAccountId(String accountId) Account ID from the publisher's portal (optional)setCallback(Runnable callback) Callback to be called in UI thread right after SDK initialization.setReturnAdsEnabled(boolean value) Deprecated.setSdkAdPrefs(com.startapp.sdk.adsbase.SDKAdPreferences sdkAdPrefs) Additional parameters.
-
Constructor Details
-
InitParams
public InitParams()
-
-
Method Details
-
setAccountId
Account ID from the publisher's portal (optional)- Parameters:
accountId- account ID- Returns:
- this
-
setSdkAdPrefs
@NonNull public StartAppSDK.InitParams setSdkAdPrefs(@NonNull com.startapp.sdk.adsbase.SDKAdPreferences sdkAdPrefs) Additional parameters.- Parameters:
sdkAdPrefs- ad preferences- Returns:
- this
-
setReturnAdsEnabled
Deprecated.This method does nothing and it will be removed completely from future release of SDK 6.0.0 -
setCallback
Callback to be called in UI thread right after SDK initialization.- Parameters:
callback- callback- Returns:
- this
-
init
public void init()Initialize the SDK with configured parameters.
-