ImageAnalysisNoResultsViewController

public final class ImageAnalysisNoResultsViewController : UIViewController
extension ImageAnalysisNoResultsViewController: UICollectionViewDataSource
extension ImageAnalysisNoResultsViewController: UICollectionViewDelegateFlowLayout

The ImageAnalysisNoResultsViewController provides a custom no results screen which shows some capture suggestions when there is no results when analysing an image.

  • Undocumented

    Declaration

    Swift

    public var didTapBottomButton: (() -> Void)
  • Undocumented

    Declaration

    Swift

    public convenience init(title: String? = nil,
                            subHeaderText: String? = NSLocalizedStringPreferredFormat("ginicapture.noresults.collection.header", comment: "no results suggestions collection header title"),
                            topViewText: String = NSLocalizedStringPreferredFormat("ginicapture.noresults.warning", comment: "Warning text that indicates that there " +
                                "was any result for this photo analysis"),
                            topViewIcon: UIImage? = UIImageNamedPreferred(named: "warningNoResults"),
                            bottomButtonText: String? = NSLocalizedStringPreferredFormat("ginicapture.noresults.gotocamera", comment: "bottom button title (go to camera button)"),
                            bottomButtonIcon: UIImage? = UIImageNamedPreferred(named: "cameraIcon"))
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public override func loadView()
  • Undocumented

    Declaration

    Swift

    public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator)
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    public func collectionView(_ collectionView: UICollectionView,
                               cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
  • Undocumented

    Declaration

    Swift

    public func numberOfSections(in collectionView: UICollectionView) -> Int