public interface FriendListListener
Modifier and Type | Method and Description |
---|---|
void |
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,
java.lang.String message)
Callback used to notify the status of the synchronization has changed.
|
void onSyncStatusChanged(@NonNull FriendList friendList, FriendList.SyncStatus status, @NonNull java.lang.String message)
friendList
- The LinphoneFriendList object for which the status hasstatus
- The new LinphoneFriendListSyncStatus message
- An additional information on the status update void onContactDeleted(@NonNull FriendList friendList, @NonNull Friend linphoneFriend)
friendList
- The LinphoneFriendList object a contact has been removed fromlinphoneFriend
- The LinphoneFriend object that has been deleted void onPresenceReceived(@NonNull FriendList friendList, @NonNull Friend[] friends)
friendList
- The LinphoneFriendList object for which the status hasfriends
- A of the relevant friends void onContactUpdated(@NonNull FriendList friendList, @NonNull Friend newFriend, @NonNull Friend oldFriend)
friendList
- The LinphoneFriendList object in which a contact has beennewFriend
- The new LinphoneFriend object corresponding to the updatedoldFriend
- The old LinphoneFriend object before update void onContactCreated(@NonNull FriendList friendList, @NonNull Friend linphoneFriend)
friendList
- The LinphoneFriendList object the new contact is added to linphoneFriend
- The LinphoneFriend object that has been created