-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.feature.messages.composer.content.MessageComposerContent
public interface MessageComposerMentionSuggestionsContent implements MessageComposerContent
Represents the mention suggestion list popup shown above MessageComposerView.
-
-
Method Summary
Modifier and Type Method Description abstract Function1<User, Unit>getMentionSelectionListener()Selection listener invoked when a user mention is selected. abstract UnitsetMentionSelectionListener(@Deprecated(message = Use suggestedMentionSelectionListener; it also fires for other mention types., replaceWith = @ReplaceWith(imports = {}, expression = suggestedMentionSelectionListener), level = DeprecationLevel.WARNING) Function1<User, Unit> mentionSelectionListener)Selection listener invoked when a user mention is selected. Function1<Mention, Unit>getSuggestedMentionSelectionListener()UnitsetSuggestedMentionSelectionListener(Function1<Mention, Unit> suggestedMentionSelectionListener)-
Methods inherited from class io.getstream.chat.android.ui.feature.messages.composer.content.MessageComposerMentionSuggestionsContent
attachContext, findViewByKey, renderState -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMentionSelectionListener
abstract Function1<User, Unit> getMentionSelectionListener()
Selection listener invoked when a user mention is selected.
Kept for backward compatibility; only fires for Mention.User rows. New code should prefer suggestedMentionSelectionListener, which fires for every mention type. Note both listeners fire on a user tap: a custom mentionSelectionListener runs in addition to suggestedMentionSelectionListener, so the default selection still inserts the mention. To replace the default selection behavior, override suggestedMentionSelectionListener.
-
setMentionSelectionListener
abstract Unit setMentionSelectionListener(@Deprecated(message = Use suggestedMentionSelectionListener; it also fires for other mention types., replaceWith = @ReplaceWith(imports = {}, expression = suggestedMentionSelectionListener), level = DeprecationLevel.WARNING) Function1<User, Unit> mentionSelectionListener)
Selection listener invoked when a user mention is selected.
Kept for backward compatibility; only fires for Mention.User rows. New code should prefer suggestedMentionSelectionListener, which fires for every mention type. Note both listeners fire on a user tap: a custom mentionSelectionListener runs in addition to suggestedMentionSelectionListener, so the default selection still inserts the mention. To replace the default selection behavior, override suggestedMentionSelectionListener.
-
getSuggestedMentionSelectionListener
Function1<Mention, Unit> getSuggestedMentionSelectionListener()
-
setSuggestedMentionSelectionListener
Unit setSuggestedMentionSelectionListener(Function1<Mention, Unit> suggestedMentionSelectionListener)
-
-
-
-