Package 

Interface IFeatureManager


  • 
    public interface IFeatureManager
    
                        

    Resolves 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 Boolean isEnabled(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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.