ReportingObserver

open class ReportingObserver(callback: ReportingObserverCallback, options: ReportingObserverOptions = definedExternally)(source)

The ReportingObserver interface of the Reporting API allows you to collect and access reports.

MDN Reference

Constructors

Link copied to clipboard
constructor(callback: ReportingObserverCallback, options: ReportingObserverOptions = definedExternally)

Functions

Link copied to clipboard

The disconnect() method of the previously started observing from collecting reports.

Link copied to clipboard
fun observe()

The observe() method of the collecting reports in its report queue.

Link copied to clipboard

The takeRecords() method of the in the observer's report queue, and empties the queue.