public class

AppLovinSdkSettings

extends Object
java.lang.Object
   ↳ com.applovin.sdk.AppLovinSdkSettings

Class Overview

This class contains settings for AppLovin SDK.

Summary

Public Constructors
AppLovinSdkSettings()
Public Methods
String getAutoPreloadSizes()
String getAutoPreloadTypes()
long getBannerAdRefreshSeconds()
Get number of seconds to refresh banner ad in.
boolean isVerboseLoggingEnabled()
Check if verbose logging is enabled for the AppLovin SDK.
void setAutoPreloadSizes(String sizeNames)
Set which ad sizes you'd like the SDK to automatically preload in the background, if any.
void setAutoPreloadTypes(String typeNames)
Set which ad types you'd like the SDK to automatically preload in the background, if any.
void setBannerAdRefreshSeconds(long adRefreshSeconds)
Get number of seconds to refresh banner ad in.
void setVerboseLogging(boolean isVerboseLoggingEnabled)
Toggle verbose logging of AppLovin SDK.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AppLovinSdkSettings ()

Public Methods

public String getAutoPreloadSizes ()

public String getAutoPreloadTypes ()

public long getBannerAdRefreshSeconds ()

Get number of seconds to refresh banner ad in. Possible values should be greater then 30 seconds.

If the value is 0 ad will not be refreshed at all.

If the value is -1 ad would be refreshed on every call of loadNextAd().

If the value is any other negative number system default would be used.

Returns
  • Number of seconds to refresh values in.

public boolean isVerboseLoggingEnabled ()

Check if verbose logging is enabled for the AppLovin SDK.

If enabled AppLovin messages will appear in standard application log accessible via logcat. All log messages will have "AppLovinSdk" tag.

public void setAutoPreloadSizes (String sizeNames)

Set which ad sizes you'd like the SDK to automatically preload in the background, if any.

Parameters
sizeNames A comma-separated list of size names which should be preloaded. For example, setAutoPreloadSizes("BANNER,INTERSTITIAL");. To disable outright, set to "NONE".

public void setAutoPreloadTypes (String typeNames)

Set which ad types you'd like the SDK to automatically preload in the background, if any.

Parameters
typeNames A comma-separated list of size names which should be preloaded. For example, setAutoPreloadTypes("REGULAR,REWARD");. To disable outright, set to "NONE".

public void setBannerAdRefreshSeconds (long adRefreshSeconds)

Get number of seconds to refresh banner ad in. Possible values should be greater then 30 seconds.

If the value is 0 ad will not be refreshed at all.

If the value is -1 ad would be refreshed on every call of loadNextAd().

If the value is any other negative number system default would be used.

public void setVerboseLogging (boolean isVerboseLoggingEnabled)

Toggle verbose logging of AppLovin SDK.

If enabled AppLovin messages will appear in standard application log accessible via logcat. All log messages will have "AppLovinSdk" tag.

Verbose logging is disabled by default.

Parameters
isVerboseLoggingEnabled True if log messages should be output.