ScanbotSDK

@interface ScanbotSDK

Main class of Scanbot SDK. Lets you install the license and allows basic configuration.

  • Enables or disables the Scanbot SDK logging. If enabled Scanbot SDK logs various warnings, errors and info to the console. By default logging is off.

    Declaration

    Objective-C

    + (void)setLoggingEnabled:(id)enabled;

    Swift

    class func setLoggingEnabled(_ enabled: Any!)

    Parameters

    enabled

    YES, if Scanbot SDK should log, NO otherwise.

  • Enables or disables the Scanbot SDK license logging. If enabled Scanbot SDK logs information about the license to the console. By default license logging is enabled.

    Declaration

    Objective-C

    + (void)setLicenseLoggingEnabled:(id)enabled;

    Swift

    class func setLicenseLoggingEnabled(_ enabled: Any!)

    Parameters

    enabled

    YES, if Scanbot SDK should log the license, NO otherwise.

  • A block that is being called when the license or trial time expired. For example you can show an alert to inform your users and the terminate the app. Note: Once the license has expired or is otherwise invalid, none of the SDK classes and functions will return meaningful results.

    Declaration

    Objective-C

    + (void)setLicenseFailureHandler:(SBSDKLicenseFailureHandler _Nullable)handler;

    Swift

    class func setLicenseFailureHandler(_ handler: SBSDKLicenseFailureHandler?)
  • Sets up the default license failure handler which is being called when the license or trial time expired. The default handler shows an alert to inform your users and terminates the app once the user presses OK.

    Declaration

    Objective-C

    + (void)setupDefaultLicenseFailureHandler;

    Swift

    class func setupDefaultLicenseFailureHandler()
  • Installs the Scanbot SDK license from a string.

    Declaration

    Objective-C

    + (id)setLicense:(id)licenseString;

    Swift

    class func setLicense(_ licenseString: Any!) -> Any!

    Parameters

    licenseString

    The string containing the license.

    Return Value

    YES, if the license was installed and is active, NO otherwise.

  • Checks the active license.

    Declaration

    Objective-C

    + (id)isLicenseValid;

    Swift

    class func isLicenseValid() -> Any!

    Return Value

    YES, if a valid license is installed and not expired or if the trial period is running. NO otherwise.

  • Sets the bundle that contains the additional ScanbotSDK data bundles, which usually is your applications bundle.In this case you dont need to call this function. If you embedded the data bundles in another bundle you must specify it here.

    Declaration

    Objective-C

    + (void)setResourceBundle:(id)resourceBundle;

    Swift

    class func setResourceBundle(_ resourceBundle: Any!)
  • The bundle that ScanbotSDK searches for its additional data bundles. Defaults to [NSBundle mainBundle].

    Declaration

    Objective-C

    + (id)resourceBundle;

    Swift

    class func resourceBundle() -> Any!