getFeatureFlagPayload

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?
open fun getFeatureFlagPayload(distinctId: String, key: String, defaultValue: Any?): Any?

Returns the feature flag payload 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


open fun getFeatureFlagPayload(distinctId: String, key: String): Any?

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

distinctId

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

distinctId

the distinctId

key

the Key

options

the feature flag options containing defaultValue, groups, personProperties, and groupProperties