init
open override fun init(config: PreviewConfig, resultHandlingCallback: PreviewResultHandlingCallback)
This is for the preview to get initial configuration data to know what to do If the config object is not set, the other interface API would not work
See also
Parameters
config
the configuration for the preview
result Handling Callback
the callback to handle the scanned barcode per frame
Throws
if the license is not activated. Please refer to com.samsung.android.knox.smartscan.license.ScanLicenseClient.getScanLicense to check the state