Interface ChannelListBehaviorListener

  • All Implemented Interfaces:

    
    public interface ChannelListBehaviorListener
    
                        

    Listener for user interaction events on the channel-list screen.

    Each method returns true if the app handles the event, or false to fall back to the default SDK behavior.

    • 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 boolean onConversationPortraitClick(Context context, ChannelType channelType, String targetId) Called when a conversation's avatar is tapped in the list.
      abstract boolean onConversationPortraitLongClick(Context context, ChannelType channelType, String targetId) Called when a conversation's avatar is long-pressed in the list.
      abstract boolean onConversationLongClick(Context context, View view, BaseUiChannel conversation) Called when a conversation list item is long-pressed.
      abstract boolean onConversationClick(Context context, View view, BaseUiChannel conversation) Called when a conversation list item is tapped.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 - context
        channelType - channel type
        targetId - the user ID of the tapped avatar
        Returns:

        true if the app handles this click; false for 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 - context
        channelType - channel type
        targetId - the user ID of the long-pressed avatar
        Returns:

        true if the app handles this event; false for default behavior

      • onConversationLongClick

         abstract boolean onConversationLongClick(Context context, View view, BaseUiChannel conversation)

        Called when a conversation list item is long-pressed.

        Parameters:
        context - context
        view - the View that received the long-press
        conversation - the long-pressed conversation item
        Returns:

        true if the app handles this event; false for default behavior

      • onConversationClick

         abstract boolean onConversationClick(Context context, View view, BaseUiChannel conversation)

        Called when a conversation list item is tapped.

        Parameters:
        context - context
        view - the View that received the tap
        conversation - the tapped conversation item
        Returns:

        true if the app handles this click; false for default behavior