ALVariableService Class Reference

Inherits from NSObject
Declared in ALVariableService.h

Overview

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

– boolForKey:

Returns the variable value associated with the given key, or false if no mapping of the desired type exists for the given key.

- (BOOL)boolForKey:(NSString *)key

Parameters

key

The variable name to retrieve the value for.

Return Value

The variable value to be used for the given key, or nil if no value was found.

Discussion

Returns the variable value associated with the given key, or false if no mapping of the desired type exists for the given key.

Declared In

ALVariableService.h

– boolForKey: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.

- (BOOL)boolForKey:(NSString *)key defaultValue:(BOOL)defaultValue

Parameters

key

The variable name to retrieve the value for.

defaultValue

The value to be returned if the variable name does not exist.

Return Value

The variable value to be used for the given key, or the default value if no value was found.

Discussion

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.

Declared In

ALVariableService.h

– stringForKey:

Returns the variable value associated with the given key, or nil if no mapping of the desired type exists for the given key.

- (nullable NSString *)stringForKey:(NSString *)key

Parameters

key

The variable name to retrieve the value for.

Return Value

The variable value to be used for the given key, or nil if no value was found.

Discussion

Returns the variable value associated with the given key, or nil if no mapping of the desired type exists for the given key.

Declared In

ALVariableService.h

– stringForKey: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.

- (nullable NSString *)stringForKey:(NSString *)key defaultValue:(nullable NSString *)defaultValue

Parameters

key

The variable name to retrieve the value for.

defaultValue

The value to be returned if the variable name does not exist.

Return Value

The variable value to be used for the given key, or the default value if no value was found.

Discussion

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.

Declared In

ALVariableService.h