FrequencyCapPolicy class abstract interface

Decides whether a full-screen slot may show another impression, and records impressions (per-slot caps + a global cross-format cap, ADR-009).

Implementers

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

allowsNow(String slot) → bool
The same answer, synchronously, from what is known right now — a hint for UI (FullScreenAdController.canShow). canShow is the authority.
canShow(String slot) → Future<bool>
Whether slot may show now (its own cap AND the global cap).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordImpression(String slot) → Future<void>
Records an impression for slot (and globally).
toString() → String
A string representation of this object.
inherited

Operators

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