OptiViewAds
constructor(config: OptiViewAdsConfig, renderer: AdRenderer, manifestSource: ManifestSource, ticker: SchedulerTicker, scope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.Default), clock: Clock = systemClock)
Parameters
config
Fixed configuration for the lifetime of the instance.
renderer
Plays the ads; the Android runtime's OverlayAdRenderer.
manifestSource
Fetches and polls the Break Manifest; normally HttpManifestSource.
ticker
Drives break scheduling; normally CoroutineSchedulerTicker.
scope
The coroutine scope the SDK works in; the default is fine for apps.
clock
The time source; the default is the system clock (tests inject a fake).