private void RegisterIceCandidateCallback() { _webRtcIceCandidateCallback = (handle, candidate, _) => { IceCandidate?.Invoke(this, new WebRTCIceCandidateEventArgs(candidate)); }; NativeWebRTC.SetIceCandidateCb(Handle, _webRtcIceCandidateCallback). ThrowIfFailed("Failed to set ice candidate callback."); }