View.DragFlagGlobalSameApplication 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.Views.DragFlags enum directly instead of this field.
標記表示拖曳可以跨越視窗邊界(在同一應用程式內)。
[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
欄位值
Value = 4096- 屬性
備註
標記表示拖曳可以跨越視窗邊界(在同一應用程式內)。 當 #startDragAndDrop(ClipData, DragShadowBuilder, Object, int) 以此標誌呼叫時,只有屬於同一應用程式(即共用相同 UID)且 targetSdkVersion >= android.os.Build.VERSION_CODES#N API 24 的可視視窗才能參與拖曳操作並接收拖曳內容。
如果同時設定了 DRAG_FLAG_GLOBAL_SAME_APPLICATION 和 DRAG_FLAG_GLOBAL,那麼 DRAG_FLAG_GLOBAL_SAME_APPLICATION 會優先,拖曳只會拖到同一應用程式的可見視窗。
Java 文件 android.view.View.DRAG_FLAG_GLOBAL_SAME_APPLICATION。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。