FrequencyPolicy class

A campaign's server-configured frequency policy. Any field may be absent; hasConstraint is false when none are set, in which case the campaign is never capped.

Constructors

FrequencyPolicy({int? maxTotal, FrequencyWindow? maxPerWindow, String? stopOn})
const

Properties

hasConstraint bool
True when the policy carries at least one active constraint.
no setter
hashCode int
The hash code for this object.
no setterinherited
maxPerWindow FrequencyWindow?
final
maxTotal int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopOn String?
The only recognised value is experienceCompleted — permanently stop the campaign once it reports a "Digia Experience Completed".
final

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic>? json) FrequencyPolicy?
Parses the campaign-level frequency block, or null when it is absent or carries no recognised constraint (mirrors Android's parsePolicy).