Added in API level 1

AdapterView.AdapterContextMenuInfo


public static class AdapterView.AdapterContextMenuInfo
extends Object implements ContextMenu.ContextMenuInfo

java.lang.Object
   ↳ android.widget.AdapterView.AdapterContextMenuInfo


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

Summary

Fields

public long id

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

public int position

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

public View targetView

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

Public constructors

AdapterContextMenuInfo(View targetView, int position, long id)

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Fields

id

Added in API level 1
public long id

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

position

Added in API level 1
public int position

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

targetView

Added in API level 1
public View targetView

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

Public constructors

AdapterContextMenuInfo

Added in API level 1
public AdapterContextMenuInfo (View targetView, 
                int position, 
                long id)

Parameters
targetView View

position int

id long