Package 

Interface StreamCdnImageResizer


  • 
    public interface StreamCdnImageResizer
    
                        

    Strategy for resizing Stream CDN hosted image URLs before they are loaded, to avoid downloading full-resolution originals. It is applied to image attachment URLs by the Compose and XML UI kits and configured via ChatTheme(streamCdnImageResizer = …) / ChatUI.streamCdnImageResizer.

    Resizing is on by default at a 2MP cap (StreamCdnMaxPixelsImageResizer). Provide NoOpStreamCdnImageResizer to opt out, or implement this interface to apply a custom resizing strategy. Only Stream CDN hosted URLs that carry the original dimensions are affected; any other URL is returned unchanged.

    • Method Summary

      Modifier and Type Method Description
      abstract String resizeUrl(String imageUrl) Returns a (possibly) resized Stream CDN image URL for imageUrl.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait