diff options
Diffstat (limited to 'src/com/android/launcher2/DragSource.java')
-rw-r--r-- | src/com/android/launcher2/DragSource.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/com/android/launcher2/DragSource.java b/src/com/android/launcher2/DragSource.java index a654b93c9..54404770a 100644 --- a/src/com/android/launcher2/DragSource.java +++ b/src/com/android/launcher2/DragSource.java @@ -25,6 +25,21 @@ import com.android.launcher2.DropTarget.DragObject; * */ public interface DragSource { + /** + * @return whether items dragged from this source supports + */ boolean supportsFlingToDelete(); - void onDropCompleted(View target, DragObject d, boolean success); + + /** + * A callback specifically made back to the source after an item from this source has been flung + * to be deleted on a DropTarget. In such a situation, this method will be called after + * onDropCompleted, and more importantly, after the fling animation has completed. + */ + void onFlingToDeleteCompleted(); + + /** + * A callback made back to the source after an item from this source has been dropped on a + * DropTarget. + */ + void onDropCompleted(View target, DragObject d, boolean isFlingToDelete, boolean success); } |