PSPDFDragAndDropConfiguration


@interface PSPDFDragAndDropConfiguration
    : PSPDFBaseConfiguration <PSPDFDragAndDropConfigurationBuilder *>

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 (readonly, nonatomic) PSPDFDragType allowedDragTypes;

    Swift

    var allowedDragTypes: PSPDFDragType { get }
  • Configures what drops should accepted on the document. Defaults to PSPDFDropTypeAll.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFDropType acceptedDropTypes;

    Swift

    var acceptedDropTypes: PSPDFDropType { get }
  • Configures from where a drop should be handled. Defaults to PSPDFDropTargetOtherPages | PSPDFDropTargetExternalApp.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFDropTarget allowedDropTargets;

    Swift

    var allowedDropTargets: PSPDFDropTarget { get }
  • Defines if the drag should be valid outside of the originating app. Defaults to YES.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL allowDraggingToExternalApps;

    Swift

    var allowDraggingToExternalApps: Bool { get }