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.DefaultUIDelegate protocol

    Note

    This is only needed if starting with default UI

    Declaration

    Swift

    public weak var defaultUIDelegate: DefaultUIDelegate? { get set }
  • Returns a Jumio.ViewController if workflow got started by calling Jumio.SDK.startDefaultUI()

    Throws

    an error if customUI got started

    Declaration

    Swift

    public func viewController() throws -> Jumio.ViewController

    Return Value

    Jumio.ViewController instance

  • 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.Controller

    Parameters

    delegate

    Jumio.Controller.Delegate implementation

    Return Value

    Jumio.Controller instance

Intermediate handling

  • Customize the SDK theme overriden with prefered options

    Declaration

    Swift

    public func customize(theme: Jumio.Theme)

    Parameters

    Theme

    Jumio.Theme implementation

  • This method will handle the deeplink URL

    Declaration

    Swift

    public static func handleDeeplinkURL(_ url: URL) -> Bool

    Parameters

    url

    the deeplink url

    Return Value

    true if the SDK can handle this link or false otherwise

  • This method will set the bundle which will be used for resources

    Declaration

    Swift

    public func setResourcesBundle(_ bundle: Bundle)

    Parameters

    bundle

    resources bundle