setCenterContent

fun <V : View, MessageComposerContent> setCenterContent(contentView: V, layoutParams: FrameLayout.LayoutParams = FrameLayout.LayoutParams( FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT, ))

Sets custom center content view. It must implement MessageComposerContent interface and should render a message input field according to the received state. The current mode is propagated to the contentView in the MessageComposerContent.renderState function.

Parameters

contentView

The View which shows a message input field.

layoutParams

The layout parameters to set on the content view.

See also