FriendListDelegate
public protocol FriendListDelegate : AnyObject
Undocumented
-
onContactCreated(friendList:
Default implementationlinphoneFriend: ) Callback used to notify a new contact has been created on the CardDAV server and downloaded locally.
Default Implementation
Declaration
Swift
func onContactCreated(friendList: FriendList, linphoneFriend: Friend)
Parameters
friendList
The LinphoneFriendList object the new contact is added to
linphoneFriend
The LinphoneFriend object that has been created
-
onContactDeleted(friendList:
Default implementationlinphoneFriend: ) Callback used to notify a contact has been deleted on the CardDAV server.
Default Implementation
Declaration
Swift
func onContactDeleted(friendList: FriendList, linphoneFriend: Friend)
Parameters
friendList
The LinphoneFriendList object a contact has been removed from
linphoneFriend
The LinphoneFriend object that has been deleted
-
onContactUpdated(friendList:
Default implementationnewFriend: oldFriend: ) Callback used to notify a contact has been updated on the CardDAV server.
Default Implementation
Declaration
Swift
func onContactUpdated(friendList: FriendList, newFriend: Friend, oldFriend: Friend)
Parameters
friendList
The LinphoneFriendList object in which a contact has been updated
newFriend
The new LinphoneFriend object corresponding to the updated contact
oldFriend
The old LinphoneFriend object before update
-
onSyncStatusChanged(friendList:
Default implementationstatus: message: ) Callback used to notify the status of the synchronization has changed.
Default Implementation
Declaration
Swift
func onSyncStatusChanged(friendList: FriendList, status: FriendList.SyncStatus, message: String)
Parameters
friendList
The LinphoneFriendList object for which the status has changed
status
The new LinphoneFriendListSyncStatus
message
An additional information on the status update
-
onPresenceReceived(friendList:
Default implementationfriends: ) Callback used to notify a list with all friends that have received presence information.
Default Implementation
Declaration
Swift
func onPresenceReceived(friendList: FriendList, friends: [Friend])
Parameters
friendList
The LinphoneFriendList object for which the status has changed
friends
A of the relevant friends