ReviewViewController
public final class ReviewViewController : UIViewController
extension ReviewViewController: UICollectionViewDataSource
extension ReviewViewController: UICollectionViewDelegateFlowLayout
The ReviewViewController
provides a custom review screen. The user has the option to check
for blurriness and document orientation. If the result is not satisfying, the user can return to the camera screen.
The photo should be uploaded to Gini’s backend immediately after having been taken as it is safe to assume that
in most cases the photo is good enough to be processed further.
-
The object that acts as the delegate of the review view controller.
Declaration
Swift
public weak var delegate: ReviewViewControllerDelegate?
-
Called to initialize the ReviewViewController
Note
Internal usage only.
Declaration
Swift
public init(pages: [GiniCapturePage], giniConfiguration: GiniConfiguration)
Parameters
pages
the documents to be initalized with
giniConfiguration
the configuration of the SDK
-
Undocumented
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
override public func viewDidLoad()
-
Undocumented
Declaration
Swift
public override func viewDidAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
public override func viewWillLayoutSubviews()
-
Undocumented
Declaration
Swift
public override func viewDidLayoutSubviews()
-
Updates the collections with the given pages.
Declaration
Swift
public func updateCollections(with pages: [GiniCapturePage], finishedUpload: Bool = true)
Parameters
pages
Pages to be used in the collections.
-
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 collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
-
Undocumented
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets
-
Undocumented
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)