共用方式為


DragEvent.LocalState Property

Definition

Returns the local state object sent to the system as part of the call to android.view.View#startDragAndDrop(ClipData,View.DragShadowBuilder,Object,int) startDragAndDrop().

public virtual Java.Lang.Object? LocalState { [Android.Runtime.Register("getLocalState", "()Ljava/lang/Object;", "GetGetLocalStateHandler")] get; }
[<get: Android.Runtime.Register("getLocalState", "()Ljava/lang/Object;", "GetGetLocalStateHandler")>]
member this.LocalState : Java.Lang.Object

Property Value

The local state object sent to the system by startDragAndDrop().

Attributes

Remarks

Returns the local state object sent to the system as part of the call to android.view.View#startDragAndDrop(ClipData,View.DragShadowBuilder,Object,int) startDragAndDrop(). The object is intended to provide local information about the drag and drop operation. For example, it can indicate whether the drag and drop operation is a copy or a move.

The local state is available only to views in the activity which has started the drag operation. In all other activities this method will return null

This method returns valid data for all event actions.

Java documentation for android.view.DragEvent.getLocalState().

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