MultipageReviewViewControllerDelegate
public protocol MultipageReviewViewControllerDelegate : AnyObject
The MultipageReviewViewControllerDelegate protocol defines methods that allow you to handle user actions in the MultipageReviewViewControllerDelegate (rotate, reorder, tap add, delete…)
Note
Component API only.-
Called when a user reorder the pages collection
Declaration
Swift
func multipageReview(_ viewController: MultipageReviewViewController, didReorder pages: [GiniVisionPage])
Parameters
viewController
MultipageReviewViewController
where the pages are reviewed.pages
Reordered pages collection
-
Called when a user rotates one of the pages.
Declaration
Swift
func multipageReview(_ viewController: MultipageReviewViewController, didRotate page: GiniVisionPage)
Parameters
viewController
MultipageReviewViewController
where the pages are reviewed.page
GiniVisionPage
rotated. -
Called when a user deletes one of the pages.
Declaration
Swift
func multipageReview(_ viewController: MultipageReviewViewController, didDelete page: GiniVisionPage)
Parameters
viewController
MultipageReviewViewController
where the pages are reviewed.page
Page deleted.
-
Called when a user taps on the error action when the errored page
Declaration
Swift
func multipageReview(_ viewController: MultipageReviewViewController, didTapRetryUploadFor page: GiniVisionPage)
Parameters
viewController
MultipageReviewViewController
where the pages are reviewed.errorAction
NoticeActionType
selected.page
Page where the error action has been triggered
-
Called when a user taps on the add page button
Declaration
Swift
func multipageReviewDidTapAddImage(_ viewController: MultipageReviewViewController)
Parameters
viewController
MultipageReviewViewController
where the pages are reviewed.