Skip to content

IncomingCall

Adnan Arnautović edited this page Jan 26, 2023 · 1 revision

accept()

Description

Accepts an incoming call, which ends up in both parties receiving established event, after accept is processed by Infobip WebRTC platform.

Arguments

  • none

Returns

  • none

Example

incomingCall.accept()

accept(_ callOptions)

Description

Accepts the incoming call with additional call options, which ends up in both parties receiving the established event, after accept is processed by Infobip WebRTC platform.

Arguments

  • callOptions: CallOptions - Call options to be used when accepting an incoming call.

Returns

  • none

Example

let callOptions = CallOptions(video: true)
incomingCall.accept(callOptions)

decline()

Description

Declines the incoming call, which ends up in both parties receiving the hangup event, after decline is processed by Infobip WebRTC platform.

Arguments

  • none

Returns

  • none

Example

incomingCall.decline()
Clone this wiki locally