Skip to main content

Initialization API

Classes / Builders
ClassDescription
UnicoCheckBuilderMain SDK builder
UnicoConfigObject for credential configuration
UnicoThemeBuilderBuilder for visual customization
UnicoConfig methods
MethodTypeDescription
setHostname(hostname)StringHostname registered for your application
setHostKey(hostKey)StringSDK Key obtained from the Onboarding team
UnicoCheckBuilder methods
MethodTypeDefaultDescription
setEnvironment(env)SDKEnvironmentTypesPRODEnvironment — SDKEnvironmentTypes.PROD or SDKEnvironmentTypes.UAT
setResourceDirectory(path)StringPath to the additional resource files
setModelsPath(path)StringPath to the AI model files (required for Smart camera)
setLocale(locale)LocaleTypesPT_BRCapture screen language
setTheme(theme)UnicoThemeCustom theme built via UnicoThemeBuilder
disableCssReset()Disables the SDK's default CSS Reset
build()Returns the camera instance for prepareSelfieCamera/prepareDocumentCamera