install

fun install(manager: AdManager, scope: CoroutineScope, capacity: Int = DEFAULT_CAPACITY)(source)

Subscribes to manager's event stream and retains the most recent capacity events. Installing twice replaces the previous subscription and clears the buffer.

Parameters

scope

owns the collector's lifetime. Required rather than internally created so the recorder never holds an unscoped coroutine.