PTSavedSignaturesViewControllerDelegate
@protocol PTSavedSignaturesViewControllerDelegate <NSObject>
A delegate used to respond to events from a PTSavedSignaturesViewController instance.
-
The selected the signature’s file name.
Declaration
Objective-C
@required @property (nonatomic, copy, readwrite, nullable) NSString *selectedSignature;Swift
var selectedSignature: String? { get set } -
Notifies the delegate when the user wishes to create a new signature that will be saved for reuse.
Declaration
Objective-C
- (void)savedSignaturesControllerNewSignature: (nonnull PTSavedSignaturesViewController *)savedSignaturesController;Swift
func savedSignaturesControllerNewSignature(_ savedSignaturesController: PTSavedSignaturesViewController) -
Notifies the delegate when the user wishes to save new to the document.
Declaration
Objective-C
- (void)savedSignaturesController: (nonnull PTSavedSignaturesViewController *)savedSignaturesController addSignature:(nonnull PTPDFDoc *)signatureDoc;Swift
func savedSignaturesController(_ savedSignaturesController: PTSavedSignaturesViewController, addSignature signatureDoc: PTPDFDoc)Parameters
signatureDocA PDF that contains the signature.
-
Asks the delegate whether to show the
Create New Signaturebutton.Declaration
Objective-C
- (BOOL)savedSignaturesControllerShouldHideCreateNewSignatureButton: (nonnull PTSavedSignaturesViewController *)savedSignaturesController;Swift
func savedSignaturesControllerShouldHideCreateNewSignatureButton(_ savedSignaturesController: PTSavedSignaturesViewController) -> Bool -
Notifies the delegate when the user picks a signature.
Declaration
Objective-C
- (void)savedSignaturesControllerChangeImage: (nonnull PTSavedSignaturesViewController *)savedSignaturesController image:(nonnull UIImage *)image;Swift
func savedSignaturesControllerChangeImage(_ savedSignaturesController: PTSavedSignaturesViewController, image: UIImage)Parameters
imageThe image of the signature.
-
Notifies the delegate when the user deletes a signature.
Declaration
Objective-C
- (void)savedSignaturesControllerDeleteSelectedSignature: (nonnull PTSavedSignaturesViewController *)savedSignaturesController;Swift
func savedSignaturesControllerDeleteSelectedSignature(_ savedSignaturesController: PTSavedSignaturesViewController) -
Informs the delegate that the signature view controller should be closed.
Declaration
Objective-C
- (void)savedSignaturesControllerCloseSignatureDialog: (nonnull PTSavedSignaturesViewController *)savedSignaturesController;Swift
func savedSignaturesControllerCloseSignatureDialog(_ savedSignaturesController: PTSavedSignaturesViewController)
PTSavedSignaturesViewControllerDelegate Protocol Reference