Class ReportingObserver
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The ReportingObserver interface of the Reporting API allows you to collect and access reports.
[Value("ReportingObserver")]
public class ReportingObserver
- Inheritance
-
ReportingObserver
- Inherited Members
Remarks
Constructors
ReportingObserver()
public ReportingObserver()
ReportingObserver(ReportingObserverCallback, ReportingObserverOptions)
The ReportingObserver() constructor of the Reporting API creates a new
ReportingObserver object instance, which can be used to collect and
access reports.
public ReportingObserver(ReportingObserverCallback callback, ReportingObserverOptions options = null)
Parameters
callbackReportingObserverCallbackoptionsReportingObserverOptions
Remarks
Methods
Disconnect()
The disconnect() method of the
ReportingObserver interface stops a reporting observer that had
previously started observing from collecting reports.
[Value("disconnect")]
public GlobalObject.Undefined Disconnect()
Returns
Remarks
After calling disconnect(), neither
TakeRecords() nor the records parameter of
theReportingObserver()
callback will return any reports. The associated observer will no longer be active.
Observe()
The observe() method of the
ReportingObserver interface instructs a reporting observer to start
collecting reports in its report queue.
[Value("observe")]
public GlobalObject.Undefined Observe()
Returns
Remarks
TakeRecords()
The takeRecords() method of the
ReportingObserver interface returns the current list of reports contained
in the observer's report queue, and empties the queue.
[Value("takeRecords")]
public List<Report> TakeRecords()