PSPDFDefaultStylusTouch


@interface PSPDFDefaultStylusTouch : NSObject <PSPDFStylusTouch>

The default class for any stylus touch.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Create a new instance with a touch classification and a pressure value.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithClassification:
                                (PSPDFStylusTouchClassification)classification
                                          pressure:(CGFloat)pressure;

    Swift

    init(classification: PSPDFStylusTouchClassification, pressure: CGFloat)
  • The classification of the touch. Defines how the touch will be handled.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFStylusTouchClassification classification;

    Swift

    var classification: PSPDFStylusTouchClassification { get }
  • The pressure value of the touch on the screen. Can be between 0 and 1.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGFloat pressure;

    Swift

    var pressure: CGFloat { get }