public final class RxMenuItemCompat
extends java.lang.Object
android.support.v4.view.MenuItemCompat.| Modifier and Type | Method and Description |
|---|---|
static <any> |
actionViewEvents(android.view.MenuItem menuItem)
Create an observable of action view events for
menuItem. |
static <any> |
actionViewEvents(android.view.MenuItem menuItem,
<any> handled)
Create an observable of action view events for
menuItem. |
public static <any> actionViewEvents(android.view.MenuItem menuItem)
menuItem.
Warning: The created observable keeps a strong reference to menuItem.
Unsubscribe to free this reference.
Warning: The created observable uses MenuItem.setOnActionExpandListener(android.view.MenuItem.OnActionExpandListener) to
observe action view events. Only one observable can be used for a menu item at a time.
public static <any> actionViewEvents(android.view.MenuItem menuItem,
<any> handled)
menuItem.
Warning: The created observable keeps a strong reference to menuItem.
Unsubscribe to free this reference.
Warning: The created observable uses MenuItem.setOnActionExpandListener(android.view.MenuItem.OnActionExpandListener) to
observe action view events. Only one observable can be used for a menu item at a time.
handled - Function invoked with each value to determine the return value of the
underlying MenuItem.OnActionExpandListener.