次の方法で共有


View.StartDrag(ClipData, View+DragShadowBuilder, Object, Int32) Method

Definition

Starts a drag and drop operation.

[Android.Runtime.Register("startDrag", "(Landroid/content/ClipData;Landroid/view/View$DragShadowBuilder;Ljava/lang/Object;I)Z", "")]
public bool StartDrag (Android.Content.ClipData? data, Android.Views.View.DragShadowBuilder? shadowBuilder, Java.Lang.Object? myLocalState, int flags);
[<Android.Runtime.Register("startDrag", "(Landroid/content/ClipData;Landroid/view/View$DragShadowBuilder;Ljava/lang/Object;I)Z", "")>]
member this.StartDrag : Android.Content.ClipData * Android.Views.View.DragShadowBuilder * Java.Lang.Object * int -> bool

Parameters

data
ClipData

A ClipData object pointing to the data to be transferred by the drag and drop operation.

shadowBuilder
View.DragShadowBuilder

A View DragShadowBuilder object for building the drag shadow.

myLocalState
Object

An 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
Int32

Flags that control the drag and drop operation. No flags are currently defined, so the parameter should be set to 0.

Returns

Attributes

Remarks

Java documentation for android.view.View.startDrag(android.content.ClipData, android.view.DragShadowBuilder, java.lang.Object, int).

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