com.applovin.sdk.AppLovinVariableService |
Created by Thomas So on October 06 2018
This service allows for retrieval of variables pre-defined on AppLovin's dashboard.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | AppLovinVariableService.OnVariablesUpdateListener | Interface definition for a callback to be invoked when latest variables are retrieved from the server. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
getBoolean(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.
| ||||||||||
abstract boolean |
getBoolean(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.
| ||||||||||
abstract String |
getString(String name, 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.
| ||||||||||
abstract String |
getString(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.
| ||||||||||
abstract void |
setOnVariablesUpdateListener(AppLovinVariableService.OnVariablesUpdateListener listener)
Register a callback to be invoked when the latest variables are retrieved from the server.
|
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.
name | The variable name to retrieve the value for. |
---|---|
defaultValue | The value to be returned if the variable name does not exist. |
Returns the variable value associated with the given key, or false if no mapping of the desired type exists for the given key.
name | The variable name to retrieve the value for. |
---|
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.
name | The variable name to retrieve the value for. |
---|---|
defaultValue | The value to be returned if the variable name does not exist. |
Returns the variable value associated with the given key, or null if no mapping of the desired type exists for the given key.
name | The variable name to retrieve the value for. |
---|
Register a callback to be invoked when the latest variables are retrieved from the server. The initial set of variables will be returned after the AppLovin SDK finishes initializing.
listener | The callback that will be run. |
---|