PSPDFDragAndDropConfiguration
Objective-C
@interface PSPDFDragAndDropConfiguration
: PSPDFBaseConfiguration <PSPDFDragAndDropConfigurationBuilder *>
Swift
class DragAndDropConfiguration : BaseConfiguration<DragAndDropConfigurationBuilder>
Used to configure various drag and drop options, on how and where it should work.
Set the object you create here on PSPDFConfiguration.dragAndDropConfiguration
.
-
Configures what items from a document should be draggable. Defaults to
PSPDFDragTypeAll
.Declaration
Objective-C
@property (nonatomic, readonly) PSPDFDragType allowedDragTypes;
Swift
var allowedDragTypes: DragAndDropConfiguration.DragType { get }
-
Configures what drops should accepted on the document. Defaults to
PSPDFDropTypeAll
.Declaration
Objective-C
@property (nonatomic, readonly) PSPDFDropType acceptedDropTypes;
Swift
var acceptedDropTypes: DragAndDropConfiguration.DropType { get }
-
Configures from where a drop should be handled. Defaults to
PSPDFDropTargetOtherPages | PSPDFDropTargetExternalApp
.Declaration
Objective-C
@property (nonatomic, readonly) PSPDFDropTarget allowedDropTargets;
Swift
var allowedDropTargets: DragAndDropConfiguration.DropTarget { get }
-
Defines if the drag should be valid outside of the originating app. Defaults to
true
.Declaration
Objective-C
@property (nonatomic, readonly) BOOL allowDraggingToExternalApps;
Swift
var allowDraggingToExternalApps: Bool { get }