noteViewAdOpened method
void
noteViewAdOpened()
Records that a banner/native ad was opened or clicked, so the foreground event that follows is understood as a return FROM THAT AD (ADR-042).
A click on a banner opens the landing page and backgrounds the app. When
the user comes back, AppStateEventNotifier reports a perfectly ordinary
foreground return — indistinguishable, from the manager's point of view,
from the user coming back from their home screen. Showing an app-open ad
on it means the user closes an ad and is immediately handed another one.
Implementation
void noteViewAdOpened() {
_viewAdOpened = true;
_viewAdClosedAt = null;
}