Message Input Component
This class creates and performs a view corresponding the message input area in Sendbird UIKit. since 3.0.0
Constructors
Types
Functions
Link copied to clipboard
open fun bindUserMention(@NonNull mentionConfig: UserMentionConfig, @NonNull handler: OnMentionEventListener)
Binds the mention configuration and the event listener to the input component.
Link copied to clipboard
Returns the edit text view used in the input component bt default.
Link copied to clipboard
Returns the view created by onCreateView.
Link copied to clipboard
Notifies this component that the channel data has changed.
Link copied to clipboard
open fun notifyDataChanged(@Nullable message: BaseMessage, @NonNull channel: GroupChannel, @NonNull defaultText: String)
Notifies this component that the data needed to draw the input has changed.
Link copied to clipboard
Notifies changes of suggested mention list.
Link copied to clipboard
Link copied to clipboard
Called when the cancel button is clicked, when the input is the edited mode.
Link copied to clipboard
Called when the save button is clicked, when the input is the edited mode.
Link copied to clipboard
protected open fun onEditModeTextChanged(@NonNull s: CharSequence, start: Int, before: Int, count: Int)
Called when the input text is changed, when the input is the edited mode.
Link copied to clipboard
Called when the left button of the input is clicked.
Link copied to clipboard
protected open fun onInputModeChanged(@NonNull before: MessageInputView.Mode, @NonNull current: MessageInputView.Mode)
Called when the input mode is changed.
Link copied to clipboard
Called when the right button of the input is clicked.
Link copied to clipboard
protected open fun onInputTextChanged(@NonNull s: CharSequence, start: Int, before: Int, count: Int)
Called when the input text is changed.
Link copied to clipboard
Called when the close button is clicked, when the input is the quote reply mode.
Link copied to clipboard
Called when the voice recorder button is clicked.
Link copied to clipboard
Requests to set the input mode.
Link copied to clipboard
open fun setOnEditModeCancelButtonClickListener(@Nullable editModeCancelButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the cancel button is clicked, when the input is the edited mode.
Link copied to clipboard
open fun setOnEditModeSaveButtonClickListener(@Nullable editModeSaveButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the save button is clicked, when the input is the edited mode.
Link copied to clipboard
open fun setOnEditModeTextChangedListener(@Nullable editModeTextChangedListener: OnInputTextChangedListener)
Register a callback to be invoked when the input text is changed, when the input is the edited mode.
Link copied to clipboard
open fun setOnInputLeftButtonClickListener(@Nullable inputLeftButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the left button of the input is clicked.
Link copied to clipboard
open fun setOnInputModeChangedListener(@Nullable inputModeChangedListener: OnInputModeChangedListener)
Register a callback to be invoked when the input mode is changed.
Link copied to clipboard
open fun setOnInputRightButtonClickListener(@Nullable inputRightButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the right button of the input is clicked.
Link copied to clipboard
open fun setOnInputTextChangedListener(@Nullable inputTextChangedListener: OnInputTextChangedListener)
Register a callback to be invoked when the input text is changed.
Link copied to clipboard
open fun setOnQuoteReplyModeCloseButtonClickListener(@Nullable replyModeCloseButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the close button is clicked, when the input is the quote reply mode.
Link copied to clipboard
open fun setOnVoiceRecorderButtonClickListener(@Nullable voiceRecorderButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the voice recorder button is clicked.
Link copied to clipboard
Sets the adapter for suggested mention list.
Link copied to clipboard
Sets whether to use divider in suggested mention list.
Link copied to clipboard