Package ai.nexconn.chatui.config
Class GatheredChannelConfig
-
- All Implemented Interfaces:
public class GatheredChannelConfigConfiguration for gathered (aggregated) channel display.
When a channel type is configured as gathered, all its conversations are collapsed into a single row in the channel list. Use this class to set the display title and portrait for each aggregated channel type.
-
-
Constructor Summary
Constructors Constructor Description GatheredChannelConfig()
-
Method Summary
Modifier and Type Method Description voidsetConversationTitle(ChannelType conversationType, int title)Sets the title string resource for an aggregated channel type. IntegergetConversationTitle(ChannelType conversationType)Returns the title string resource for an aggregated channel type. voidsetGatherConversationPortrait(ChannelType conversationType, Uri resUri)Sets the portrait URI for an aggregated channel type. UrigetGatherConversationPortrait(ChannelType conversationType)Returns the portrait URI for an aggregated channel type. -
-
Method Detail
-
setConversationTitle
void setConversationTitle(ChannelType conversationType, int title)
Sets the title string resource for an aggregated channel type.
- Parameters:
conversationType- channel typetitle- string resource ID for the aggregated channel title
-
getConversationTitle
Integer getConversationTitle(ChannelType conversationType)
Returns the title string resource for an aggregated channel type.
- Parameters:
conversationType- channel type- Returns:
string resource ID, or
nullif not configured
-
setGatherConversationPortrait
void setGatherConversationPortrait(ChannelType conversationType, Uri resUri)
Sets the portrait URI for an aggregated channel type.
- Parameters:
conversationType- channel typeresUri- portrait resource URI
-
getGatherConversationPortrait
Uri getGatherConversationPortrait(ChannelType conversationType)
Returns the portrait URI for an aggregated channel type.
- Parameters:
conversationType- channel type- Returns:
portrait URI, or
nullif not configured
-
-
-
-