Table of Contents

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

callback ReportingObserverCallback
options ReportingObserverOptions

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

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks

After calling disconnect(), neither
TakeRecords() nor the records parameter of
the
ReportingObserver()
callback will return any reports. The associated observer will no longer be active.

-Reporting API

See also on MDN

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

GlobalObject.Undefined

None (GlobalObject.Undefined).

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()

Returns

List<Report>

An array of Report objects.

Remarks