NetworkDiagnostics Class
- java.
lang. Object - com.
azure. android. communication. calling. NetworkDiagnostics
- com.
public class NetworkDiagnostics
Represents an object where network diagnostics are accessed.
Method Summary
Modifier and Type | Method and Description |
---|---|
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. |
void |
addOnIsNetworkUnavailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNetworkUnavailableChanged events. A boolean diagnostic indicating that there is no network available. |
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. |
void |
addOnNetworkReconnectionQualityChangedListener(DiagnosticQualityChangedListener listener)
Adds the specified listener to receive OnNetworkReconnectionQualityChanged events. Connection was lost, reconnecting to network in GOOD, POOR or BAD scale. |
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. |
void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
Network |
getLatestDiagnostics()
Stored latest values for all known network diagnostics. |
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. |
void |
removeOnIsNetworkUnavailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNetworkUnavailableChanged events. A boolean diagnostic indicating that there is no network available. |
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. |
void |
removeOnNetworkReconnectionQualityChangedListener(DiagnosticQualityChangedListener listener)
Removes the specified listener to receive OnNetworkReconnectionQualityChanged events. Connection was lost, reconnecting to network in GOOD, POOR or BAD scale. |
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. |
Method Details
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.
Parameters:
addOnIsNetworkUnavailableChangedListener
public void addOnIsNetworkUnavailableChangedListener(DiagnosticFlagChangedListener listener)
Adds the specified listener to receive OnIsNetworkUnavailableChanged events. A boolean diagnostic indicating that there is no network available.
Parameters:
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.
Parameters:
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.
Parameters:
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.
Parameters:
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.
getLatestDiagnostics
public NetworkDiagnosticValues getLatestDiagnostics()
Stored latest values for all known network diagnostics.
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.
Parameters:
removeOnIsNetworkUnavailableChangedListener
public void removeOnIsNetworkUnavailableChangedListener(DiagnosticFlagChangedListener listener)
Removes the specified listener to receive OnIsNetworkUnavailableChanged events. A boolean diagnostic indicating that there is no network available.
Parameters:
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.
Parameters:
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.
Parameters:
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.
Parameters: