CallDelegate

open class CallDelegate : LinphoneObjectDelegate

Undocumented

  • Undocumented

    Declaration

    Swift

    public init()
  • Callback for notifying a snapshot taken.

    Declaration

    Swift

    open func onSnapshotTaken(call: Call, filepath: String)

    Parameters

    call

    LinphoneCall for which the snapshot was taken

    filepath

    the name of the saved file

  • Call state notification callback.

    Declaration

    Swift

    open func onStateChanged(call: Call, cstate: Call.State, message: String)

    Parameters

    call

    LinphoneCall whose state is changed.

    cstate

    The new state of the call

    message

    An informational message about the state.

  • Callback for notifying progresses of transfers.

    Declaration

    Swift

    open func onTransferStateChanged(call: Call, cstate: Call.State)

    Parameters

    call

    LinphoneCall that was transfered

    cstate

    The state of the call to transfer target at the far end.

  • Callback for notifying a received TMMBR.

    Declaration

    Swift

    open func onTmmbrReceived(call: Call, streamIndex: Int, tmmbr: Int)

    Parameters

    call

    LinphoneCall for which the TMMBR has changed

    streamIndex

    the index of the current stream

    tmmbr

    the value of the received TMMBR

  • Callback for receiving info messages.

    Declaration

    Swift

    open func onInfoMessageReceived(call: Call, msg: InfoMessage)

    Parameters

    call

    LinphoneCall whose info message belongs to.

    msg

    LinphoneInfoMessage object.

  • Call encryption changed callback.

    Declaration

    Swift

    open func onEncryptionChanged(call: Call, on: Bool, authenticationToken: String)

    Parameters

    call

    LinphoneCall object whose encryption is changed.

    on

    Whether encryption is activated.

    authenticationToken

    An authentication_token, currently set for ZRTP kind of encryption only.

  • Callback for notifying the processing SIP ACK messages.

    Declaration

    Swift

    open func onAckProcessing(call: Call, ack: Headers, isReceived: Bool)

    Parameters

    call

    LinphoneCall for which an ACK is being received or sent

    ack

    the ACK message

    isReceived

    if true this ACK is an incoming one, otherwise it is an ACK about to be sent.

  • Callback for being notified of received DTMFs.

    Declaration

    Swift

    open func onDtmfReceived(call: Call, dtmf: Int)

    Parameters

    call

    LinphoneCall object that received the dtmf

    dtmf

    The ascii code of the dtmf

  • Callback to notify a next video frame has been decoded.

    Declaration

    Swift

    open func onNextVideoFrameDecoded(call: Call)

    Parameters

    call

    LinphoneCall for which the next video frame has been decoded

  • Callback for receiving quality statistics for calls.

    Declaration

    Swift

    open func onStatsUpdated(call: Call, stats: CallStats)

    Parameters

    call

    LinphoneCall object whose statistics are notified

    stats

    LinphoneCallStats object