Package org.linphone.core
Interface FriendListListener
- All Known Implementing Classes:
FriendListListenerStub
public interface FriendListListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onContactCreated
(FriendList friendList, Friend linphoneFriend) Callback used to notify a new contact has been created on the CardDAV server
and downloaded locally.void
onContactDeleted
(FriendList friendList, Friend linphoneFriend) Callback used to notify a contact has been deleted on the CardDAV server.void
onContactUpdated
(FriendList friendList, Friend newFriend, Friend oldFriend) Callback used to notify a contact has been updated on the CardDAV server.void
onPresenceReceived
(FriendList friendList, Friend[] friends) Callback used to notify a list with all friends that have received presence
information.void
onSyncStatusChanged
(FriendList friendList, FriendList.SyncStatus status, String message) Callback used to notify the status of the synchronization has changed.
-
Method Details
-
onContactCreated
Callback used to notify a new contact has been created on the CardDAV server
and downloaded locally.
- Parameters:
friendList
- TheFriendList
object the new contact is added tolinphoneFriend
- TheFriend
object that has been created
-
onContactDeleted
Callback used to notify a contact has been deleted on the CardDAV server.
- Parameters:
friendList
- TheFriendList
object a contact has been removed from
linphoneFriend
- TheFriend
object that has been deleted
-
onContactUpdated
void onContactUpdated(@NonNull FriendList friendList, @NonNull Friend newFriend, @NonNull Friend oldFriend) Callback used to notify a contact has been updated on the CardDAV server.
- Parameters:
friendList
- TheFriendList
object in which a contact has been
updatednewFriend
- The newFriend
object corresponding to the updated
contactoldFriend
- The oldFriend
object before update
-
onSyncStatusChanged
void onSyncStatusChanged(@NonNull FriendList friendList, FriendList.SyncStatus status, @Nullable String message) Callback used to notify the status of the synchronization has changed.
- Parameters:
friendList
- TheFriendList
object for which the status has
changedstatus
- The newFriendList#SyncStatus
message
- An additional information on the status update
-
onPresenceReceived
Callback used to notify a list with all friends that have received presence
information.
- Parameters:
friendList
- The LinphoneFriendList object for which the status has
changedfriends
- A of the relevant friends
-