Class GlideChatUIImageEngine

  • All Implemented Interfaces:

    
    public class GlideChatUIImageEngine
    
                        

    Default ChatUIImageEngine implementation backed by Glide.

    Loaded automatically by the SDK unless a custom engine is set via setChatUIImageEngine.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void loadImage(Context context, String url, ImageView imageView) Loads an image into the given ImageView.
      void loadFolderImage(Context context, String url, ImageView imageView) Loads a thumbnail for an album/folder entry with rounded corners.
      void loadAsGifImage(Context context, String url, ImageView imageView) Loads a GIF image into the given ImageView.
      void loadGridImage(Context context, String url, ImageView imageView) Loads a thumbnail for a grid image picker item.
      void loadConversationListPortrait(Context context, String url, ImageView imageView, BaseChannel channel)
      void loadConversationPortrait(Context context, String url, ImageView imageView, Message message)
      void loadUserPortrait(Context context, String url, ImageView imageView)
      void loadGroupPortrait(Context context, String url, ImageView imageView)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GlideChatUIImageEngine

        GlideChatUIImageEngine()
    • Method Detail

      • loadImage

         void loadImage(Context context, String url, ImageView imageView)

        Loads an image into the given ImageView.

        Parameters:
        context - context
        url - image URL
        imageView - target ImageView
      • loadFolderImage

         void loadFolderImage(Context context, String url, ImageView imageView)

        Loads a thumbnail for an album/folder entry with rounded corners.

        Parameters:
        context - context
        url - image path
        imageView - target ImageView
      • loadAsGifImage

         void loadAsGifImage(Context context, String url, ImageView imageView)

        Loads a GIF image into the given ImageView.

        Parameters:
        context - context
        url - GIF URL or path
        imageView - target ImageView
      • loadGridImage

         void loadGridImage(Context context, String url, ImageView imageView)

        Loads a thumbnail for a grid image picker item.

        Parameters:
        context - context
        url - image URL or path
        imageView - target ImageView
      • loadConversationPortrait

         void loadConversationPortrait(Context context, String url, ImageView imageView, Message message)
      • loadUserPortrait

         void loadUserPortrait(Context context, String url, ImageView imageView)
      • loadGroupPortrait

         void loadGroupPortrait(Context context, String url, ImageView imageView)