The ReportingObserver interface of the Reporting API allows you collect and access reports.
The ReportingObserver interface of the Reporting API allows you collect and access reports.
Constructor.
The ReportingObserver() constructor of the Reporting API creates a new web.ReportingObserver
object instance, which can be used to collect and access reports.
callback
A callback function that runs when the observer starts to collect reports (i.e. via web.ReportingObserver.observe()
). The callback function is given two parameters:
reports: A sequence of web.Report
objects representing the reports collected in the observer's report queue. This is probably the most common way to retrieve the reports.
observer: A reference to the same ReportingObserver object, allowing for recursive report collection, etc.
options Optional
An web.ReportingObserverOptions
object allowing you to set the options for creating the object. The available options are:
types: An array of strings representing the types of report to be collected by this observer. Available types include deprecation, intervention, and crash (although this last type usually isn't retrievable via a ReportingObserver). buffered: a boolean that defines whether the reports that were generated before the observer was able to be created should be observable (true) or not (false).
See also: https://developer.mozilla.org/en-US/docs/Web/API/ReportingObserver/ReportingObserver
Constructor. The ReportingObserver() constructor of the Reporting API creates a new `web.ReportingObserver` object instance, which can be used to collect and access reports. callback A callback function that runs when the observer starts to collect reports (i.e. via `web.ReportingObserver.observe()`). The callback function is given two parameters: reports: A sequence of `web.Report` objects representing the reports collected in the observer's report queue. This is probably the most common way to retrieve the reports. observer: A reference to the same ReportingObserver object, allowing for recursive report collection, etc. options Optional An `web.ReportingObserverOptions` object allowing you to set the options for creating the object. The available options are: types: An array of strings representing the types of report to be collected by this observer. Available types include deprecation, intervention, and crash (although this last type usually isn't retrievable via a ReportingObserver). buffered: a boolean that defines whether the reports that were generated before the observer was able to be created should be observable (true) or not (false). See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReportingObserver/ReportingObserver`
(disconnect this)
Method.
The disconnect() method of the web.ReportingObserver
interface
a reporting observer that had previously started observing from
reports.
reportingObserverInstance.disconnect()
See also: https://developer.mozilla.org/en-US/docs/Web/API/ReportingObserver/disconnect
Method. The disconnect() method of the `web.ReportingObserver` interface a reporting observer that had previously started observing from reports. `reportingObserverInstance.disconnect()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReportingObserver/disconnect`
(observe this)
Method.
The observe() method of the web.ReportingObserver
interface
a reporting observer to start collecting reports in its report
reportingObserverInstance.observe()
See also: https://developer.mozilla.org/en-US/docs/Web/API/ReportingObserver/observe
Method. The observe() method of the `web.ReportingObserver` interface a reporting observer to start collecting reports in its report `reportingObserverInstance.observe()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReportingObserver/observe`
(take-records this)
Method.
The takeRecords() method of the web.ReportingObserver
interface
the current list of reports contained in the observer's report
and empties the queue.
reportingObserverInstance.takeRecords()
See also: https://developer.mozilla.org/en-US/docs/Web/API/ReportingObserver/takeRecords
Method. The takeRecords() method of the `web.ReportingObserver` interface the current list of reports contained in the observer's report and empties the queue. `reportingObserverInstance.takeRecords()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ReportingObserver/takeRecords`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close