NeomAdRegistry class

Dependency-free cross-module registry bridging UI surfaces (neom_timeline, neom_home, neom_books, neom_audio_player) with neom_ads without coupling content/media packages to google_mobile_ads or Web JS SDKs.

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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

buildAdSlotFn ↔ Widget Function({List<String> contextKeywords, required AdPlacement placement, bool preferHouseAd, int slotIndex})?
Renders a feed, sidebar, or banner slot combining Direct Sponsors, Google Ads (targeted to AppInUse), and Internal House Ads.
getter/setter pair
buildAudioCompanionCardFn ↔ Widget Function({bool compact, required Duration duration, VoidCallback? onSkip, required Duration position, required AudioAdBreakSpec spec})?
Renders the foreground companion card (synced video or campaign artwork + skip countdown + CTA + ad-free upgrade banner) during an audio ad break.
getter/setter pair
buildFeatureCarouselFn ↔ Widget Function({int slotIndex})?
Renders a horizontal multi-card menu feature discovery carousel.
getter/setter pair
buildReaderBannerStripFn ↔ Widget Function({List<String> contextKeywords})?
Renders a slim 50px collapsible reader banner outside the PDF canvas.
getter/setter pair
buildReaderPageBreakOverlayFn ↔ Widget Function({String? contentTitle, List<String> contextKeywords, required VoidCallback onContinue})?
Renders a page-milestone ad break modal (video/image/house ad) inside NeomRoomWrapper.frontalWidget (already wrapped in PointerInterceptor).
getter/setter pair
getHouseAdsFn ↔ List<HouseAdItem> Function({AdPlacement? placement})?
Returns curated HouseAdItem entries for the current AppInUse.
getter/setter pair
isRegistered → bool
no setter
onAudioAdTrackingEventFn ↔ void Function(AudioAdBreakSpec spec, String event)?
Reports VAST / telemetry lifecycle events (impression, firstQuartile, midpoint, thirdQuartile, complete, skip, click).
getter/setter pair
resolveAudioAdBreakFn ↔ Future<AudioAdBreakSpec?> Function({List<String> contextKeywords, required AdPlacement placement})?
Resolves the next audio ad break (VAST Audio / Sponsor / House Audio Spot) for NeomAudioHandler or BookNarrationController.
getter/setter pair
shouldShowExternalAds → bool
no setter
shouldShowExternalAdsFn ↔ bool Function()?
Whether external programmatic ads (Google AdMob / GPT / AdSense / IMA VAST) should be shown to the current user (false for active paid subscribers & staff).
getter/setter pair
shouldShowHouseAds → bool
no setter
shouldShowHouseAdsFn ↔ bool Function()?
Whether internal platform feature-discovery House Ads should be shown.
getter/setter pair
showRewardedUnlockFn ↔ Future<bool> Function({BuildContext? context, List<String> contextKeywords, required AdPlacement placement})?
Displays a rewarded video/interactive ad break and returns true when the user earns the reward (e.g. +10 min reading or +30 min listening).
getter/setter pair

Static Methods

reset() → void
Clears all callbacks (useful in isolated widget/unit tests).