FUIOnboardingScanViewControllerDelegate

@objc
public protocol FUIOnboardingScanViewControllerDelegate

Delegate protocol for FUIOnboardingScanViewController.

  • A QR code has been successfully scanned. The implementation should validate this QR code.

    Declaration

    Swift

    @objc
    optional func scanViewController(_ scanViewController: FUIOnboardingScanViewController, shouldValidateScanResult scanResult: String) -> Bool

    Return Value

    True if the QR code is validated successfully and the confirm view will be displayed. Otherwise, an alert will be displayed to alert user to scan another QR code, or select another QRCode image. Caller can use the invalidQRCodeTitleString, invalidQRCodeMessageString, and okButtonString properties to customize the alert.