SchedulerTicker

interface SchedulerTicker

Drives the portable BreakScheduler.tick() on a fixed cadence.

The core :ads-sdk-core scheduler intentionally has no internal timer (so it steps deterministically under the conformance harness), whereas the web scheduler runs an internal 250 ms setInterval. On Android the platform supplies that cadence — a coroutine delay loop, a Handler, or a Choreographer — behind this seam, so the orchestrator's timing wiring stays identical to the web reference.

Inheritors

Functions

Link copied to clipboard
abstract fun start(onTick: () -> Unit)

Begin ticking; onTick is invoked on each interval until stop.

Link copied to clipboard
abstract fun stop()

Stop ticking. Safe to call when not started.