CallDelegate
public protocol CallDelegate : AnyObject
-
onDtmfReceived(call:Default implementationdtmf: ) Callback for being notified of received DTMFs.
Default Implementation
Declaration
Swift
func onDtmfReceived(call: Call, dtmf: Int)Parameters
callLinphoneCall object that received the dtmf
dtmfThe ascii code of the dtmf
-
onGoclearAckSent(call:Default implementation) GoClear ACK sent callback.
Default Implementation
Declaration
Swift
func onGoclearAckSent(call: Call)Parameters
callthe LinphoneCall on which the GoClear ACK was sent.
-
onEncryptionChanged(call:Default implementationon: authenticationToken: ) Call encryption changed callback.
Default Implementation
Declaration
Swift
func onEncryptionChanged(call: Call, on: Bool, authenticationToken: String)Parameters
callLinphoneCall object whose encryption is changed.
onWhether encryption is activated.
authenticationTokenAn authentication_token, currently set for ZRTP kind of encryption only.
-
onSendMasterKeyChanged(call:Default implementationsendMasterKey: ) Call send master key changed callback.
Default Implementation
Declaration
Swift
func onSendMasterKeyChanged(call: Call, sendMasterKey: String)Parameters
callLinphoneCall object whose encryption is changed.
-
onReceiveMasterKeyChanged(call:Default implementationreceiveMasterKey: ) Call receive master key changed callback.
Default Implementation
Declaration
Swift
func onReceiveMasterKeyChanged(call: Call, receiveMasterKey: String)Parameters
callLinphoneCall object whose encryption is changed.
-
onInfoMessageReceived(call:Default implementationmessage: ) Callback for receiving info messages.
Default Implementation
Declaration
Swift
func onInfoMessageReceived(call: Call, message: InfoMessage)Parameters
callLinphoneCall whose info message belongs to.
messageLinphoneInfoMessage object.
-
onStateChanged(call:Default implementationstate: message: ) -
onStatsUpdated(call:Default implementationstats: ) -
onTransferStateChanged(call:Default implementationstate: ) -
onAckProcessing(call:Default implementationack: isReceived: ) Callback for notifying the processing SIP ACK messages.
Default Implementation
Parameters
callLinphoneCall for which an ACK is being received or sent
ackthe ACK LinphoneHeaders
isReceivedif true this ACK is an incoming one, otherwise it is an ACK about to be sent.
-
onTmmbrReceived(call:Default implementationstreamIndex: tmmbr: ) Callback for notifying a received TMMBR.
Default Implementation
Declaration
Swift
func onTmmbrReceived(call: Call, streamIndex: Int, tmmbr: Int)Parameters
callLinphoneCall for which the TMMBR has changed
streamIndexthe index of the current stream
tmmbrthe value of the received TMMBR
-
onSnapshotTaken(call:Default implementationfilePath: ) Callback for notifying a snapshot taken.
Default Implementation
Declaration
Swift
func onSnapshotTaken(call: Call, filePath: String)Parameters
callLinphoneCall for which the snapshot was taken
filePaththe name of the saved file
-
onNextVideoFrameDecoded(call:Default implementation) Callback to notify a next video frame has been decoded.
Default Implementation
Declaration
Swift
func onNextVideoFrameDecoded(call: Call)Parameters
callLinphoneCall for which the next video frame has been decoded
-
onCameraNotWorking(call:Default implementationcameraName: ) Callback to notify that the camera is not working and has been changed to “No Webcam”. A camera is detected as mis-functionning as soon as it outputs no frames at all during a period of 5 seconds. This check is only performed on desktop platforms, in the purpose of notifying camera failures, for example if when a usb cable gets disconnected.
Default Implementation
Declaration
Swift
func onCameraNotWorking(call: Call, cameraName: String)Parameters
callLinphoneCall for which the next video frame has been decoded
cameraNamethe name of the non-working camera
-
onVideoDisplayErrorOccurred(call:Default implementationerrorCode: ) Callback to notify that there are errors from the video rendering. The error code depends of the implementation.
Default Implementation
Declaration
Swift
func onVideoDisplayErrorOccurred(call: Call, errorCode: Int)Parameters
callLinphoneCall
errorCodeerror code from render. It depends of the renderer.
-
onAudioDeviceChanged(call:Default implementationaudioDevice: ) Callback to notify that the audio device has been changed.
Default Implementation
Declaration
Swift
func onAudioDeviceChanged(call: Call, audioDevice: AudioDevice)Parameters
callLinphoneCall for which the audio device has changed
audioDevicethe new audio device used for this call
-
onRemoteRecording(call:Default implementationrecording: ) Callback to notify that the call is being recorded by the remote.
Default Implementation
Declaration
Swift
func onRemoteRecording(call: Call, recording: Bool)Parameters
callLinphoneCall for which the audio is recorded
recordingtrue if the call is being recorded by the remote, false otherwise
CallDelegate Protocol Reference