Interface PresenceHandler

  • All Superinterfaces:
    java.io.Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface PresenceHandler
    extends java.io.Serializable
    Functional interface that defines how to handle user presence changes in a topic.
    Since:
    4.0
    Author:
    Vaadin Ltd
    See Also:
    PresenceManager.setPresenceHandler(PresenceHandler)
    • Method Detail

      • handlePresence

        com.vaadin.flow.shared.Registration handlePresence​(PresenceHandler.PresenceContext context)
        Handles a change of user presence in a topic.
        Parameters:
        context - the context of the user presence, not null
        Returns:
        a registration that will be removed when the user stops being present