DismissAllButtonElementController

Adds a dismiss all button to a dismissable panel list if the list contains more than one panel.

Parameters

CD

The type of the panel container data that is visualized by the panel container.

SD

The type of the panel sub-container data. The data is derived from the panel container data.

P

The dismissable panel type.

Constructors

Link copied to clipboard
fun DismissAllButtonElementController(@LayoutRes dismissAllButtonLayoutId: Int? = null)

Properties

Link copied to clipboard

Panel container element type. Must be unique per RecyclerBasicElementController.

Functions

Link copied to clipboard
open override fun areContentsTheSame(oldElementData: DismissAllButtonData<P>, newElementData: DismissAllButtonData<P>): Boolean

Returns true when oldElementData has the same content as newElementData.

Link copied to clipboard
open override fun areItemsTheSame(oldElementData: DismissAllButtonData<P>, newElement: DismissAllButtonData<P>): Boolean

Returns true when oldElementData is the same as newElement.

Link copied to clipboard

Returns a view to visualize a basic element of a type specified by elementType and the BasicElementViewCreationResult.onBind callback implementation which is invoked to bind the basic element data of type BD to the view.

Link copied to clipboard
open override fun decorateList(panelContainerData: CD?, list: ExtendablePanelContainerElementList<SD, DismissAllButtonData<P>>)

Invoked to decorate the list with additional panel container basic elements.