NetverifyViewControllerDelegate
@protocol NetverifyViewControllerDelegate <NSObject>
Protocol that has to be implemented when using NetverifyViewController
-
Called when the SDK and all resources are loaded. Error will be null in case of success.
Declaration
Objective-C
- (void)netverifyViewController: (NetverifyViewController *_Nonnull)netverifyViewController didFinishInitializingWithError:(NetverifyError *_Nullable)error;
Swift
optional func netverifyViewController(_ netverifyViewController: NetverifyViewController, didFinishInitializingWithError error: NetverifyError?)
Parameters
netverifyViewController
the controller instance
error
holds more detailed information about the error reason
-
Called when the SDK finished with success.
Declaration
Objective-C
- (void)netverifyViewController: (NetverifyViewController *_Nonnull)netverifyViewController didFinishWithDocumentData:(NetverifyDocumentData *_Nonnull)documentData scanReference:(NSString *_Nonnull)scanReference accountId:(NSString *_Nullable)accountId authenticationResult:(BOOL)authenticationResult;
Swift
func netverifyViewController(_ netverifyViewController: NetverifyViewController, didFinishWith documentData: NetverifyDocumentData, scanReference: String, accountId: String?, authenticationResult: Bool)
Parameters
netverifyViewController
the controller instance
documentData
data containing the extracted information
scanReference
the unique identifier of the scan session
accountId
Account Id, if available
authenticationResult
Bool identifies if Authentication passed successfully
-
Called when the SDK canceled.
Declaration
Objective-C
- (void)netverifyViewController: (NetverifyViewController *_Nonnull)netverifyViewController didCancelWithError:(NetverifyError *_Nullable)error scanReference:(NSString *_Nullable)scanReference accountId:(NSString *_Nullable)accountId;
Swift
func netverifyViewController(_ netverifyViewController: NetverifyViewController, didCancelWithError error: NetverifyError?, scanReference: String?, accountId: String?)
Parameters
netverifyViewController
the controller instance
error
NSObject holds more detailed information about the error reason
scanReference
the unique identifier of the scan session
accountId
Account Id, if available