IncomingCallEventListener
Kenan Genjac edited this page Feb 23, 2023
·
1 revision
Method executed once an incoming WebRTC call event is received.
-
incomingWebrtcCallEvent
:IncomingWebrtcCallEvent
- Event instance which contains incoming WebRTC call and the additional custom data received with the call.
N/A
class IncomingWebrtcCallAdapter: IncomingCallEventListener {
func onIncomingWebrtcCall(_ incomingWebrtcCallEvent: IncomingWebrtcCallEvent) {
let incomingWebrtcCall = incomingWebrtcCallEvent.incomingWebrtcCall
os_log("Received an incoming WebRTC call from: %s", incomingWebrtcCall.counterpart().identifer())
incomingWebrtcCall.accept()
}
}