isFeatureEnabled

open override fun isFeatureEnabled(distinctId: String, key: String, defaultValue: Boolean, groups: Map<String, String>?, personProperties: Map<String, Any?>?, groupProperties: Map<String, Map<String, Any?>>?): Boolean

Returns if a feature flag is enabled, the feature flag must be a Boolean Docs https://posthog.com/docs/feature-flags and https://posthog.com/docs/experiments

Parameters

distinctId

the distinctId

key

the Key

defaultValue

the default value if not found, false if not given