FUISignatureCaptureControllerDelegate

public protocol FUISignatureCaptureControllerDelegate : AnyObject

This is the delegate protocol to be used in FUISignatureCaptureController.

  • User has tapped the Done button of the signature capture controller.

    This is for the app to dismiss the signature capture controller when user tapped “Cancel” button on the FUISignatureCaptureController.

    Declaration

    Swift

    func didCancelSignatureCaptureController(fromController signatureCaptureController: FUISignatureCaptureController)

    Parameters

    signatureCaptureController
  • User has tapped the Done button of the signature capture controller.

    Declaration

    Swift

    func didFinishSigning(fromController signatureCaptureController: FUISignatureCaptureController, signatureImage: UIImage)

    Parameters

    signatureCaptureController
    signatureImage

    The image of the signature.

  • A boolean value indicates if to add a timestamp in the signature image or not.

    If this is true, a time stamp will be added to the signature image below the signature.

    Declaration

    Swift

    var addsTimestampInImage: Bool { get }
  • The formatter for the timestamp.

    If this property is nil, the default formatter will be used. Which has the format string “MM/dd/YYYY hh:mma zzz”.

    Declaration

    Swift

    var timestampFormatter: DateFormatter? { get }
  • A text string to be added to the signature image under the signature.

    This text is typically the name of the signer. It is to be added below the timestamp. Or, if addsTimestampInImage is false, it will be directly below the signature.

    Declaration

    Swift

    var footnoteText: FUIMultiLineText? { get }
  • The text alignment for the signature caption in the image.

    If this is nil, the natural alignment is used.

    Declaration

    Swift

    var footnoteTextAlignment: NSTextAlignment? { get }