Interface CollaborationAvatarGroup.ImageHandler

Enclosing class:
CollaborationAvatarGroup
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 static interface CollaborationAvatarGroup.ImageHandler
Callback for creating a download handler for the avatar image for a specific user. This allows loading the user image from a dynamic location such as a database.
Since:
6.5
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.server.streams.DownloadHandler
    Gets a download handler for the avatar image for the given user.
  • Method Details

    • getDownloadHandler

      com.vaadin.flow.server.streams.DownloadHandler getDownloadHandler(UserInfo user)
      Gets a download handler for the avatar image for the given user.
      Parameters:
      user - the user for which to get a download handler with the image, not null
      Returns:
      the download handler to use for the image, or null to not show use any avatar image for the given user