Interface PresenceListSubscription


  • public interface PresenceListSubscription
    An ad hoc presence list subscription.

    This class provides an interface for watching the presence of a group of users specified by their addresses. The addresses must be recognizable by the presence server the user is connected to.

    • Method Detail

      • addAddress

        void addAddress​(java.lang.String address)
        Adds an address to the subscription to start watching the presence of the user associated with the specified address.

        It is allowed to add new addresses to the subscription after the subscription has been started.

        Parameters:
        address - The address to add to the subscription.
      • removeAddress

        void removeAddress​(java.lang.String address)
        Removes an address from the subscription.

        It is allowed to remove addresses from the subscription after the subscription has been started.

        Parameters:
        address - The address to remove from the subscription.
      • start

        void start()
        Starts the subscription and watching presence for the subscribed addresses.
      • stop

        void stop()
        Stops the subscription.