View.DragFlagGlobalSameApplication Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.DragFlags enum directly instead of this field.

Flag indicating that a drag can cross window boundaries (within the same application).

[Android.Runtime.Register("DRAG_FLAG_GLOBAL_SAME_APPLICATION", ApiSince=35)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.DragFlags enum directly instead of this field.", true)]
public const Android.Views.DragFlags DragFlagGlobalSameApplication = 4096;
[<Android.Runtime.Register("DRAG_FLAG_GLOBAL_SAME_APPLICATION", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.DragFlags enum directly instead of this field.", true)>]
val mutable DragFlagGlobalSameApplication : Android.Views.DragFlags

Field Value

Value = 4096
Attributes

Remarks

Flag indicating that a drag can cross window boundaries (within the same application). When #startDragAndDrop(ClipData, DragShadowBuilder, Object, int) is called with this flag set, only visible windows belonging to the same application (ie. share the same UID) with targetSdkVersion >= android.os.Build.VERSION_CODES#N API 24 will be able to participate in the drag operation and receive the dragged content.

If both DRAG_FLAG_GLOBAL_SAME_APPLICATION and DRAG_FLAG_GLOBAL are set, then DRAG_FLAG_GLOBAL_SAME_APPLICATION takes precedence and the drag will only go to visible windows from the same application.

Java documentation for android.view.View.DRAG_FLAG_GLOBAL_SAME_APPLICATION.

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