OfferingEvaluationContext class

Immutable inputs used to evaluate Inappify offering rules.

Platform adapters build this value from their authoritative snapshot. Rule evaluation receives the value explicitly and therefore does not depend on JavaScript globals, MethodChannel values, or store-specific SDK classes.

Annotations

Constructors

OfferingEvaluationContext({required String country, required String platform, required String appVersion, String sdkVersion = '', int? appId, Map<String, String?> customAttributes = const <String, String?>{}})
Creates a complete offering-rule evaluation context.

Properties

appId → int?
Inappify application identifier used by app-configuration rules.
final
appVersion → String
Host application version used by app-version rules.
final
country → String
ISO-style country code used by country rules.
final
customAttributes → Map<String, String?>
Current customer attributes keyed by their Inappify identifier.
final
hashCode → int
The hash code for this object.
no setterinherited
platform → String
Stable platform identifier: web, android, ios, or an empty string.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdkVersion → String
Inappify SDK version used by sdk_version targeting rules.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited