public interface AppLovinVariableService
This service allows for retrieval of variables pre-defined on AppLovin's dashboard.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AppLovinVariableService.OnVariablesUpdateListener
Deprecated.
This API has been deprecated. Please use our SDK's initialization callback to retrieve variables instead.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(java.lang.String name)
Returns the variable value associated with the given key, or false if
no mapping of the desired type exists for the given key.
|
boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
Returns the variable value associated with the given key, or the specified default value if
no mapping of the desired type exists for the given key.
|
java.lang.String |
getString(java.lang.String name)
Returns the variable value associated with the given key, or null if
no mapping of the desired type exists for the given key.
|
java.lang.String |
getString(java.lang.String name,
java.lang.String defaultValue)
Returns the variable value associated with the given key, or the specified default value if
no mapping of the desired type exists for the given key.
|
void |
loadVariables()
Deprecated.
This API has been deprecated. Please use our SDK's initialization callback to retrieve variables instead.
|
void |
setOnVariablesUpdateListener(AppLovinVariableService.OnVariablesUpdateListener listener)
Deprecated.
This API has been deprecated. Please use our SDK's initialization callback to retrieve variables instead.
|
@Deprecated void setOnVariablesUpdateListener(AppLovinVariableService.OnVariablesUpdateListener listener)
listener - The callback that will be run.@Deprecated void loadVariables()
setOnVariablesUpdateListener(com.applovin.sdk.AppLovinVariableService.OnVariablesUpdateListener).boolean getBoolean(java.lang.String name)
name - The variable name to retrieve the value for.boolean getBoolean(java.lang.String name,
boolean defaultValue)
name - The variable name to retrieve the value for.defaultValue - The value to be returned if the variable name does not exist.java.lang.String getString(java.lang.String name)
name - The variable name to retrieve the value for.java.lang.String getString(java.lang.String name,
java.lang.String defaultValue)
name - The variable name to retrieve the value for.defaultValue - The value to be returned if the variable name does not exist.