BcmGlobalConfig
The SDK global configuration interface (IBcmGlobalConfig) is a non optional interface.
The interface is used for configuring underlying Biocapture SDK components, such as API keys, and global branding.
You can consume this class by subclassing it, which enables lazy value computation.
Interface
Swift:
public struct BcmGlobalConfig {
/**
* SDK licencing and activation
*/
let licenseKey: String?
/**
* Branding configuration interface; can be overwritten
*/
let branding: BcmBranding
public init(
licenseKey: String? = nil,
branding: BcmBranding = BcmBranding()
) {
self.licenseKey = licenseKey
self.branding = branding
}
}
Example
Swift:
let bcmGlobalConfig = BcmGlobalConfig(
licenseKey: "<license-key>")
Usage
You can set the globalConfigin the constructor of the Scan Controller (BcmScanController).
Swift:
let bcmScanController = BcmScanController(
globalConfig: bcmGlobalConfig)