DwellEntry class

Measures how long an experience was on screen — the dwell_ms recorded on dismiss/complete analytics events.

markViewed stamps the view time keyed by cepCampaignId; consumeDwellMs reads the elapsed time and forgets the mark in one step (the typical dismiss path), while elapsedMs peeks without forgetting.

Mirrors Android's DwellTracker.

Constructors

DwellEntry({int accumulatedMs = 0, int? lastResumedAtMs})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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