Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# AdapterContextMenuInfo

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/widget/AdapterView.AdapterContextMenuInfo "View this page in Java")

```
open class AdapterContextMenuInfo : ContextMenu.ContextMenuInfo
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.widget.AdapterView.AdapterContextMenuInfo](https://developer.android.com/reference/kotlin/android/widget/AdapterView.AdapterContextMenuInfo#) |

Extra menu information provided to the `https://developer.android.com/reference/kotlin/android/view/View.OnCreateContextMenuListener.html#onCreateContextMenu(android.view.ContextMenu,%20android.view.View,%20android.view.ContextMenu.ContextMenuInfo)` callback when a context menu is brought up for this AdapterView.

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/widget/AdapterView.AdapterContextMenuInfo#AdapterContextMenuInfo(android.view.View,%20kotlin.Int,%20kotlin.Long)(targetView: https://developer.android.com/reference/kotlin/android/view/View.html#!, position: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, id: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` <br /> |

| Properties ||
|---|---|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/widget/AdapterView.AdapterContextMenuInfo#id:kotlin.Long` The row id of the item for which the context menu is being displayed. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/widget/AdapterView.AdapterContextMenuInfo#position:kotlin.Int` The position in the adapter for which the context menu is being displayed. |
| [View](https://developer.android.com/reference/kotlin/android/view/View.html#)! | `https://developer.android.com/reference/kotlin/android/widget/AdapterView.AdapterContextMenuInfo#targetView:android.view.View` The child view for which the context menu is being displayed. |

## Public constructors

### AdapterContextMenuInfo

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
AdapterContextMenuInfo(
    targetView: View!, 
    position: Int, 
    id: Long)
```

## Properties

### id

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
var id: Long
```

The row id of the item for which the context menu is being displayed.

### position

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
var position: Int
```

The position in the adapter for which the context menu is being displayed.

### targetView

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
var targetView: View!
```

The child view for which the context menu is being displayed. This will be one of the children of this AdapterView.