Package apple.uikit.protocol
Interface UIDropSession
-
- All Superinterfaces:
NSProgressReporting,UIDragDropSession
public interface UIDropSession extends UIDragDropSession, NSProgressReporting
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUIDropSession.Block_loadObjectsOfClassCompletion
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NSProgressloadObjectsOfClassCompletion(NSItemProviderReading aClass, UIDropSession.Block_loadObjectsOfClassCompletion completion)A convenience method that can be used only during the UIDropInteractionDelegate's implementation of `-dropInteraction:performDrop:`.UIDragSessionlocalDragSession()The `UIDragSession` that corresponds to this `UIDropSession`.longprogressIndicatorStyle()The kind of progress and cancellation UI that UIKit will display if handling this session's drop takes a significant amount of time.voidsetProgressIndicatorStyle(long value)The kind of progress and cancellation UI that UIKit will display if handling this session's drop takes a significant amount of time.-
Methods inherited from interface apple.foundation.protocol.NSProgressReporting
progress
-
Methods inherited from interface apple.uikit.protocol.UIDragDropSession
allowsMoveOperation, canLoadObjectsOfClass, hasItemsConformingToTypeIdentifiers, isRestrictedToDraggingApplication, items, locationInView
-
-
-
-
Method Detail
-
loadObjectsOfClassCompletion
NSProgress loadObjectsOfClassCompletion(NSItemProviderReading aClass, UIDropSession.Block_loadObjectsOfClassCompletion completion)
A convenience method that can be used only during the UIDropInteractionDelegate's implementation of `-dropInteraction:performDrop:`. Asynchronously instantiates objects of the provided class for each drag item that can do so. The completion handler is called on the main queue, with an array of all objects that were created, in the same order as `items`. The progress returned is an aggregate of the progress for all objects that are loaded.
-
localDragSession
UIDragSession localDragSession()
The `UIDragSession` that corresponds to this `UIDropSession`. If the drag was started in a different app, this is nil.
-
progressIndicatorStyle
long progressIndicatorStyle()
The kind of progress and cancellation UI that UIKit will display if handling this session's drop takes a significant amount of time. The default value is UIDropSessionProgressIndicatorStyleDefault, meaning that some progress UI will be shown. If you show your own progress indicator, hide the system progress UI by setting this property to UIDropSessionProgressIndicatorStyleNone.
-
setProgressIndicatorStyle
void setProgressIndicatorStyle(long value)
The kind of progress and cancellation UI that UIKit will display if handling this session's drop takes a significant amount of time. The default value is UIDropSessionProgressIndicatorStyleDefault, meaning that some progress UI will be shown. If you show your own progress indicator, hide the system progress UI by setting this property to UIDropSessionProgressIndicatorStyleNone.
-
-