Class GatheredChannelConfig

  • All Implemented Interfaces:

    
    public class GatheredChannelConfig
    
                        

    Configuration 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void setConversationTitle(ChannelType conversationType, int title) Sets the title string resource for an aggregated channel type.
      Integer getConversationTitle(ChannelType conversationType) Returns the title string resource for an aggregated channel type.
      void setGatherConversationPortrait(ChannelType conversationType, Uri resUri) Sets the portrait URI for an aggregated channel type.
      Uri getGatherConversationPortrait(ChannelType conversationType) Returns the portrait URI for an aggregated channel type.
      • Methods inherited from class java.lang.Object

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

      • GatheredChannelConfig

        GatheredChannelConfig()
    • Method Detail

      • setConversationTitle

         void setConversationTitle(ChannelType conversationType, int title)

        Sets the title string resource for an aggregated channel type.

        Parameters:
        conversationType - channel type
        title - 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 null if not configured

      • setGatherConversationPortrait

         void setGatherConversationPortrait(ChannelType conversationType, Uri resUri)

        Sets the portrait URI for an aggregated channel type.

        Parameters:
        conversationType - channel type
        resUri - 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 null if not configured