FileDocCategorySizeDatePackage
DragController.javaAPI DocAndroid 1.5 API2427Wed May 06 22:42:46 BST 2009com.android.launcher

DragController

public interface DragController
Interface for initiating a drag within a view or across multiple views.

Fields Summary
public static int
DRAG_ACTION_MOVE
Indicates the drag is a move.
public static int
DRAG_ACTION_COPY
Indicates the drag is a copy.
Constructors Summary
Methods Summary
public voidremoveDragListener(com.android.launcher.DragController$DragListener l)
Remove a previously installed drag listener.

public voidsetDragListener(com.android.launcher.DragController$DragListener l)
Sets the drag listner which will be notified when a drag starts or ends.

public voidstartDrag(android.view.View v, DragSource source, java.lang.Object info, int dragAction)
Starts a drag

param
v The view that is being dragged
param
source An object representing where the drag originated
param
info The data associated with the object that is being dragged
param
dragAction The drag action: either {@link #DRAG_ACTION_MOVE} or {@link #DRAG_ACTION_COPY}