Package ai.nexconn.chatui.config
Interface ChannelListBehaviorListener
-
- All Implemented Interfaces:
public interface ChannelListBehaviorListenerListener for user interaction events on the channel-list screen.
Each method returns
trueif the app handles the event, orfalseto fall back to the default SDK behavior.
-
-
Method Summary
Modifier and Type Method Description abstract booleanonConversationPortraitClick(Context context, ChannelType channelType, String targetId)Called when a conversation's avatar is tapped in the list. abstract booleanonConversationPortraitLongClick(Context context, ChannelType channelType, String targetId)Called when a conversation's avatar is long-pressed in the list. abstract booleanonConversationLongClick(Context context, View view, BaseUiChannel conversation)Called when a conversation list item is long-pressed. abstract booleanonConversationClick(Context context, View view, BaseUiChannel conversation)Called when a conversation list item is tapped. -
-
Method Detail
-
onConversationPortraitClick
abstract boolean onConversationPortraitClick(Context context, ChannelType channelType, String targetId)
Called when a conversation's avatar is tapped in the list.
- Parameters:
context- contextchannelType- channel typetargetId- the user ID of the tapped avatar- Returns:
trueif the app handles this click;falsefor default behavior
-
onConversationPortraitLongClick
abstract boolean onConversationPortraitLongClick(Context context, ChannelType channelType, String targetId)
Called when a conversation's avatar is long-pressed in the list.
- Parameters:
context- contextchannelType- channel typetargetId- the user ID of the long-pressed avatar- Returns:
trueif the app handles this event;falsefor default behavior
-
onConversationLongClick
abstract boolean onConversationLongClick(Context context, View view, BaseUiChannel conversation)
Called when a conversation list item is long-pressed.
- Parameters:
context- contextview- the View that received the long-pressconversation- the long-pressed conversation item- Returns:
trueif the app handles this event;falsefor default behavior
-
onConversationClick
abstract boolean onConversationClick(Context context, View view, BaseUiChannel conversation)
Called when a conversation list item is tapped.
- Parameters:
context- contextview- the View that received the tapconversation- the tapped conversation item- Returns:
trueif the app handles this click;falsefor default behavior
-
-
-
-