NetworkDiagnostics interface

Network Diagnostics

Methods

getLatest()

Get the latest known Network diagnostics

off("diagnosticChanged", (args: NetworkDiagnosticChangedEventArgs) => void)

Unsubscribe function for diagnosticChanged events

on("diagnosticChanged", (args: NetworkDiagnosticChangedEventArgs) => void)

Subscribe function for diagnosticChanged event

Method Details

getLatest()

Get the latest known Network diagnostics

function getLatest(): LatestNetworkDiagnostics

Returns

off("diagnosticChanged", (args: NetworkDiagnosticChangedEventArgs) => void)

Unsubscribe function for diagnosticChanged events

function off(event: "diagnosticChanged", listener: (args: NetworkDiagnosticChangedEventArgs) => void)

Parameters

event

"diagnosticChanged"

event name

listener

(args: NetworkDiagnosticChangedEventArgs) => void

callback fn that was used to unsubscribe to this event

on("diagnosticChanged", (args: NetworkDiagnosticChangedEventArgs) => void)

Subscribe function for diagnosticChanged event

function on(event: "diagnosticChanged", listener: (args: NetworkDiagnosticChangedEventArgs) => void)

Parameters

event

"diagnosticChanged"

event name

listener

(args: NetworkDiagnosticChangedEventArgs) => void

callback fn that will be called when a diagnostic has changed