CoreDelegate

open class CoreDelegate : LinphoneObjectDelegate

Undocumented

  • Undocumented

    Declaration

    Swift

    public init()
  • Callback for notifying progresses of transfers.

    Declaration

    Swift

    open func onTransferStateChanged(lc: Core, transfered: Call, newCallState: Call.State)

    Parameters

    lc

    the LinphoneCore

    transfered

    the call that was transfered

    newCallState

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

  • Callback prototype for reporting when a friend list has been added to the core friends list.

    Declaration

    Swift

    open func onFriendListCreated(lc: Core, list: FriendList)

    Parameters

    lc

    LinphoneCore object

    list

    LinphoneFriendList object

  • Callback prototype for notifying the application about changes of subscription states, including arrival of new subscriptions.

    Declaration

    Swift

    open func onSubscriptionStateChanged(lc: Core, lev: Event, state: SubscriptionState)
  • Callback to notify a new call-log entry has been added. This is done typically when a call terminates.

    Declaration

    Swift

    open func onCallLogUpdated(lc: Core, newcl: CallLog)

    Parameters

    lc

    the LinphoneCore

    newcl

    the new call log entry added.

  • Call state notification callback.

    Declaration

    Swift

    open func onCallStateChanged(lc: Core, call: Call, cstate: Call.State, message: String)

    Parameters

    lc

    the LinphoneCore

    call

    the call object whose state is changed.

    cstate

    the new state of the call

    message

    a non nil informational message about the state.

  • Callback for requesting authentication information to application or user.

    Declaration

    Swift

    open func onAuthenticationRequested(lc: Core, authInfo: AuthInfo, method: AuthMethod)

    Parameters

    lc

    the LinphoneCore

    authInfo

    a LinphoneAuthInfo pre-filled with username, realm and domain values as much as possible

    method

    the type of authentication requested Application shall reply to this callback using linphone_core_add_auth_info.

  • Reports presence model change for a specific URI or phone number of a friend.

    Declaration

    Swift

    open func onNotifyPresenceReceivedForUriOrTel(lc: Core, lf: Friend, uriOrTel: String, presenceModel: PresenceModel)

    Parameters

    lc

    LinphoneCore object

    lf

    LinphoneFriend object

    uriOrTel

    The URI or phone number for which teh presence model has changed

    presenceModel

    The new presence model

  • Callback prototype telling that a LinphoneChatRoom state has changed.

    Declaration

    Swift

    open func onChatRoomStateChanged(lc: Core, cr: ChatRoom, state: ChatRoom.State)

    Parameters

    lc

    LinphoneCore object

    cr

    The LinphoneChatRoom object for which the state has changed

  • Callback prototype.

    Declaration

    Swift

    open func onBuddyInfoUpdated(lc: Core, lf: Friend)
  • Callback prototype for reporting network change either automatically detected or notified by linphone_core_set_network_reachable.

    Declaration

    Swift

    open func onNetworkReachable(lc: Core, reachable: Bool)

    Parameters

    lc

    the LinphoneCore

    reachable

    true if network is reachable.

  • Callback prototype for notifying the application about notification received from the network.

    Declaration

    Swift

    open func onNotifyReceived(lc: Core, lev: Event, notifiedEvent: String, body: Content)
  • Reports that a new subscription request has been received and wait for a decision. Status on this subscription request is notified by changing policy for this friend

    Declaration

    Swift

    open func onNewSubscriptionRequested(lc: Core, lf: Friend, url: String)

    Parameters

    lc

    LinphoneCore object

    lf

    LinphoneFriend corresponding to the subscriber

    url

    of the subscriber

  • Callback for receiving quality statistics for calls.

    Declaration

    Swift

    open func onCallStatsUpdated(lc: Core, call: Call, stats: CallStats)

    Parameters

    lc

    the LinphoneCore

    call

    the call

    stats

    the call statistics.

  • Report status change for a friend previously added to LinphoneCore.

    Declaration

    Swift

    open func onNotifyPresenceReceived(lc: Core, lf: Friend)

    Parameters

    lc

    LinphoneCore object .

    lf

    Updated LinphoneFriend .

  • Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_init().

    Declaration

    Swift

    open func onEcCalibrationAudioInit(lc: Core)

    Parameters

    lc

    The core.

  • Chat message callback prototype.

    Declaration

    Swift

    open func onMessageReceived(lc: Core, room: ChatRoom, message: ChatMessage)

    Parameters

    lc

    LinphoneCore object

    room

    LinphoneChatRoom involved in this conversation. Can be be created by the framework in case the from is not present in any chat room.

  • Function prototype used by #linphone_core_cbs_set_ec_calibrator_result().

    Declaration

    Swift

    open func onEcCalibrationResult(lc: Core, status: EcCalibratorStatus, delayMs: Int)

    Parameters

    lc

    The core.

    status

    The state of the calibrator.

    delayMs

    The measured delay if available.

  • Callback prototype for notifying the application about subscription received from the network.

    Declaration

    Swift

    open func onSubscribeReceived(lc: Core, lev: Event, subscribeEvent: String, body: Content)
  • Callback prototype for receiving info messages.

    Declaration

    Swift

    open func onInfoReceived(lc: Core, call: Call, msg: InfoMessage)

    Parameters

    lc

    the LinphoneCore

    call

    the call whose info message belongs to.

    msg

    the info message.

  • Chat room marked as read callback.

    Declaration

    Swift

    open func onChatRoomRead(lc: Core, room: ChatRoom)

    Parameters

    lc

    LinphoneCore object

    room

    LinphoneChatRoom that has been marked as read.

  • Registration state notification callback prototype.

    Declaration

    Swift

    open func onRegistrationStateChanged(lc: Core, cfg: ProxyConfig, cstate: RegistrationState, message: String)
  • Callback prototype for reporting when a friend list has been removed from the core friends list.

    Declaration

    Swift

    open func onFriendListRemoved(lc: Core, list: FriendList)

    Parameters

    lc

    LinphoneCore object

    list

    LinphoneFriendList object

  • Callback prototype.

    Declaration

    Swift

    open func onReferReceived(lc: Core, referTo: String)
  • Callback prototype telling the result of decoded qrcode.

    Declaration

    Swift

    open func onQrcodeFound(lc: Core, result: String)

    Parameters

    lc

    LinphoneCore object

    result

    The result of the decoded qrcode

  • Callback prototype for configuring status changes notification.

    Declaration

    Swift

    open func onConfiguringStatus(lc: Core, status: ConfiguringState, message: String)

    Parameters

    lc

    the LinphoneCore

    message

    informational message.

  • Callback notifying that a new LinphoneCall (either incoming or outgoing) has been created.

    Declaration

    Swift

    open func onCallCreated(lc: Core, call: Call)

    Parameters

    lc

    LinphoneCore object that has created the call

    call

    The newly created LinphoneCall object

  • Callback prototype for notifying the application about changes of publish states.

    Declaration

    Swift

    open func onPublishStateChanged(lc: Core, lev: Event, state: PublishState)
  • Call encryption changed callback.

    Declaration

    Swift

    open func onCallEncryptionChanged(lc: Core, call: Call, on: Bool, authenticationToken: String)

    Parameters

    lc

    the LinphoneCore

    call

    the call on which encryption is changed.

    on

    whether encryption is activated.

    authenticationToken

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

  • Is composing notification callback prototype.

    Declaration

    Swift

    open func onIsComposingReceived(lc: Core, room: ChatRoom)

    Parameters

    lc

    LinphoneCore object

    room

    LinphoneChatRoom involved in the conversation.

  • Chat message not decrypted callback prototype.

    Declaration

    Swift

    open func onMessageReceivedUnableDecrypt(lc: Core, room: ChatRoom, message: ChatMessage)

    Parameters

    lc

    LinphoneCore object

    room

    LinphoneChatRoom involved in this conversation. Can be be created by the framework in case the from is not present in any chat room.

  • Callback prototype for reporting log collection upload progress indication.

    Declaration

    Swift

    open func onLogCollectionUploadProgressIndication(lc: Core, offset: Int, total: Int)

    Parameters

    lc

    LinphoneCore object

  • Callback prototype telling that a LinphoneChatRoom subject has changed.

    Declaration

    Swift

    open func onChatRoomSubjectChanged(lc: Core, cr: ChatRoom)

    Parameters

    lc

    LinphoneCore object

    cr

    The LinphoneChatRoom object for which the subject has changed

  • Callback prototype for reporting the result of a version update check.

    Declaration

    Swift

    open func onVersionUpdateCheckResultReceived(lc: Core, result: VersionUpdateCheckResult, version: String, url: String)

    Parameters

    lc

    LinphoneCore object

    result

    The result of the version update check

    url

    The url where to download the new version if the result is #LinphoneVersionUpdateCheckNewVersionAvailable

  • Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_uninit().

    Declaration

    Swift

    open func onEcCalibrationAudioUninit(lc: Core)

    Parameters

    lc

    The core.

  • Global state notification callback.

    Declaration

    Swift

    open func onGlobalStateChanged(lc: Core, gstate: GlobalState, message: String)

    Parameters

    lc

    the LinphoneCore.

    gstate

    the global state

    message

    informational message.

  • Callback prototype for reporting log collection upload state change.

    Declaration

    Swift

    open func onLogCollectionUploadStateChanged(lc: Core, state: Core.LogCollectionUploadState, info: String)

    Parameters

    lc

    LinphoneCore object

    state

    The state of the log collection upload

    info

    Additional information: error message in case of error state, URL of uploaded file in case of success.

  • Callback for being notified of DTMFs received.

    Declaration

    Swift

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

    Parameters

    lc

    the linphone core

    call

    the call that received the dtmf

    dtmf

    the ascii code of the dtmf

  • Chat message callback prototype.

    Declaration

    Swift

    open func onMessageSent(lc: Core, room: ChatRoom, message: ChatMessage)

    Parameters

    lc

    LinphoneCore object

    room

    LinphoneChatRoom involved in this conversation. Can be be created by the framework in case the from is not present in any chat room.