Target

constructor(variantKey: String?, localeCountry: String?, localeLanguage: String?, isReturningUser: Boolean?, isPrivacyProEligible: Boolean?, entitlement: String?, minSdkVersion: Int?)

Parameters

variantKey

The experiment variant key to target (e.g., "mc"). When specified, only users assigned to this variant will match. Used for A/B testing and experiment targeting.

localeCountry

The ISO 3166-1 alpha-2 country code to target (e.g., "US", "FR"). Matching is case-insensitive.

localeLanguage

The ISO 639-1 language code to target (e.g., "en", "fr"). Matching is case-insensitive.

isReturningUser

When true, targets users who have reinstalled the app. When false, targets new users only.

isPrivacyProEligible

When true, targets users eligible for Privacy Pro subscription. When false, targets users not eligible for Privacy Pro.

entitlement

The subscription Product entitlement string. When specified, only users with this active entitlement will match. Matching is case-insensitive.

minSdkVersion

The minimum Android SDK version required. Devices running an SDK version greater than or equal to this value will match.