Comment on page
SybrinIdentity
A base class that is the main entry point for the SDK consumer
@objc final public class SybrinIdentity : NSObject {
@objc public static let shared: SybrinIdentity
@objc final public var configuration: SybrinIdentityConfiguration?
public typealias doneLaunchingType = (Bool, String?) -> Void
public typealias failureCallbackType = (String) -> Void
public typealias cancelCallbackType = () -> Void
public typealias documentSuccessCallbackType = (DocumentModel) -> Void
public typealias greenBookSuccessCallbackType = (GreenBookModel) -> Void
public typealias idCardSuccessCallbackType = (IDCardModel) -> Void
public typealias passportSuccessCallbackType = (PassportModel) -> Void
public typealias driversLicenseSuccessCallbackType = (DriversLicenseModel) -> Void
@objc final public func changeLogLevel(to logLevel: LogLevel)
@objc final public func scanDocument(
on viewController: UIViewController,
for document: Document,
doneLaunching: SybrinIdentity.doneLaunchingType? = nil,
success: SybrinIdentity.documentSuccessCallbackType? = nil,
failure: SybrinIdentity.failureCallbackType? = nil,
cancel: SybrinIdentity.cancelCallbackType? = nil
)
@objc final public func scanDriversLicense(
on viewController: UIViewController,
for country: Country,
doneLaunching: SybrinIdentity.doneLaunchingType? = nil,
success: SybrinIdentity.driversLicenseSuccessCallbackType? = nil,
failure: SybrinIdentity.failureCallbackType? = nil,
cancel: SybrinIdentity.cancelCallbackType? = nil
)
@objc final public func scanGreenBook(
on viewController: UIViewController,
doneLaunching: SybrinIdentity.doneLaunchingType? = nil,
success: SybrinIdentity.greenBookSuccessCallbackType? = nil,
failure: SybrinIdentity.failureCallbackType? = nil,
cancel: SybrinIdentity.cancelCallbackType? = nil
)
@objc final public func scanIDCard(
on viewController: UIViewController,
for country: Country,
doneLaunching: SybrinIdentity.doneLaunchingType? = nil,
success: SybrinIdentity.idCardSuccessCallbackType? = nil,
failure: SybrinIdentity.failureCallbackType? = nil,
cancel: SybrinIdentity.cancelCallbackType? = nil
)
@objc final public func scanPassport(
on viewController: UIViewController,
for country: Country,
doneLaunching: SybrinIdentity.doneLaunchingType? = nil,
success: SybrinIdentity.passportSuccessCallbackType? = nil,
failure: SybrinIdentity.failureCallbackType? = nil,
cancel: SybrinIdentity.cancelCallbackType? = nil
)
}
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
Name | Type | Description |
Contains the configuration that you have set. |
Signature | Return Type | Description |
Void | Attempts to change the log level to the specified level. Some levels are restricted and can only be set by Sybrin developers. | |
Void | ||
Void | Opens the Sybrin view controller and starts the scan drivers license feature. Read more at Drivers License. | |
Void | ||
Void | ||
Void |
It is required that you set this variable before attempting to use any of the Sybrin features. Learn how to Get Started
Contains the configuration that you have set.
Attempts to change the log level to the specified level. Some levels are restricted and can only be set by Sybrin developers.
@objc final public func scanDocument( on viewController: UIViewController, for document:
Document
, doneLaunching: SybrinIdentity.doneLaunchingType? = nil, success: SybrinIdentity.documentSuccessCallbackType? = nil, failure: SybrinIdentity.failureCallbackType? = nil, cancel: SybrinIdentity.cancelCallbackType? = nil )
@objc final public func scanDriversLicense( on viewController: UIViewController, for country:
Country
, doneLaunching: SybrinIdentity.doneLaunchingType? = nil, success: SybrinIdentity.driversLicenseSuccessCallbackType? = nil, failure: SybrinIdentity.failureCallbackType? = nil, cancel: SybrinIdentity.cancelCallbackType? = nil )
Opens the Sybrin view controller and starts the scan drivers license feature. Read more at Drivers License.
@objc final public func scanGreenBook( on viewController: UIViewController, doneLaunching: SybrinIdentity.doneLaunchingType? = nil, success: SybrinIdentity.greenBookSuccessCallbackType? = nil, failure: SybrinIdentity.failureCallbackType? = nil, cancel: SybrinIdentity.cancelCallbackType? = nil )
@objc final public func scanIDCard( on viewController: UIViewController, for country:
Country
, doneLaunching: SybrinIdentity.doneLaunchingType? = nil, success: SybrinIdentity.idCardSuccessCallbackType? = nil, failure: SybrinIdentity.failureCallbackType? = nil, cancel: SybrinIdentity.cancelCallbackType? = nil )
@objc final public func scanPassport( on viewController: UIViewController, for country:
Country
, doneLaunching: SybrinIdentity.doneLaunchingType? = nil, success: SybrinIdentity.passportSuccessCallbackType? = nil, failure: SybrinIdentity.failureCallbackType? = nil, cancel: SybrinIdentity.cancelCallbackType? = nil )
Last modified 1yr ago