ApptimizeVariable<T> class
The interface used to create and retrieve dynamic variables.
The factory methods are used to create and register dynamic variables with
the SDK. As they need to be declared prior to setting up an experiment, they
should be called as early as possible during app execution. Variables can
be declared before the call to startApptimize
.
All the factory methods return a reference to the created dynamic variable.
As dynamic variables are expected to be declared ahead of time during app startup, getters are provided to retrieve those dynamic variables at time of use.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
declareBool(
String name, bool defaultValue) → Future< ApptimizeValueVariable< bool> ?> -
Create a bool dynamic variable with a specified
name
anddefaultValue
. -
declareBoolArray(
String name, List< bool> defaultValue) → Future<ApptimizeListVariable< bool> ?> -
Create a dynamic variable of an array containing booleans with a specified
name
anddefaultValue
. -
declareBoolDictionary(
String name, Map< String, bool> defaultValue) → Future<ApptimizeMapVariable< bool> ?> -
Create a dynamic variable of an map containing booleans keyed by strings
with a specified
name
anddefaultValue
. -
declareDouble(
String name, double defaultValue) → Future< ApptimizeValueVariable< double> ?> -
Create a double dynamic variable with a specified
name
anddefaultValue
. -
declareDoubleArray(
String name, List< double> defaultValue) → Future<ApptimizeListVariable< double> ?> -
Create a dynamic variable of an array containing doubles with a specified
name
anddefaultValue
. -
declareDoubleDictionary(
String name, Map< String, double> defaultValue) → Future<ApptimizeMapVariable< double> ?> -
Create a dynamic variable of an map containing doubles keyed by strings
with a specified
name
anddefaultValue
. -
declareInteger(
String name, int defaultValue) → Future< ApptimizeValueVariable< int> ?> -
Create a integer dynamic variable with a specified
name
anddefaultValue
. -
declareIntegerArray(
String name, List< int> defaultValue) → Future<ApptimizeListVariable< int> ?> -
Create a dynamic variable of an array containing integers with a specified
name
anddefaultValue
. -
declareIntegerDictionary(
String name, Map< String, int> defaultValue) → Future<ApptimizeMapVariable< int> ?> -
Create a dynamic variable of an map containing integers keyed by strings
with a specified
name
anddefaultValue
. -
declareString(
String name, String defaultValue) → Future< ApptimizeValueVariable< String> ?> -
Create a string dynamic variable with a specified
name
anddefaultValue
. -
declareStringArray(
String name, List< String> defaultValue) → Future<ApptimizeListVariable< String> ?> -
Create a dynamic variable of an array containing strings with a specified
name
anddefaultValue
. -
declareStringDictionary(
String name, Map< String, String> defaultValue) → Future<ApptimizeMapVariable< String> ?> -
Create a dynamic variable of an map containing strings keyed by strings
with a specified
name
anddefaultValue
. -
getBool(
String name) → Future< ApptimizeValueVariable< bool> ?> -
Retrieve a boolean dynamic variable of the specified
name
that has already been declared. -
getBoolArray(
String name) → Future< ApptimizeListVariable< bool> ?> -
Retrieve a list of booleans dynamic variable of the specified
name
that has already been declared. -
getBoolDictionary(
String name) → Future< ApptimizeMapVariable< bool> ?> -
Retrieve a map of booleans dynamic variable of the specified
name
that has already been declared. -
getDouble(
String name) → Future< ApptimizeValueVariable< double> ?> -
Retrieve a double dynamic variable of the specified
name
that has already been declared. -
getDoubleArray(
String name) → Future< ApptimizeListVariable< double> ?> -
Retrieve a list of doubles dynamic variable of the specified
name
that has already been declared. -
getDoubleDictionary(
String name) → Future< ApptimizeMapVariable< double> ?> -
Retrieve a map of doubles dynamic variable of the specified
name
that has already been declared. -
getInteger(
String name) → Future< ApptimizeValueVariable< int> ?> -
Retrieve a integer dynamic variable of the specified
name
that has already been declared. -
getIntegerArray(
String name) → Future< ApptimizeListVariable< int> ?> -
Retrieve a list of integers dynamic variable of the specified
name
that has already been declared. -
getIntegerDictionary(
String name) → Future< ApptimizeMapVariable< int> ?> -
Retrieve a map of integers dynamic variable of the specified
name
that has already been declared. -
getString(
String name) → Future< ApptimizeValueVariable< String> ?> -
Retrieve a string dynamic variable of the specified
name
that has already been declared. -
getStringArray(
String name) → Future< ApptimizeListVariable< String> ?> -
Retrieve a list of strings dynamic variable of the specified
name
that has already been declared. -
getStringDictionary(
String name) → Future< ApptimizeMapVariable< String> ?> -
Retrieve a map of strings dynamic variable of the specified
name
that has already been declared.