Package 

Interface MentionSuggestionsAdapter

    • Method Summary

      Modifier and Type Method Description
      abstract Unit setItems(List<User> items) Sets the list of user mention suggestions to be displayed.
      Unit setMentions(List<Mention> items) Sets the heterogeneous mention suggestion list.
      abstract Integer getItemCount() Returns the number of items in the adapter.
      • Methods inherited from class java.lang.Object

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

      • setItems

         abstract Unit setItems(List<User> items)

        Sets the list of user mention suggestions to be displayed.

        Kept for backward compatibility; only sees Mention.User entries. Override setMentions to also handle other mention types.

      • setMentions

         Unit setMentions(List<Mention> items)

        Sets the heterogeneous mention suggestion list.

        The default implementation filters Mention.User entries and delegates to setItems, so adapters that only override setItems keep working — they simply ignore non-user mentions.