Interface ChatUIImageEngine

  • All Implemented Interfaces:
    ai.nexconn.chatui.picture.engine.ImageEngine

    
    public interface ChatUIImageEngine
     implements ImageEngine
                        

    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(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView, BaseChannel channel) Loads the avatar for a single conversation item in the conversation list.
      abstract void loadConversationPortrait(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView, Message message) Loads the user avatar shown next to a message in the conversation screen.
      abstract void loadUserPortrait(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView) Loads a user avatar.
      abstract void loadGroupPortrait(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView) Loads a group avatar.
      • Methods inherited from class ai.nexconn.chatui.picture.engine.ImageEngine

        loadAsGifImage, loadFolderImage, loadGridImage, loadImage
      • 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(@NonNull() Context context, @NonNull() String url, @NonNull() 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(@NonNull() Context context, @NonNull() String url, @NonNull() 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(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView)

        Loads a user avatar.

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

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

        Loads a group avatar.

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