material-popup-menu / com.github.zawadz88.materialpopupmenu / MaterialPopupMenuBuilder / AbstractItemHolder

AbstractItemHolder

abstract class AbstractItemHolder

Constructors

<init>

AbstractItemHolder()

Properties

callback

var callback: () -> Unit

Callback to be invoked once an item gets selected.

dismissOnSelect

var dismissOnSelect: Boolean

Whether to dismiss the popup once an item gets selected. Defaults to true.

viewBoundCallback

var viewBoundCallback: (View) -> Unit

Callback to be invoked once the item view gets created and bound. It is to be used when some views inside need to be updated once inflated.

Functions

resolveViewBoundCallback

fun resolveViewBoundCallback(): ViewBoundCallback

Inheritors

CustomItemHolder

class CustomItemHolder : MaterialPopupMenuBuilder.AbstractItemHolder

Holds section custom item info for the builder. This gets converted to MaterialPopupMenu.PopupMenuCustomItem.

ItemHolder

class ItemHolder : MaterialPopupMenuBuilder.AbstractItemHolder

Holds section item info for the builder. This gets converted to MaterialPopupMenu.PopupMenuItem.