FriendListDelegate
public protocol FriendListDelegate : AnyObject
-
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
friendListThe LinphoneFriendList object the new contact is added to
linphoneFriendThe 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
friendListThe LinphoneFriendList object a contact has been removed from
linphoneFriendThe 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
friendListThe LinphoneFriendList object in which a contact has been updated
newFriendThe new LinphoneFriend object corresponding to the updated contact
oldFriendThe 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
friendListThe LinphoneFriendList object for which the status has changed
statusThe new LinphoneFriendListSyncStatus
messageAn 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
friendListThe LinphoneFriendList object for which the status has changed
friendsA of the relevant friends
FriendListDelegate Protocol Reference