Stylus support

  • When this class is enabled on PSPDFStylusManager compatible annotations types may be created only with touches of type UITouchTypeStylus. If enabled and a compatible annotation tool is selected, users can annotate with Apple Pencil while taping and scrolling as normal with finger touches. Compatible annotations types are ink, lines, polylines, polygons, and markup types like highlight.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFApplePencilDriver : NSObject <PSPDFStylusDriver>

    Swift

    class PSPDFApplePencilDriver : NSObject, PSPDFStylusDriver
  • Abstract driver class for various styli.

    See more

    Declaration

    Objective-C

    @protocol PSPDFStylusDriver <NSObject>

    Swift

    protocol PSPDFStylusDriver : NSObjectProtocol
  • Called on stylus events.

    See more

    Declaration

    Objective-C

    @protocol PSPDFStylusDriverDelegate <NSObject>

    Swift

    protocol PSPDFStylusDriverDelegate : NSObjectProtocol
  • The stylus manager is the central point for pen/stylus management in PSPDFKit. - note: Drivers have to be linked externally, see the Extras folder in the PSPDFKit distribution. Compatible driver classes will be automatically detected at runtime. This class should not be instantiated manually but fetched from the PSPDFKit shared object.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFStylusManager : NSObject

    Swift

    class PSPDFStylusManager : NSObject
  • Protocol for stylus touches.

    See more

    Declaration

    Objective-C

    @protocol PSPDFStylusTouch <NSObject>

    Swift

    protocol PSPDFStylusTouch : NSObjectProtocol