RemoteConfig class abstract

Constructors

RemoteConfig()

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

clearAll() → Future<void>
Clear all downloaded values
downloadAllKeys([RCDownloadCallback? callback]) → Future<void>
Trigger downloading of all remote config keys. RCDownloadCallback callback - will be called after all keys are downloaded
downloadOmittingKeys(List<String> omittedKeys, [RCDownloadCallback? callback]) → Future<void>
Trigger downloading of all remote config keys except omitted keys. List<String> key - list of keys to be omitted RCDownloadCallback callback - will be called after all keys are downloaded
downloadSpecificKeys(List<String> keys, [RCDownloadCallback? callback]) → Future<void>
Trigger downloading of specific remote config keys. List<String> key - list of keys to be downloaded RCDownloadCallback callback - will be called after all keys are downloaded
enrollIntoABTestsForKeys(List<String> keys) → Future<void>
Enroll into AB tests for the given keys List<String> keys - List of keys
exitABTestsForKeys(List<String> keys) → Future<void>
Exit AB tests for the given keys List<String> keys - List of keys
getAllValues() → Future<Map<String, RCData>>
returns the values of all keys. make sure downloadAllKeys is called to download all RC data before calling this method.
getAllValuesAndEnroll() → Future<Map<String, RCData>>
returns the values of all keys and enroll them for AB testing. make sure downloadAllKeys or downloadSpecificKeys is called to download all RC data before calling this method.
getValue(String key) → Future<RCData>
returns the value of a stored key. make sure downloadAllKeys or downloadSpecificKeys is called to download RC data before calling this method.
getValueAndEnroll(String key) → Future<RCData>
returns the value of a stored key and enroll it for AB testing. make sure downloadAllKeys or downloadSpecificKeys is called to download RC data before calling this method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDownloadCallback(RCDownloadCallback callback) → void
Register a callback to be called after remote config values are downloaded. RCDownloadCallback callback - callback
removeDownloadCallback(RCDownloadCallback callback) → void
Remove a registered callback. This callback will not be called after remote config values are downloaded. RCDownloadCallback callback - callback
testingDownloadExperimentInformation(RCVariantCallback rcVariantCallback) → Future<void>
Fetch information about the A/B tests in your server including test name, description and the current variant RCVariantCallback rcVariantCallback - called after all information is downloaded
testingDownloadVariantInformation(RCVariantCallback rcVariantCallback) → Future<void>
fetch a map of all A/B testing parameters (keys) and variants associated with it RCVariantCallback rcVariantCallback - called after all information is downloaded
testingEnrollIntoABExperiment(String experimentID) → Future<void>
Enroll into AB experiment (for all keys under that experiment) with experiment ID String experimentID - ID of experiment You can get experiment ID from testingDownloadExperimentInformation
testingEnrollIntoVariant(String keyName, String variantName, RCVariantCallback? rcVariantCallback) → Future<void>
Enroll user into a specific variant make sure testingDownloadVariantInformation is called to download variant info before calling this method. String keyName - name of key String variantName - name of variant RCVariantCallback rcVariantCallback - called after enrollment
testingExitABExperiment(String experimentID) → Future<void>
Exit from AB experiment (for all keys under that experiment) with experiment ID String experimentID - ID of experiment You can get experiment ID from testingDownloadExperimentInformation
testingGetAllExperimentInfo() → Future<Map<String, ExperimentInformation>>
make sure testingDownloadExperimentInformation is called to download experiment info before calling this method.
testingGetAllVariants() → Future<Map<String, List<String>>>
returns all variants make sure testingDownloadVariantInformation is called to download variant info before calling this method.
testingGetVariantsForKey(String key) → Future<List<String>>
returns variants for a specific key make sure testingDownloadVariantInformation is called to download variant info before calling this method. String key - name of key
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited