flagAsPendingResult
fun flagAsPendingResult(name: String, useResultCache: Boolean = true): PendingResult<FeatureFlag>(source)
Deprecated
Use flagPendingResult instead
Replace with
flagPendingResult(name, useResultCache)Content copied to clipboard
Gets and evaluates a feature flag and returns it as a PendingResult. The PrivacyManager.Feature.FEATURE_FLAGS must be enabled or this method will return null.
Return
an instance of PendingResult<FeatureFlag>.
Parameters
name
The flag name
useResultCache
If the result cache should be used or not when the flag fails to resolve or is not found.