Class NetworkDiagnostics
- Object
-
- NetworkDiagnostics
-
public final class NetworkDiagnostics extends Object
Represents an object where network diagnostics are accessed.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOnIsNetworkRelaysUnreachableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNetworkRelaysUnreachableChanged events.void
addOnIsNetworkUnavailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNetworkUnavailableChanged events.void
addOnNetworkReceiveQualityChangedListener(DiagnosticQualityChangedListener listener)
Adds the specified listener to receive OnNetworkReceiveQualityChanged events.void
addOnNetworkReconnectionQualityChangedListener(DiagnosticQualityChangedListener listener)
Adds the specified listener to receive OnNetworkReconnectionQualityChanged events.void
addOnNetworkSendQualityChangedListener(DiagnosticQualityChangedListener listener)
Adds the specified listener to receive OnNetworkSendQualityChanged events.protected void
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.NetworkDiagnosticValues
getLatestDiagnostics()
Stored latest values for all known network diagnostics.void
removeOnIsNetworkRelaysUnreachableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNetworkRelaysUnreachableChanged events.void
removeOnIsNetworkUnavailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNetworkUnavailableChanged events.void
removeOnNetworkReceiveQualityChangedListener(DiagnosticQualityChangedListener listener)
Removes the specified listener to receive OnNetworkReceiveQualityChanged events.void
removeOnNetworkReconnectionQualityChangedListener(DiagnosticQualityChangedListener listener)
Removes the specified listener to receive OnNetworkReconnectionQualityChanged events.void
removeOnNetworkSendQualityChangedListener(DiagnosticQualityChangedListener listener)
Removes the specified listener to receive OnNetworkSendQualityChanged events.
-
-
-
Method Detail
-
finalize
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.- Overrides:
finalize
in classObject
-
addOnIsNetworkUnavailableChangedListener
public void addOnIsNetworkUnavailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNetworkUnavailableChanged events. A boolean diagnostic indicating that there is no network available.
-
removeOnIsNetworkUnavailableChangedListener
public void removeOnIsNetworkUnavailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNetworkUnavailableChanged events. A boolean diagnostic indicating that there is no network available.
-
addOnIsNetworkRelaysUnreachableChangedListener
public void addOnIsNetworkRelaysUnreachableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNetworkRelaysUnreachableChanged events. A boolean diagnostic indicating that although network available, it failed to reach ACS relays.
-
removeOnIsNetworkRelaysUnreachableChangedListener
public void removeOnIsNetworkRelaysUnreachableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNetworkRelaysUnreachableChanged events. A boolean diagnostic indicating that although network available, it failed to reach ACS relays.
-
addOnNetworkReconnectionQualityChangedListener
public void addOnNetworkReconnectionQualityChangedListener(DiagnosticQualityChangedListener listener)
Adds the specified listener to receive OnNetworkReconnectionQualityChanged events. Connection was lost, reconnecting to network in GOOD, POOR or BAD scale.
-
removeOnNetworkReconnectionQualityChangedListener
public void removeOnNetworkReconnectionQualityChangedListener(DiagnosticQualityChangedListener listener)
Removes the specified listener to receive OnNetworkReconnectionQualityChanged events. Connection was lost, reconnecting to network in GOOD, POOR or BAD scale.
-
addOnNetworkReceiveQualityChangedListener
public void addOnNetworkReceiveQualityChangedListener(DiagnosticQualityChangedListener listener)
Adds the specified listener to receive OnNetworkReceiveQualityChanged events. Received an indicator regarding incoming network quality in GOOD, POOR or BAD scale.
-
removeOnNetworkReceiveQualityChangedListener
public void removeOnNetworkReceiveQualityChangedListener(DiagnosticQualityChangedListener listener)
Removes the specified listener to receive OnNetworkReceiveQualityChanged events. Received an indicator regarding incoming network quality in GOOD, POOR or BAD scale.
-
addOnNetworkSendQualityChangedListener
public void addOnNetworkSendQualityChangedListener(DiagnosticQualityChangedListener listener)
Adds the specified listener to receive OnNetworkSendQualityChanged events. Received an indicator regarding outgoing network quality in GOOD, POOR or BAD scale.
-
removeOnNetworkSendQualityChangedListener
public void removeOnNetworkSendQualityChangedListener(DiagnosticQualityChangedListener listener)
Removes the specified listener to receive OnNetworkSendQualityChanged events. Received an indicator regarding outgoing network quality in GOOD, POOR or BAD scale.
-
getLatestDiagnostics
public NetworkDiagnosticValues getLatestDiagnostics()
Stored latest values for all known network diagnostics.
-
-