Package apple.uikit.enums
Class UIDropOperation
- java.lang.Object
-
- apple.uikit.enums.UIDropOperation
-
public final class UIDropOperation extends java.lang.ObjectThe UIDropInteraction's delegate uses a UIDropOperation to tell the system what operation it will perform if the user drops.
-
-
Field Summary
Fields Modifier and Type Field Description static longCancelThe drag will be cancelled.static longCopyThe data represented by the drag item(s) will be copied.static longForbiddenThe drag will be cancelled.static longMoveThe data represented by the drag item(s) will be moved.
-
-
-
Field Detail
-
Cancel
public static final long Cancel
The drag will be cancelled.- See Also:
- Constant Field Values
-
Forbidden
public static final long Forbidden
The drag will be cancelled. Use this operation to signal that this interaction would *normally* perform a different operation, but that it explicitly forbids a drop at this specific time and place. This may cause a special symbol to be displayed on the drag image.- See Also:
- Constant Field Values
-
Copy
public static final long Copy
The data represented by the drag item(s) will be copied. This is the most common operation to use.- See Also:
- Constant Field Values
-
Move
public static final long Move
The data represented by the drag item(s) will be moved. You may use this only if UIDropSession's allowsMoveOperation is true. Otherwise it will be treated as UIDropOperationCancel. Note that the system does not give any special meaning to this operation. The delegates of both the UIDragInteraction and UIDropInteraction must cooperate to produce the correct result. For instance, the UIDropInteraction's delegate might insert the data in the new location, and the UIDragInteraction's delegate might remove the data from the old location.- See Also:
- Constant Field Values
-
-