Controller
public class Controller
Handles the Jumio.Credential initialization and the workflow lifecycle
-
A delegate implementing the
Jumio.Controller.DelegateprotocolDeclaration
Swift
public weak var delegate: Jumio.Controller.Delegate? { get } -
Inidicates if all
Jumio.Credentialhave been successfully completedDeclaration
Swift
public var isComplete: Bool { get } -
Indicates if the consent is pre-approved
Declaration
Swift
public var isConsentPreApproved: Bool { get } -
cancel()AsynchronousCancels the workflow
Declaration
Swift
public func cancel() async -
Finishes the workflow in case
isCompleteistrueDeclaration
Swift
public func finish() -
Starts and returns a
Jumio.Credentialbased on the providedJumio.Credential.InfoDeclaration
Swift
public func start(credentialInfo: Jumio.Credential.Info) -> Jumio.Credential?Parameters
credentialInfoJumio.Credential.Infothat was received inJumio.Controller.Delegate.jumio(controller:didInitializeWith:policyUrl)Return Value
Jumio.Credentialinstance -
Retry the specified
Jumio.Errorif it is retryableParameters
errorJumio.Errorthat was received inJumio.Controller.Delegate.jumio(controller:error:) -
User consted to a consent item.
Declaration
Swift
public func userConsented(to consentItem: Jumio.ConsentItem, decision: Bool)Parameters
consentItemJumio.ConsentItemthe item that user consents to.decisionBooluser decision about this item. True if user accept it -
To be called in case of reciving logical error
.needToConsentFirst, Then user didn’t accept all the required items.Declaration
Swift
public func getUnconsentedItems() -> [Jumio.ConsentItem]?Return Value
list of
Jumio.ConsentItemneed to be consented to.
View on GitHub