NetverifyCustomScanViewController
@interface NetverifyCustomScanViewController : UIViewController
View Controller that handles scanning. It can display and handle different scanning methods.
-
Delegate class which implements the NetverifyCustomScanViewControllerDelegate protocol
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull) id<NetverifyCustomScanViewControllerDelegate> customScanViewControllerDelegate;Swift
unowned(unsafe) var customScanViewControllerDelegate: NetverifyCustomScanViewControllerDelegate { get set } -
UIView which should be used to add any additional custom views as a subview
Declaration
Objective-C
@property (nonatomic, strong, readwrite) UIView *_Nonnull customOverlayLayer;Swift
var customOverlayLayer: UIView { get set } -
This method can not be called if scanning is paused or stopped
Declaration
Objective-C
- (BOOL)isFallbackAvailable;Swift
func isFallbackAvailable() -> BoolReturn Value
BOOL Determines whether an alternative scan method is available
-
Switch to the alternative scan method
Declaration
Objective-C
- (void)switchToFallback;Swift
func switchToFallback() -
This method can not be called if scanning is paused or stopped
Declaration
Objective-C
- (BOOL)hasFlash;Swift
func hasFlash() -> BoolReturn Value
true if a flash is available
-
This method can not be called if scanning is paused or stopped
Declaration
Objective-C
- (BOOL)hasMultipleCameras;Swift
func hasMultipleCameras() -> BoolReturn Value
true if there is AVCaptureDevicePositionFront and AVCaptureDevicePositionBack
-
This method can not be called if scanning is paused or stopped
Declaration
Objective-C
- (BOOL)isFlashOn;Swift
func isFlashOn() -> BoolReturn Value
true if the flash is currently on.
-
This method can not be called if scanning is paused or stopped
Declaration
Objective-C
- (JumioCameraPosition)currentCameraPosition;Swift
func currentCameraPosition() -> JumioCameraPositionReturn Value
The current camera position.
-
Determines whether the Scan View is a manual image picker
Declaration
Objective-C
- (BOOL)isImagePicker;Swift
func isImagePicker() -> Bool -
Target action for the shutter button in case the Scan View is a manual image picker
Declaration
Objective-C
- (void)takeImage;Swift
func takeImage() -
Declaration
Objective-C
- (BOOL)canToggleFlash;Swift
func canToggleFlash() -> BoolReturn Value
Determines whether the flash can be toggled
-
Toggles the built-in flash. This method can not be called if scanning is paused or stopped
Declaration
Objective-C
- (void)toggleFlash;Swift
func toggleFlash() -
Determines whether the primary camera position can be switched
Declaration
Objective-C
- (BOOL)canSwitchCamera;Swift
func canSwitchCamera() -> Bool -
Switches between available cameraPositions. This method can not be called if scanning is paused or stopped
Declaration
Objective-C
- (void)switchCamera;Swift
func switchCamera() -
Call this method if you want to restart the capturing process.
Declaration
Objective-C
- (void)retryScan;Swift
func retryScan() -
Call this method if you want to pause the capturing process. Camera preview will not be paused.
Declaration
Objective-C
- (void)pauseScan;Swift
func pauseScan() -
Declaration
Objective-C
- (CGRect)overlayFrame;Swift
func overlayFrame() -> CGRectReturn Value
the dimensions of the ROI overlay which must not be overlayed by any custom views
-
Method to get the suggested help text
Declaration
Objective-C
- (NSString *_Nonnull)localizedShortHelpText;Swift
func localizedShortHelpText() -> StringReturn Value
String of localized short help text
-
Method to get the suggested help text in long version
Declaration
Objective-C
- (NSString *_Nonnull)localizedLongHelpText;Swift
func localizedLongHelpText() -> StringReturn Value
String of localized full help text
-
Declaration
Objective-C
- (NSUInteger)currentStep;Swift
func currentStep() -> UIntReturn Value
the running number of scanViewControllers within the whole workflow which can be used to display the progress in the workflow. e.g. Step 1 of 3
-
Declaration
Objective-C
- (NSUInteger)totalSteps;Swift
func totalSteps() -> UIntReturn Value
the number of total scanViewControllers which can be used to display the progress in the workflow. e.g. Step 1 of 3
-
Declaration
Objective-C
- (NetverifyScanMode)currentScanMode;Swift
func currentScanMode() -> NetverifyScanModeReturn Value
the scanMode of the current scanViewController
-
Sets the vertical offset of the overlay (MRZ, OCR_Card) from the center.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) CGFloat verticalRoiOffset;Swift
var verticalRoiOffset: CGFloat { get set } -
Sets the top margin of the Jumio logo and Privacy Policy.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) CGFloat brandingLogoTopMargin;Swift
var brandingLogoTopMargin: CGFloat { get set }
View on GitHub
NetverifyCustomScanViewController Class Reference