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? = NSLocalizedString("ginivision.noresults.collection.header",
                                                                       bundle: Bundle(for: GiniVision.self),
                                                                       comment: "no results suggestions collection " +
        "header title"),
                            topViewText: String = NSLocalizedString("ginivision.noresults.warning",
                                                                    bundle: Bundle(for: GiniVision.self),
                                                                    comment: "Warning text that indicates that there " +
        "was any result for this photo analysis"),
                            topViewIcon: UIImage? = UIImage(named: "warningNoResults",
                                                            in: Bundle(for: GiniVision.self),
                                                            compatibleWith: nil)?.withRenderingMode(.alwaysTemplate),
                            bottomButtonText: String? = NSLocalizedString("ginivision.noresults.gotocamera",
                                                                          bundle: Bundle(for: GiniVision.self),
                                                                          comment: "bottom button title (go to camera" +
        " button)"),
                            bottomButtonIcon: UIImage? = UIImage(named: "cameraIcon",
                                                                 in: Bundle(for: GiniVision.self),
                                                                 compatibleWith: nil))
  • 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