- data
- A Android.Content.ClipData object pointing to the data to be transferred by the drag and drop operation.
- shadowBuilder
- A NoType:android/view/View$DragShadowBuilder;Href=../../../reference/android/view/View.DragShadowBuilder.html object for building the drag shadow.
- myLocalState
- An Java.Lang.Object containing local data about the drag and drop operation. This Object is put into every DragEvent object sent by the system during the current drag.
myLocalState is a lightweight mechanism for the sending information from the dragged View to the target Views. For example, it can contain flags that differentiate between a a copy operation and a move operation.
- flags
- Flags that control the drag and drop operation. No flags are currently defined, so the parameter should be set to 0.
Documentation for this section has not yet been entered.
Starts a drag and drop operation. When your application calls this method, it passes a NoType:android/view/View$DragShadowBuilder;Href=../../../reference/android/view/View.DragShadowBuilder.html object to the system. The system calls this object's NoType:android/view/View$DragShadowBuilder;Href=../../../reference/android/view/View.DragShadowBuilder.html#onProvideShadowMetrics(android.graphics.Point, android.graphics.Point) to get metrics for the drag shadow, and then calls the object's NoType:android/view/View$DragShadowBuilder;Href=../../../reference/android/view/View.DragShadowBuilder.html#onDrawShadow(android.graphics.Canvas) to draw the drag shadow itself.
Once the system has the drag shadow, it begins the drag and drop operation by sending drag events to all the View objects in your application that are currently visible. It does this either by calling the View object's drag listener (an implementation of NoType:android/view/View$OnDragListener;Href=../../../reference/android/view/View.OnDragListener.html#onDrag(android.view.View, android.view.DragEvent) or by calling the View object's View.OnDragEvent(DragEvent) method. Both are passed a Android.Views.DragEvent object that has a DragEvent.Action value of DragEvent.ACTION_DRAG_STARTED.
Your application can invoke startDrag() on any attached View object. The View object does not need to be the one used in NoType:android/view/View$DragShadowBuilder;Href=../../../reference/android/view/View.DragShadowBuilder.html, nor does it need to be related to the View the user selected for dragging.