NetworkDiagnostics Class

  • java.lang.Object
    • com.azure.android.communication.calling.NetworkDiagnostics

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.

NetworkDiagnosticValues 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:

listener

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:

listener

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:

listener

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:

listener

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:

listener

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:

listener

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:

listener

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:

listener

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:

listener

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:

listener

Applies to