public interface

AppLovinVariableService

com.applovin.sdk.AppLovinVariableService

Class Overview

Created by Thomas So on October 06 2018

This service allows for retrieval of variables pre-defined on AppLovin's dashboard.

Summary

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.

Public Methods

public 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.

Parameters
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 to be used for the given key, or the default value if no value was found.

public 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.

Parameters
name The variable name to retrieve the value for.
Returns
  • The variable value to be used for the given key, or null if no value was found.

public 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.

Parameters
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 to be used for the given key, or the default value if no value was found.

public 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.

Parameters
name The variable name to retrieve the value for.
Returns
  • The variable value to be used for the given key, or null if no value was found.

public abstract void setOnVariablesUpdateListener (AppLovinVariableService.OnVariablesUpdateListener listener)

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.

Parameters
listener The callback that will be run.