Added in API level 1

AdapterContextMenuInfo

open class AdapterContextMenuInfo : ContextMenu.ContextMenuInfo
kotlin.Any
   ↳ android.widget.AdapterView.AdapterContextMenuInfo

Extra menu information provided to the android.view.View.OnCreateContextMenuListener#onCreateContextMenu(ContextMenu, View, ContextMenuInfo) callback when a context menu is brought up for this AdapterView.

Summary

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

Properties
Long

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

Int

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

View!

The child view for which the context menu is being displayed.

Public constructors

AdapterContextMenuInfo

Added in API level 1
AdapterContextMenuInfo(
    targetView: View!,
    position: Int,
    id: Long)

Properties

id

Added in API level 1
var id: Long

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

position

Added in API level 1
var position: Int

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

targetView

Added in API level 1
var targetView: View!

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