-
public final class RemoteFeatureSwitchKt
-
-
Method Summary
Modifier and Type Method Description final static RemoteConfigDocumentremoteConfiguration(SdkCore $self)The remote configuration this SDK instance was initialized with, or RemoteConfigDocument.EMPTY for an instance that carries none. final static BooleanisFeatureDisabledRemotely(SdkCore $self, String featureKey, String featureName)Reports whether a feature was switched off from the dashboard, so that enable()can return without registering it.-
-
Method Detail
-
remoteConfiguration
final static RemoteConfigDocument remoteConfiguration(SdkCore $self)
The remote configuration this SDK instance was initialized with, or RemoteConfigDocument.EMPTY for an instance that carries none. Every accessor of an empty document answers
null, so callers fall back to the settings the application passed in code.
-
isFeatureDisabledRemotely
final static Boolean isFeatureDisabledRemotely(SdkCore $self, String featureKey, String featureName)
Reports whether a feature was switched off from the dashboard, so that
enable()can return without registering it. Only an explicitfalsedisables a feature: an absent key, an unusable value, or no remote configuration at all leaves the application in control.- Parameters:
featureKey- the key of the feature inside thefeaturessection, e.g.featureName- the human readable name used in the log explaining the skip.
-
-
-
-