DecisionEngine class
Decides which Digia-owned campaign a signal shows: holds signals until ready, evaluates them one at a time, runs waits, and hands each winner to the injected router.
Constructors
- DecisionEngine({required DecisionFacts facts, required RouteCampaign route, required int nowMs()})
Properties
Methods
-
cancelWaits(
RuleSignal signal) → void -
Ends the waits
signalcancels, before it is queued, so a wait cannot end while the signal is in flight. -
close(
) → void - Loading failed or the SDK was reset: drops what was held and holds again.
-
dropHeld(
) → void - The app went to the background before ready: drops what was held.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - The app left the screen: waits keep counting but do not fire.
-
ready(
) → void - The campaigns and user context are loaded: replays the held signals.
-
reset(
) → void - The session ended: drops held signals and ends every wait.
-
resume(
) → void - The app is back: fires every wait that ended meanwhile.
-
send(
RuleSignal signal) → void - Held until ready, then evaluated.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited