-
public interface IFeatureManagerResolves backend-driven FeatureFlag state for the current device run and exposes the enabled set to the rest of the SDK. State is derived from cached/remote config and FeatureActivationMode latching rules.
-
-
Method Summary
Modifier and Type Method Description abstract BooleanisEnabled(FeatureFlag feature)Whether feature is enabled for the current run, after applying remote config and FeatureActivationMode latching rules. abstract List<String>enabledFeatureKeys()The canonical keys of feature flags that are currently enabled for this device run, after applying remote config, FeatureActivationMode latching rules, and any local test overrides. abstract Map<String, JsonObject>remoteFeatureFlagMetadata()Per-flag payloads from com.onesignal.core.internal.backend.IFeatureFlagsBackendService. -
-
Method Detail
-
isEnabled
abstract Boolean isEnabled(FeatureFlag feature)
Whether feature is enabled for the current run, after applying remote config and FeatureActivationMode latching rules.
-
enabledFeatureKeys
abstract List<String> enabledFeatureKeys()
The canonical keys of feature flags that are currently enabled for this device run, after applying remote config, FeatureActivationMode latching rules, and any local test overrides. Order is not guaranteed.
Empty when no flags have been resolved yet (e.g. before the first refresh on a fresh install) or when none are enabled.
-
remoteFeatureFlagMetadata
abstract Map<String, JsonObject> remoteFeatureFlagMetadata()
Per-flag payloads from com.onesignal.core.internal.backend.IFeatureFlagsBackendService. Each value is a JsonObject so callers can decode nested fields or map to
@Serializabletypes.nullwhen no metadata has been stored yet (ConfigModel.sdkRemoteFeatureFlagMetadata null/blank).
-
-
-
-