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
lcLinphoneCore object
listLinphoneFriendList 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
lcthe LinphoneCore
callthe call object whose state is changed.
cstatethe new state of the call
messagea 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
lcthe LinphoneCore
authInfoa LinphoneAuthInfo pre-filled with username, realm and domain values as much as possible
methodthe 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
lcLinphoneCore object
lfLinphoneFriend object
uriOrTelThe URI or phone number for which teh presence model has changed
presenceModelThe 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
lcthe LinphoneCore
reachabletrue 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
lcLinphoneCore object
lfLinphoneFriend corresponding to the subscriber
urlof the subscriber
-
Function prototype used by #linphone_core_cbs_set_ec_calibrator_audio_init().
Declaration
Swift
open func onEcCalibrationAudioInit(lc: Core)Parameters
lcThe core.
-
Chat message callback prototype.
Declaration
Swift
open func onMessageReceived(lc: Core, room: ChatRoom, message: ChatMessage)Parameters
lcLinphoneCore object
roomLinphoneChatRoom 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
lcThe core.
statusThe state of the calibrator.
delayMsThe measured delay if available.
-
Callback prototype for receiving info messages.
Declaration
Swift
open func onInfoReceived(lc: Core, call: Call, msg: InfoMessage)Parameters
lcthe LinphoneCore
callthe call whose info message belongs to.
msgthe 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
lcLinphoneCore object
listLinphoneFriendList 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
lcLinphoneCore object
resultThe result of the decoded qrcode
-
Callback prototype for configuring status changes notification.
Declaration
Swift
open func onConfiguringStatus(lc: Core, status: ConfiguringState, message: String)Parameters
lcthe LinphoneCore
messageinformational 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
lcthe LinphoneCore
callthe call on which encryption is changed.
onwhether encryption is activated.
authenticationTokenan 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
lcLinphoneCore object
roomLinphoneChatRoom 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
lcLinphoneCore 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
lcLinphoneCore object
resultThe result of the version update check
urlThe 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
lcThe core.
-
Global state notification callback.
Declaration
Swift
open func onGlobalStateChanged(lc: Core, gstate: GlobalState, message: String)Parameters
lcthe LinphoneCore.
gstatethe global state
messageinformational message.
-
Callback prototype for reporting log collection upload state change.
Declaration
Parameters
lcLinphoneCore object
stateThe state of the log collection upload
infoAdditional 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
lcLinphoneCore object
roomLinphoneChatRoom involved in this conversation. Can be be created by the framework in case the from is not present in any chat room.
CoreDelegate Class Reference