Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
WearableActionDrawer.OnMenuItemClickListener
android.support.wearable.view.drawer.WearableActionDrawer.OnMenuItemClickListener
|
This interface is deprecated.
use androidx.wear.widget.drawer.WearableActionDrawerView
provided by the Jetpack Wear library instead.
Interface responsible for receiving menu item click events if the items themselves do not have
individual item click listeners.
Summary
Public methods |
abstract
boolean
|
onMenuItemClick(MenuItem item)
Invoked when a menu item is clicked if the item itself did not already handle the event.
|
Public methods
onMenuItemClick
public abstract boolean onMenuItemClick (MenuItem item)
Invoked when a menu item is clicked if the item itself did not already handle the event.
Parameters |
item |
MenuItem : MenuItem that was clicked |
Returns |
boolean |
true if the event was handled, false otherwise.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# WearableActionDrawer.OnMenuItemClickListener\n============================================\n\n\n`\npublic\nstatic\n\n\ninterface\nWearableActionDrawer.OnMenuItemClickListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------------------------------|\n| android.support.wearable.view.drawer.WearableActionDrawer.OnMenuItemClickListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface is deprecated.** \n\nuse `androidx.wear.widget.drawer.WearableActionDrawerView` provided by the [Jetpack Wear](../../../../../../jetpack/androidx/releases/wear) library instead.\n\nInterface responsible for receiving menu item click events if the items themselves do not have\nindividual item click listeners.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract boolean` | ` `[onMenuItemClick](../../../../../../reference/android/support/wearable/view/drawer/WearableActionDrawer.OnMenuItemClickListener.html#onMenuItemClick(android.view.MenuItem))`(`[MenuItem](http://developer.android.com/reference/android/view/MenuItem.html)` item) ` Invoked when a menu item is clicked if the item itself did not already handle the event. |\n\nPublic methods\n--------------\n\n### onMenuItemClick\n\n```\npublic abstract boolean onMenuItemClick (MenuItem item)\n```\n\nInvoked when a menu item is clicked if the item itself did not already handle the event.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------|\n| `item` | `MenuItem`: [MenuItem](http://developer.android.com/reference/android/view/MenuItem.html) that was clicked \u003cbr /\u003e |\n\n| Returns ||\n|-----------|------------------------------------------------------------|\n| `boolean` | `true` if the event was handled, `false` otherwise. \u003cbr /\u003e |"]]