setCenterContent

fun <V : View, CallAppBarContent> setCenterContent(contentView: V, layoutParams: FrameLayout.LayoutParams = FrameLayout.LayoutParams( FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.START, ))

Sets custom center content view. It must implement CallAppBarContent interface. The current mode is propagated to the contentView in the CallAppBarView.renderState function.

Parameters

contentView

The View showing the center content.

layoutParams

The layout parameters to set on the content view.

See also

DefaultCallAppBarCenterContent