Compartilhar via


View.CancelDragAndDrop Method

Definition

Cancels an ongoing drag and drop operation.

[Android.Runtime.Register("cancelDragAndDrop", "()V", "", ApiSince=24)]
public void CancelDragAndDrop ();
[<Android.Runtime.Register("cancelDragAndDrop", "()V", "", ApiSince=24)>]
member this.CancelDragAndDrop : unit -> unit
Attributes

Remarks

Cancels an ongoing drag and drop operation.

A android.view.DragEvent object with android.view.DragEvent#getAction() value of android.view.DragEvent#ACTION_DRAG_ENDED and android.view.DragEvent#getResult() value of false will be sent to every View that received android.view.DragEvent#ACTION_DRAG_STARTED even if they are not currently visible.

This method can be called on any View in the same window as the View on which #startDragAndDrop(ClipData, DragShadowBuilder, Object, int) startDragAndDrop was called.

Java documentation for android.view.View.cancelDragAndDrop().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to