onIceConnectionStateChanged method

void onIceConnectionStateChanged(
  1. String state
)

Called when ICE connection state changes.

Implementation

void onIceConnectionStateChanged(String state) {
  if (state == 'disconnected') {
    _emit(SdkWarningCode.iceConnectivityLost);
  }
}