AdsRemoteConfigOptions class

Controls how AdsBootstrap obtains feature flags.

Firebase itself must be initialized by the host app before the package is initialized. The package owns Remote Config settings, defaults, fetching, activation, and merging those flags with the supplied IDs.

Constructors

AdsRemoteConfigOptions({bool enabled = true, Map<String, String> keys = const {}, Duration fetchTimeout = const Duration(seconds: 10), Duration minimumFetchInterval = const Duration(hours: 6), void onFetched(FirebaseRemoteConfig remoteConfig)?})
const
AdsRemoteConfigOptions.disabled()
const

Properties

enabled → bool
Set to false to use the supplied IDs and local defaults only.
final
fetchTimeout → Duration
final
hashCode → int
The hash code for this object.
no setterinherited
keys → Map<String, String>
Maps the package's standard keys to the keys in the host app's project. Unspecified keys use AdRemoteKeys' standard names.
final
minimumFetchInterval → Duration
final
onFetched → void Function(FirebaseRemoteConfig remoteConfig)?
Called after a successful fetch and activation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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