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
netverifyViewControllerthe controller instance
errorholds 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
netverifyViewControllerthe controller instance
documentDatadata containing the extracted information
scanReferencethe unique identifier of the scan session
accountIdAccount Id, if available
authenticationResultBool 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
netverifyViewControllerthe controller instance
errorNSObject holds more detailed information about the error reason
scanReferencethe unique identifier of the scan session
accountIdAccount Id, if available
View on GitHub
NetverifyViewControllerDelegate Protocol Reference