SDK
public class SDK : NSObject
Is used to setup and start a workflow based on a pre-generated SDK token
-
Returns the Jumio SDK version
Declaration
Swift
public static var version: String { get } -
Checks if the device is jail broken
Declaration
Swift
public static var isJailbroken: Bool { get } -
Specify the data center in which the token has been generated
Declaration
Swift
public var dataCenter: Jumio.DataCenter? { get set } -
A Jumio SDK token. This token contains information about the workflow, credential, transaction identifiers and other parameters
Declaration
Swift
public var token: String { get set } -
A delegate implementing the
Jumio.DefaultUIDelegateprotocolNote
This is only needed if starting with default UIDeclaration
Swift
public weak var defaultUIDelegate: DefaultUIDelegate? { get set } -
Returns a
Jumio.ViewControllerif workflow got started by callingJumio.SDK.startDefaultUI()Throws
an error if customUI got startedDeclaration
Swift
public func viewController() throws -> Jumio.ViewControllerReturn Value
Jumio.ViewControllerinstance -
Starts the SDK in default UI with the specified token and data center
Declaration
Swift
public func startDefaultUI() -
Starts the SDK in custom UI with the specified token and data center
Declaration
Swift
public func start(_ delegate: Jumio.Controller.Delegate) -> Jumio.ControllerParameters
delegateJumio.Controller.DelegateimplementationReturn Value
Jumio.Controllerinstance
-
Customize the SDK theme overriden with prefered options
Parameters
ThemeJumio.Themeimplementation -
This method will handle the deeplink URL
Declaration
Swift
public static func handleDeeplinkURL(_ url: URL) -> BoolParameters
urlthe deeplink url
Return Value
trueif the SDK can handle this link orfalseotherwise -
This method will set the bundle which will be used for resources
Declaration
Swift
public func setResourcesBundle(_ bundle: Bundle)Parameters
bundleresources bundle
View on GitHub