AnalysisViewController

@objcMembers
public final class AnalysisViewController : UIViewController

The AnalysisViewController provides a custom analysis screen which shows the upload and analysis activity. The user should have the option of canceling the process by navigating back to the review screen.

Note

Component API only.
  • Undocumented

    Declaration

    Swift

    public weak var trackingDelegate: AnalysisScreenTrackingDelegate?
  • Designated intitializer for the AnalysisViewController.

    Declaration

    Swift

    public init(document: GiniCaptureDocument, giniConfiguration: GiniConfiguration)

    Parameters

    document

    Reviewed document ready for analysis.

    giniConfiguration

    GiniConfiguration instance.

    Return Value

    A view controller instance giving the user a nice user interface while waiting for the analysis results.

  • Convenience intitializer for the AnalysisViewController.

    Declaration

    Swift

    public convenience init(document: GiniCaptureDocument)

    Parameters

    document

    Reviewed document ready for analysis.

    Return Value

    A view controller instance giving the user a nice user interface while waiting for the analysis results.

  • Returns an object initialized from data in a given unarchiver.

    Warning

    Not implemented.

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    public override func loadView()
  • Undocumented

    Declaration

    Swift

    override public func viewDidAppear(_ animated: Bool)
  • Displays a loading activity indicator. Should be called when document analysis is started.

    Declaration

    Swift

    public func showAnimation()
  • Hides the loading activity indicator. Should be called when document analysis is finished.

    Declaration

    Swift

    public func hideAnimation()
  • Shows an error when there was an error with either the analysis or document upload

    Declaration

    Swift

    public func showError(with message: String, action: @escaping () -> Void)
  • Hide the error view

    Declaration

    Swift

    public func hideError(animated: Bool = false)