flag

suspend fun flag(name: String, useResultCache: Boolean = true): Result<FeatureFlag>

Gets and evaluates a feature flag. The PrivacyManager.Feature.FEATURE_FLAGS must be enabled or this method will return an error.

Return

an instance of Result<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.