RemoteConfig class
Class for handling RemoteConfig (UX Optimizer).
Constructors
- RemoteConfig(MethodChannel channel)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
activateFetched(
) → Future< bool> - Enable the fetched RemoteConfig value. Normally used in combination with the fetch method.
-
fetch(
int timeoutMillisecs, _ReproCallback callback) → Future< void> - Waiting to get the RemoteConfig value. And when the wait is complete, the callback function will be executed.
-
forceReset(
) → Future< void> - Force the RemoteConfig value held by the app to be reset.
-
get(
String key) → Future< RemoteConfigValue> - Get the value of the RemoteConfig for the specified key. example:
-
getAllValues(
) → Future< Map< String, RemoteConfigValue> > - Get all RemoteConfig keys and values.
-
getAllValuesWithPrefix(
String prefix) → Future< Map< String, RemoteConfigValue> > - Gets all RemoteConfig keys and values starting with the specified prefix.
-
getLocalDefaultValue(
String key) → Future< RemoteConfigValue> - Get the default value set in the device.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDefaultsFromJsonString(
String json) → Future< void> - Set the default value of RemoteConfig based on the JSON string.
-
setDefaultsFromMap(
Map map) → Future< void> - Set the default value of RemoteConfig based on the map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited