setHeaderContent
fun <V : View, MessageComposerContent> setHeaderContent(contentView: V, layoutParams: FrameLayout.LayoutParams = FrameLayout.LayoutParams(
FrameLayout.LayoutParams.MATCH_PARENT,
FrameLayout.LayoutParams.WRAP_CONTENT,
))
Sets a custom header content view. It must implement the MessageComposerContent interface and should render the currently active action according to the received state. The currently active action is propagated to the contentView in the MessageComposerContent.renderState function.
Parameters
contentView
The View which shows the currently active action.
layoutParams
The layout parameters to set on the content view.