CoreDelegate
open class CoreDelegate : LinphoneObjectDelegate
Undocumented
-
Undocumented
Declaration
Swift
public init()
-
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)
-
Call state notification callback.
Declaration
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 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.
-
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
Parameters
lc
LinphoneCore object
lf
LinphoneFriend corresponding to the subscriber
url
of the subscriber
-
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 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.
-
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 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
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.
-
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 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
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.
-
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.