PSPDFToolbarDualButton

Objective-C


@interface PSPDFToolbarDualButton : PSPDFToolbarButton

Swift

class ToolbarDualButton : ToolbarButton

PSPDFToolbarButton that combines two buttons into one.

  • Deprecated

    Deprecated in PSPDFKit 9.4 for iOS. On iOS 13, PSPDFKit dose not use this gesture recognizer and adding actions to it will not work.

    On iOS 13, PSPDFKit dose not use this gesture recognizer and adding actions to it will not work.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDF_DEPRECATED_IOS(
        9.4, "On iOS 13, PSPDFKit dose not use this gesture recognizer and adding "
             "actions to it will not work.")
        UILongPressGestureRecognizer *longPressRecognizer;

    Swift

    var longPressRecognizer: UILongPressGestureRecognizer { get }
  • The primary button image.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
        UIImage *primaryImage;

    Swift

    var primaryImage: UIImage? { get set }
  • The secondary button image. Gets composited together with primaryImage.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, nullable)
        UIImage *secondaryImage;

    Swift

    var secondaryImage: UIImage? { get set }
  • Draws primaryImage faded-out when set to NO. Prevents action dispatch when enabled.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) BOOL primaryEnabled;

    Swift

    var primaryEnabled: Bool { get set }
  • Draws secondaryImage faded-out when set to NO.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        BOOL secondaryEnabled;

    Swift

    var secondaryEnabled: Bool { get set }