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
Interface definition for a callback to be invoked when latest variables are retrieved from the server.
|
| 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()
Explicitly retrieve the latest variables to be returned via the listener.
|
void |
setOnVariablesUpdateListener(AppLovinVariableService.OnVariablesUpdateListener listener)
Register a callback to be invoked when the latest variables are retrieved from the server.
|
void setOnVariablesUpdateListener(AppLovinVariableService.OnVariablesUpdateListener listener)
listener - The callback that will be run.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.