Package ai.nexconn.chatui.config
Interface ChatUIImageEngine
-
- All Implemented Interfaces:
public interface ChatUIImageEngineImage 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(Context context, String url, ImageView imageView, BaseChannel channel)Loads the avatar for a single conversation item in the conversation list. abstract voidloadConversationPortrait(Context context, String url, ImageView imageView, Message message)Loads the user avatar shown next to a message in the conversation screen. abstract voidloadUserPortrait(Context context, String url, ImageView imageView)Loads a user avatar. abstract voidloadGroupPortrait(Context context, String url, ImageView imageView)Loads a group avatar. -
-
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- contexturl- avatar URLimageView- target ImageViewchannel- 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- contexturl- avatar URLimageView- target ImageViewmessage- 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- contexturl- avatar URLimageView- target ImageView
-
loadGroupPortrait
abstract void loadGroupPortrait(Context context, String url, ImageView imageView)
Loads a group avatar.
- Parameters:
context- contexturl- group avatar URLimageView- target ImageView
-
-
-
-