Preloader
class Preloader
Instantiate a Jumio.Preloader to preload Jumio’s machine learning models, which are needed for capturing.
-
A shared instance to use the preloader
Declaration
Swift
public static var shared: Preloader { get } -
A delegate implementing the
Jumio.Preloader.DelegateprotocolDeclaration
Swift
public weak var delegate: Delegate? { get set }
-
Preloads all machine learning models, which are needed for the different capture methods. The models need to be loaded exactly once. Afterwards, they are saved until
clean()is called.Declaration
Swift
public func preloadIfNeeded() -
Cancels any ongoing preloading.
Declaration
Swift
public func cancel() -
Set the local resource bundle if there is any models bundled.
Declaration
Swift
public func setResourcesBundle(_ bundle: Bundle) -
Cleans all stored machine learning models, which are saved on device.
Declaration
Swift
public static func clean()
View on GitHub