setTrailingContent

fun <V : View, MessageComposerContent> setTrailingContent(contentView: V, layoutParams: FrameLayout.LayoutParams = FrameLayout.LayoutParams( FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.BOTTOM, ))

Sets custom trailing content view. It must implement MessageComposerContent interface and should render a send button 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 send button.

layoutParams

The layout parameters to set on the content view.

See also