FUIOnboardingScanViewControllerDelegate
@objc
public protocol FUIOnboardingScanViewControllerDelegate : AnyObject
Delegate protocol for FUIOnboardingScanViewController
.
-
A QR code has been successfully scaned. 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
, andokButtonString
properties to customize the alert.