Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
ContextMenu.ContextMenuInfo
android.view.ContextMenu.ContextMenuInfo
|
Known indirect subclasses
|
Additional information regarding the creation of the context menu. For example,
AdapterView
s use this to pass the exact item position within the adapter
that initiated the context menu.
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,["# ContextMenu.ContextMenuInfo\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: \n\nContextMenu.ContextMenuInfo\n===========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/ContextMenu.ContextMenuInfo \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nContextMenu.ContextMenuInfo\n`\n\n\n`\n\n\n`\n\n|------------------------------------------|\n| android.view.ContextMenu.ContextMenuInfo |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [AdapterView.AdapterContextMenuInfo](/reference/android/widget/AdapterView.AdapterContextMenuInfo), [ExpandableListView.ExpandableListContextMenuInfo](/reference/android/widget/ExpandableListView.ExpandableListContextMenuInfo) |--------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AdapterView.AdapterContextMenuInfo](/reference/android/widget/AdapterView.AdapterContextMenuInfo) | Extra menu information provided to the [View.OnCreateContextMenuListener.onCreateContextMenu(ContextMenu, View, ContextMenuInfo)](/reference/android/view/View.OnCreateContextMenuListener#onCreateContextMenu(android.view.ContextMenu,%20android.view.View,%20android.view.ContextMenu.ContextMenuInfo)) callback when a context menu is brought up for this AdapterView. | | [ExpandableListView.ExpandableListContextMenuInfo](/reference/android/widget/ExpandableListView.ExpandableListContextMenuInfo) | Extra menu information specific to an [ExpandableListView](/reference/android/widget/ExpandableListView) provided to the [View.OnCreateContextMenuListener.onCreateContextMenu(ContextMenu, View, ContextMenuInfo)](/reference/android/view/View.OnCreateContextMenuListener#onCreateContextMenu(android.view.ContextMenu,%20android.view.View,%20android.view.ContextMenu.ContextMenuInfo)) callback when a context menu is brought up for this AdapterView. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAdditional information regarding the creation of the context menu. For example,\n[AdapterView](/reference/android/widget/AdapterView)s use this to pass the exact item position within the adapter\nthat initiated the context menu."]]