FriendListDelegate

public protocol FriendListDelegate : AnyObject

Undocumented

  • 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

  • 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

  • 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

  • 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

  • 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