Interface PresenceSubscriptionListener
-
public interface PresenceSubscriptionListenerPresence subscription listener.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonPresenceUpdated(Contact contact, Presence presenceData)Occurs when the contact's presence information changes.
-
-
-
Method Detail
-
onPresenceUpdated
void onPresenceUpdated(Contact contact, Presence presenceData)
Occurs when the contact's presence information changes. Note thatContact.startPresence(AccessControlBehavior, PresenceCompletionHandler)must be invoked in order to trigger receiving presence updates. When the last listener is removed,Contact.stopPresence(PresenceCompletionHandler)is automatically invoked which stops receiving presence updates for the contact.- Parameters:
contact-Contactobject the presence has been updated for.presenceData- Presence information of the contact.
-
-