Package ai.nexconn.chatui.config
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.
-
-
Method Summary
Modifier and Type Method Description abstract voidloadConversationListPortrait(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView, BaseChannel channel)Loads the avatar for a single conversation item in the conversation list. abstract voidloadConversationPortrait(@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 voidloadUserPortrait(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView)Loads a user avatar. abstract voidloadGroupPortrait(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView)Loads a group avatar. -
-
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- contexturl- avatar URLimageView- target ImageViewchannel- 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- contexturl- avatar URLimageView- target ImageViewmessage- 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- contexturl- avatar URLimageView- target ImageView
-
loadGroupPortrait
abstract void loadGroupPortrait(@NonNull() Context context, @NonNull() String url, @NonNull() ImageView imageView)
Loads a group avatar.
- Parameters:
context- contexturl- group avatar URLimageView- target ImageView
-
-
-
-