FUIOnboardingScanViewController

public class FUIOnboardingScanViewController : UIViewController, FUIBarcodeScannerDelegate, UICollectionViewDataSource, UICollectionViewDelegate

This controller is to display the scanner view to scan a QR code for app activation. It is also displaying the image thumbnails from camera roll and a button to start photo picker that user may choose the QR code image directly.

Theming

Supported style classes

fdlFUIOnboardingScanViewController
fdlFUIOnboardingScanViewController_cancelButton
fdlFUIOnboardingScanViewController_flashButton
fdlFUIOnboardingScanViewController_choosePhotoButton
fdlFUIOnboardingScanViewController_arrowButton
fdlFUIOnboardingScanViewController_scanGuidesImageView
fdlFUIOnboardingScanViewController_photoPicker_navigationBar

Attention

The delegate object with type FUIOnboardingScanViewControllerDelegate is declared as a weak reference. So on deallocation it will be automatically set to nil. To keep it alive as expected, developer should retain the delegate object during its whole execution scope.

  • The title on the FUIOnboardingScanView. The default string is from localized strings file - Scan

    Declaration

    Swift

    public var scanViewTitleString: String?
  • The title of the alert when user selects an image from photo library for a QR code on scanner but scanner could not find a valid QR code on that image. The default string is from localized strings file - Scan Unsuccessful

    Declaration

    Swift

    public var scanUnsuccessfulTitleString: String?
  • The message of the alert when user selects an image from photo library for a QR code on scanner but scanner could not find a valid QR code on that image. The default string is from localized strings file - Please select a QR code image.

    Declaration

    Swift

    public var scanUnsuccessfulMessageString: String?
  • The string to be used on the button to dismiss the alert. The default string is from localized strings file - OK

    Declaration

    Swift

    public var okButtonString: String?
  • The title of the alert when user got the QR code from either scanner or photo library for onboarding activation. However, the system does not recognize the QR code. The default string is from localized strings file - Invalid QR Code

    Declaration

    Swift

    public var invalidQRCodeTitleString: String?
  • The message of the alert when user got the QR code from either scanner or photo library for onboarding activation. However, the system does not recognize the QR code. The default string is from localized strings file - The QR code was not recognized.

    Declaration

    Swift

    public var invalidQRCodeMessageString: String?
  • The title of the alert when user tapped the Choose Photo icon but the permission to access to the photo library was not granted. The default string is from localized strings file - Allow Access to Photos

    Declaration

    Swift

    public var allowPhotoAccessTitleString: String?
  • The message of the alert when user tapped the Choose Photo icon but the permission to access to the photo library was not granted. The default string is from localized strings file - To choose a QR code image, please give access to your photos in your device’s privacy settings.

    Declaration

    Swift

    public var allowPhotoAccessMessageString: String?
  • The title of the alert when user enter this scan view but the permission to access camera was not granted. The default string is from localized strings file - Allow Access to Camera

    Declaration

    Swift

    public var allowCameraAccessTitleString: String?
  • The message of the alert when user enter this scan view but the permission to access camera was not granted. The default string is from localized strings file - To scan using the camera, please give access to your camera in your device’s privacy settings.

    Declaration

    Swift

    public var allowCameraAccessMessageString: String?
  • The action title string not to go to the Settings app for the alert when the permission to access camera or photo library was not granted. The default string is from localized strings file - Not Now

    Declaration

    Swift

    public var notNowActionString: String?
  • The action title string for going to the Settings app for the alert when the permission to access camera or photo library was not granted. The default string is from localized strings file - Settings

    Declaration

    Swift

    public var settingsActionString: String?