addIceCandidate method

Future addIceCandidate(candidate, [ VoidCallback successCallback, RtcPeerConnectionErrorCallback failureCallback ])

Source

Future addIceCandidate(candidate,
    [VoidCallback successCallback,
    RtcPeerConnectionErrorCallback failureCallback]) {
  if (candidate != null &&
      successCallback == null &&
      failureCallback == null) {
    return _blink.BlinkRTCPeerConnection.instance
        .addIceCandidate_Callback_1_(this, candidate);
  }
  if ((failureCallback is RtcPeerConnectionErrorCallback) &&
      (successCallback is VoidCallback) &&
      (candidate is RtcIceCandidate)) {
    return _blink.BlinkRTCPeerConnection.instance.addIceCandidate_Callback_3_(
        this, candidate, successCallback, failureCallback);
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/RtcPeerConnection/addIceCandidate.html