NetworkDiagnostics interface
Network Diagnostics
Methods
get |
Get the latest known Network diagnostics |
off("diagnostic |
Unsubscribe function for diagnosticChanged events |
on("diagnostic |
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