-
Notifications
You must be signed in to change notification settings - Fork 0
CallDelegate
Adnan Arnautović edited this page Jan 26, 2023
·
1 revision
onRinging(_ callRingingEvent: CallRingingEvent)
onEarlyMedia(_ callEarlyMediaEvent: CallEarlyMediaEvent)
onEstablished(_ callEstablishedEvent: CallEstablishedEvent)
onUpdated(_ callUpdatedEvent: CallUpdatedEvent)
onHangup(_ callHangupEvent: CallHangupEvent)
onError(_ callErrorEvent: CallErrorEvent)
Delegate function executed when an outgoing call starts ringing on the called device.
-
callRingingEvent
:CallRingingEvent
- Instance of theCallRingingEvent
.
none
func onRinging(_ callRingingEvent: CallRingingEvent) {
os_log("Ringing...")
}
Delegate function executed when there is a ringback tone from the other side. It is triggered only when
the callPhoneNumber
method is used.
-
callEarlyMediaEvent
:CallEarlyMediaEvent
- Instance of theCallEarlyMediaEvent
.
none
func onEarlyMedia(_ callEarlyMediaEvent: CallEarlyMediaEvent) {
os_log("Ringback tone received.")
}
Delegate function executed when call is established and media is ready to be exchanged.
-
callEstablishedEvent
:CallEstablishedEvent
- Instance of theCallEstablishedEvent
.
none
func onEstablished(_ callEstablishedEvent: CallEstablishedEvent) {
os_log("Call established.")
}
Delegate function executed when some changes occurred during the call (e.g. user toggled video or screen share).
-
callUpdatedEvent
:CallUpdatedEvent
- Instance of theCallUpdatedEvent
.
none
func onUpdated(_ callUpdatedEvent: CallUpdatedEvent) {
os_log("Call updated.")
}
Delegate function executed when call is hung up.
-
callHangupEvent
:CallHangupEvent
- Instance of theCallHangupEvent
.
none
func onHangup(_ callHangupEvent: CallHangupEvent) {
os_log("Call finished. Status: %s", callHangupEvent.errorCode.name)
}
Delegate function executed when call is ended due to error.
-
callErrorEvent
:CallErrorEvent
- Instance of theCallErrorEvent
.
none
func onError(_ callErrorEvent: CallErrorEvent) {
os_log("Call ended, reason: %s", callErrorEvent.reason.description)
}
- Prerequisites
- Events
- InfobipRTC
- Call
- IncomingCall
- OutgoingCall
- CallRequest
- CallConversationsRequest
- CallOptions
- VideoOptions
- VideoTrack
- RecordingOptions
- CameraOrientation
- CallPhoneNumberOptions
- CallStatus
- CallError
- DTMFError
- ErrorCode
- RTCUser
- CallDelegate
- CallRingingEvent
- CallEstablishedEvent
- CallUpdatedEvent
- CallHangupEvent
- CallErrorEvent
- InfobipSimulator
- Conference
- ConferenceDelegate
- ConferenceRequest
- ConferenceStatus
- ConferenceError
- ConferenceUser
- NetworkQuality
- NetworkQualityChangedEvent
- NetworkQualityDelegate