ReportingObserver.observe()

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The observe() method of the ReportingObserver interface instructs a reporting observer to start collecting reports in its report queue.

Syntax

reportingObserverInstance.observe()

Examples

let options = {
  types: ['deprecation'],
  buffered: true
}

let observer = new ReportingObserver(function(reports, observer) {
  reportBtn.onclick = () => displayReports(reports);
}, options);

observer.observe()

Specifications

Specification Status Comment
Unknown
The definition of 'ReportingObserver.observe()' in that specification.
Unknown Ā 

Browser compatibility

No compatibility data found. Please contribute data for "api.ReportingObserver.observe" (depth: 1) to the MDN compatibility data repository.

See also