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