PTFloatingSigViewControllerDelegate
@protocol PTFloatingSigViewControllerDelegate <NSObject>
The methods declared by the PTFloatingSigViewControllerDelegate protocol allow the adopting delegate
to respond to message from the PTFloatingSigViewController
class.
-
Informs the delegate to save the text signature for the signature form field.
Declaration
Objective-C
- (void)floatingSigViewController: (nonnull PTFloatingSigViewController *)floatingSigViewController saveAppearanceWithText:(nonnull NSString *)text withFont:(nonnull UIFont *)font asDefault:(BOOL)asDefault;
Swift
func floatingSigViewController(_ floatingSigViewController: PTFloatingSigViewController, saveAppearanceWithText text: String, with font: UIFont, asDefault: Bool)
-
Informs the delegate to save the selected image for the signature form field.
Declaration
Objective-C
- (void)floatingSigViewController: (nonnull PTFloatingSigViewController *)floatingSigViewController saveAppearanceWithUIImage:(nonnull UIImage *)uiImage asDefault:(BOOL)asDefault;
Swift
func floatingSigViewController(_ floatingSigViewController: PTFloatingSigViewController, saveAppearanceWith uiImage: UIImage, asDefault: Bool)
-
Informs the delegate to save the specified path appearance for the signature form field.
Declaration
Objective-C
- (void)floatingSigViewController: (nonnull PTFloatingSigViewController *)floatingSigViewController saveAppearanceWithPath:(nullable NSMutableArray *)points withBoundingRect:(CGRect)boundingRect asDefault:(BOOL)asDefault;
Swift
func floatingSigViewController(_ floatingSigViewController: PTFloatingSigViewController, saveAppearanceWithPath points: NSMutableArray?, withBoundingRect boundingRect: CGRect, asDefault: Bool)
-
Informs the delegate that the signature view controller should be closed.
Declaration
Objective-C
- (void)floatingSigViewControllerCloseSignatureDialog: (nonnull PTFloatingSigViewController *)floatingSigViewController;
Swift
func floatingSigViewControllerCloseSignatureDialog(_ floatingSigViewController: PTFloatingSigViewController)