Java android.view DragEvent fields, constructors, methods, implement or subclass

Example usage for Java android.view DragEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view DragEvent.

The text is from its open source code.

Field

intACTION_DRAG_STARTED
Action constant returned by #getAction() : Signals the start of a drag and drop operation.
intACTION_DRAG_LOCATION
Action constant returned by #getAction() : Sent to a View after #ACTION_DRAG_ENTERED while the drag shadow is still within the View object's bounding box, but not within a descendant view that can accept the data.
intACTION_DROP
Action constant returned by #getAction() : Signals to a View that the user has released the drag shadow, and the drag point is within the bounding box of the View and not within a descendant view that can accept the data.
intACTION_DRAG_ENDED
Action constant returned by #getAction() : Signals to a View that the drag and drop operation has concluded.
intACTION_DRAG_ENTERED
Action constant returned by #getAction() : Signals to a View that the drag point has entered the bounding box of the View.
intACTION_DRAG_EXITED
Action constant returned by #getAction() : Signals that the user has moved the drag shadow out of the bounding box of the View or into a descendant view that can accept the data.

Method

intgetAction()
Inspect the action value of this event.
ClipDatagetClipData()
Returns the android.content.ClipData object sent to the system as part of the call to android.view.View#startDragAndDrop(ClipData,View.DragShadowBuilder,Object,int) startDragAndDrop() .
ClipDescriptiongetClipDescription()
Returns the android.content.ClipDescription object contained in the android.content.ClipData object sent to the system as part of the call to android.view.View#startDragAndDrop(ClipData,View.DragShadowBuilder,Object,int) startDragAndDrop() .
ObjectgetLocalState()
Returns the local state object sent to the system as part of the call to android.view.View#startDragAndDrop(ClipData,View.DragShadowBuilder,Object,int) startDragAndDrop() .
booleangetResult()

Returns an indication of the result of the drag and drop operation.

floatgetX()
Gets the X coordinate of the drag point.
floatgetY()
Gets the Y coordinate of the drag point.