mentionSelectionListener

abstract var mentionSelectionListener: (User) -> Unit?

Deprecated

Use suggestedMentionSelectionListener; it also fires for other mention types.

Replace with

suggestedMentionSelectionListener

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.