NetverifyUIController
@interface NetverifyUIController : NSObject
Main controller that defines the workflow of Fastfill and Netverify.
-
Create an instance of the Netverify SDK.
Declaration
Objective-C
- (instancetype _Nonnull)initWithConfiguration: (NetverifyConfiguration *_Nonnull)configuration;
Swift
init(configuration: NetverifyConfiguration)
Parameters
configuration
is used for the current instance
Return Value
NetverifyUIController instance @throws an NSException if NetverifyConfiguration is not configured correctly. Please note that in Swift you need to catch the underlaying exception and translate it into NSError. Please check out our sample project if you need more information.
-
Use this method to setup the NetverifyUIController correctly before any scan view controller will be provided.
Declaration
Objective-C
- (void)setupWithDocument:(NetverifyDocument *_Nonnull)document;
Swift
func setup(with document: NetverifyDocument)
Parameters
document
selected for scanning after provided via netverifyUIController:didDetermineAvailableCountries:suggestedCountry: delegate method. (please note that in case paperDocument should be used selectedVariant has to be set prior calling this method)
-
Use this method when user consent is given.
Declaration
Objective-C
- (void)userConsentGiven:(BOOL)isAccepted;
Swift
func userConsent(given isAccepted: Bool)
Parameters
isAccepted
boolean to indicate if the user did consent or not
-
Call the cancel method anytime in the workflow to abort the netverifyUIController process. Dismissing a currently active NetverifyCustomScanViewController has to be done in the client application. After calling cancel NetverifyUIController object has to be newly created.
Declaration
Objective-C
- (void)cancel;
Swift
func cancel()
-
Call this method in case an error was received in netverifyUIController:didDetermineError:retryPossible: Calling this method only makes sense if retryPossible: is positive
Declaration
Objective-C
- (void)retryAfterError;
Swift
func retryAfterError()
-
Declaration
Objective-C
+ (NSString *_Nonnull)sdkVersion;
Swift
class func sdkVersion() -> String
Return Value
the Netverify SDK version.
-
Declaration
Objective-C
- (NSUUID *_Nullable)debugID;
Swift
func debugID() -> UUID?
Return Value
a sessionID if sendDebugInfoToJumio is set to YES.
-
Call this method to destroy the NetverifyUIController instance, before you set it to nil
Declaration
Objective-C
- (void)destroy;
Swift
func destroy()