Skip to content

IncomingCallEventListener

Kenan Genjac edited this page Feb 23, 2023 · 1 revision



onIncomingWebrtcCall(incomingWebrtcCallEvent)

Description

Method executed once an incoming WebRTC call event is received.

Arguments

  • incomingWebrtcCallEvent: IncomingWebrtcCallEvent - Event instance which contains incoming WebRTC call and the additional custom data received with the call.

Returns

  • N/A

Example

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()
    }
}

Tutorials

Migration guides

Reference documentation

Clone this wiki locally