-
public final class ViewPublicFactoriesKt
-
-
Method Summary
Modifier and Type Method Description final static DaroResponseAdaptermakeDaroResponseAdapter()Constructs the reference response adapter. final static DaroBidCandidateSelectormakeDaroBidCandidateSelector()Constructs the reference candidate selector. final static DaroAdInfomakeDaroAdInfo(DaroSelectedCandidate selected)Derives the legacy/billing DaroAdInfo view from a selected candidate. final static DaroCreativeLifecycleContextFactorymakeDaroCreativeLifecycleContextFactory()Constructs the reference creative-lifecycle context factory. final static DaroCreativeSessionmakeDaroCreativeSession(DaroCreativeLifecycleContext context, String sessionId)Constructs a creative session (the state machine) for one selected candidate's context. final static DaroCreativeLifecycleTrackermakeDaroCreativeLifecycleTracker(DaroCreativeSession session, DaroBillingReporter billingReporter)Constructs the per-session tracker bound to a session and a billingReporter. final static DaroBannerAdHandlemakeDaroBannerAdHandle(DaroCreativeLifecycleContext context, String sessionId, DaroBillingReporter billingReporter, Function0<Long> clock)Banner handle bound to context's rank-1 selection; nullif context is not BANNER.final static DaroNativeAdHandlemakeDaroNativeAdHandle(DaroCreativeLifecycleContext context, String sessionId, DaroBillingReporter billingReporter, Function0<Long> clock)Native handle (interface-only shell per the native-ownership decision). final static DaroInterstitialAdHandlemakeDaroInterstitialAdHandle(DaroCreativeLifecycleContext context, String sessionId, DaroBillingReporter billingReporter, Function0<Long> clock)Interstitial handle; show() issues the RENDER_STARTED attempt (RENDER_SUCCESS / RENDER_FAILED arrive from the real renderer callback). final static DaroRewardedAdHandlemakeDaroRewardedAdHandle(DaroCreativeLifecycleContext context, String sessionId, DaroBillingReporter billingReporter, Function0<Long> clock)Rewarded handle; show() issues the RENDER_STARTED attempt (RENDER_SUCCESS / RENDER_FAILED arrive from the real renderer callback). -
-
Method Detail
-
makeDaroResponseAdapter
final static DaroResponseAdapter makeDaroResponseAdapter()
Constructs the reference response adapter. Returns the public DaroResponseAdapter seam (the concrete DefaultDaroResponseAdapter stays internal). Callers adapt a decoded envelope into platform-neutral candidate metadata without exposing the concrete type.
-
makeDaroBidCandidateSelector
final static DaroBidCandidateSelector makeDaroBidCandidateSelector()
Constructs the reference candidate selector. Returns the public DaroBidCandidateSelector seam (the concrete DefaultDaroBidCandidateSelector stays internal). Phase 0/1 selection yields the rank-1 candidate only, wrapped in a DaroSelectedCandidate; this is the sole public path that can mint a selection.
-
makeDaroAdInfo
final static DaroAdInfo makeDaroAdInfo(DaroSelectedCandidate selected)
Derives the legacy/billing DaroAdInfo view from a selected candidate. Every field is derived from
selected.candidate(no rawbids.firstfallback);networkNamemaps from the candidate'sbidderName. The mapper stays internal; callers receive only the public value type.
-
makeDaroCreativeLifecycleContextFactory
final static DaroCreativeLifecycleContextFactory makeDaroCreativeLifecycleContextFactory()
Constructs the reference creative-lifecycle context factory. Returns the public DaroCreativeLifecycleContextFactory seam (the concrete DefaultDaroCreativeLifecycleContextFactory stays internal). The factory binds a DaroSelectedCandidate (the rank-1 guard) and a DaroAdRequestInput into an immutable attribution context;
contextId/createdAtare injected.
-
makeDaroCreativeSession
final static DaroCreativeSession makeDaroCreativeSession(DaroCreativeLifecycleContext context, String sessionId)
Constructs a creative session (the state machine) for one selected candidate's context. Returns the public DaroCreativeSession seam (the concrete DaroCreativeSessionMachine stays internal).
apply(event, at)follows the transition table with session-scoped, candidate-bound, by-eventType dedup and a terminal-state guard; theattimestamp is injected (no wall-clock in core).
-
makeDaroCreativeLifecycleTracker
final static DaroCreativeLifecycleTracker makeDaroCreativeLifecycleTracker(DaroCreativeSession session, DaroBillingReporter billingReporter)
Constructs the per-session tracker bound to a session and a billingReporter. Returns the public DaroCreativeLifecycleTracker seam (the concrete DefaultDaroCreativeLifecycleTracker stays internal). On an Accepted IMPRESSION it reports the impression then fires the burl billing notice once; on an Accepted CLICK it reports the click once; burl never fires on RENDER_SUCCESS, and no Duplicate/IgnoredAfterTerminal/Rejected transition bills.
-
makeDaroBannerAdHandle
final static DaroBannerAdHandle makeDaroBannerAdHandle(DaroCreativeLifecycleContext context, String sessionId, DaroBillingReporter billingReporter, Function0<Long> clock)
Banner handle bound to context's rank-1 selection;
nullif context is not BANNER.
-
makeDaroNativeAdHandle
final static DaroNativeAdHandle makeDaroNativeAdHandle(DaroCreativeLifecycleContext context, String sessionId, DaroBillingReporter billingReporter, Function0<Long> clock)
Native handle (interface-only shell per the native-ownership decision). Carries the same lifecycle/billing pipeline as banner/video; asset bind/viewability/click is gated production (docs/features/view-layer.md), not part of this scaffold. Returns
nullif context is not NATIVE.
-
makeDaroInterstitialAdHandle
final static DaroInterstitialAdHandle makeDaroInterstitialAdHandle(DaroCreativeLifecycleContext context, String sessionId, DaroBillingReporter billingReporter, Function0<Long> clock)
Interstitial handle; show() issues the RENDER_STARTED attempt (RENDER_SUCCESS / RENDER_FAILED arrive from the real renderer callback). Returns
nullif context is not INTERSTITIAL.
-
makeDaroRewardedAdHandle
final static DaroRewardedAdHandle makeDaroRewardedAdHandle(DaroCreativeLifecycleContext context, String sessionId, DaroBillingReporter billingReporter, Function0<Long> clock)
Rewarded handle; show() issues the RENDER_STARTED attempt (RENDER_SUCCESS / RENDER_FAILED arrive from the real renderer callback). Returns
nullif context is not REWARDED.
-
-
-
-