get Feature Flag Payload
abstract fun getFeatureFlagPayload(distinctId: String, key: String, defaultValue: Any? = null, groups: Map<String, String>? = null, personProperties: Map<String, Any?>? = null, groupProperties: Map<String, Map<String, Any?>>? = null): Any?
Returns the feature flag payload Docs https://posthog.com/docs/feature-flags and https://posthog.com/docs/experiments
Parameters
distinct Id
the distinctId
key
the Key
default Value
the default value if not found
Returns the feature flag payload Docs https://posthog.com/docs/feature-flags and https://posthog.com/docs/experiments
Return
the feature flag payload or null if not found
Parameters
distinct Id
the distinctId
key
the Key
open fun getFeatureFlagPayload(distinctId: String, key: String, options: PostHogFeatureFlagOptions): Any?
Returns the feature flag payload Docs https://posthog.com/docs/feature-flags and https://posthog.com/docs/experiments
Parameters
distinct Id
the distinctId
key
the Key
options
the feature flag options containing defaultValue, groups, personProperties, and groupProperties