public static class MaterialPopupMenuBuilder.AbstractItemHolder
| Constructor and Description |
|---|
AbstractItemHolder() |
| Modifier and Type | Method and Description |
|---|---|
kotlin.jvm.functions.Function0<kotlin.Unit> |
getCallback()
Callback to be invoked once an item gets selected.
|
boolean |
getDismissOnSelect()
Whether to dismiss the popup once an item gets selected.
Defaults to
true. |
kotlin.jvm.functions.Function1<android.view.View,kotlin.Unit> |
getViewBoundCallback()
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.
|
protected ViewBoundCallback |
resolveViewBoundCallback() |
void |
setCallback(kotlin.jvm.functions.Function0<kotlin.Unit> p)
Callback to be invoked once an item gets selected.
|
void |
setDismissOnSelect(boolean p)
Whether to dismiss the popup once an item gets selected.
Defaults to
true. |
void |
setViewBoundCallback(kotlin.jvm.functions.Function1<? super android.view.View,kotlin.Unit> p)
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.
|
@NotNull public kotlin.jvm.functions.Function0<kotlin.Unit> getCallback()
Callback to be invoked once an item gets selected.
public void setCallback(@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> p)
Callback to be invoked once an item gets selected.
public boolean getDismissOnSelect()
Whether to dismiss the popup once an item gets selected.
Defaults to true.
public void setDismissOnSelect(boolean p)
Whether to dismiss the popup once an item gets selected.
Defaults to true.
@NotNull public kotlin.jvm.functions.Function1<android.view.View,kotlin.Unit> getViewBoundCallback()
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.
You can set this to class ViewBoundCallback to gain access to additional
features.
class ViewBoundCallback,
class ViewBoundCallbackpublic void setViewBoundCallback(@NotNull
kotlin.jvm.functions.Function1<? super android.view.View,kotlin.Unit> p)
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.
You can set this to class ViewBoundCallback to gain access to additional
features.
class ViewBoundCallback,
class ViewBoundCallback@NotNull protected ViewBoundCallback resolveViewBoundCallback()