Interface ChatUIImageEngine

  • All Implemented Interfaces:

    
    public interface ChatUIImageEngine
    
                        

    Image loading engine used by the ChatUI SDK.

    Implement this interface to provide a custom image-loading backend. The default implementation is GlideChatUIImageEngine.

    Register a custom implementation via setChatUIImageEngine.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void loadConversationListPortrait(Context context, String url, ImageView imageView, BaseChannel channel) Loads the avatar for a single conversation item in the conversation list.
      abstract void loadConversationPortrait(Context context, String url, ImageView imageView, Message message) Loads the user avatar shown next to a message in the conversation screen.
      abstract void loadUserPortrait(Context context, String url, ImageView imageView) Loads a user avatar.
      abstract void loadGroupPortrait(Context context, String url, ImageView imageView) Loads a group avatar.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • loadConversationListPortrait

         abstract void loadConversationListPortrait(Context context, String url, ImageView imageView, BaseChannel channel)

        Loads the avatar for a single conversation item in the conversation list.

        Parameters:
        context - context
        url - avatar URL
        imageView - target ImageView
        channel - current channel; use the channel type to apply type-specific default images
      • loadConversationPortrait

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

        Loads the user avatar shown next to a message in the conversation screen.

        Parameters:
        context - context
        url - avatar URL
        imageView - target ImageView
        message - current message; use to apply type-specific default images
      • loadUserPortrait

         abstract void loadUserPortrait(Context context, String url, ImageView imageView)

        Loads a user avatar.

        Parameters:
        context - context
        url - avatar URL
        imageView - target ImageView
      • loadGroupPortrait

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

        Loads a group avatar.

        Parameters:
        context - context
        url - group avatar URL
        imageView - target ImageView