Class ScanViewConfigRunValidationException.MlKitModuleMissing
-
- All Implemented Interfaces:
-
java.io.Serializable
public class ScanViewConfigRunValidationException.MlKitModuleMissing extends ScanViewConfigRunValidationException
A feature was enabled in the configuration without its Google ML Kit module on the runtime classpath.
Google ML Kit is an opt-in dependency: the SDK declares it
compileOnly, so an integrator adds it only for the feature they use (see MSDK-1548). Rather than silently disabling the feature, the SDK fails so the misconfiguration cannot ship unnoticed. The message names the missing module and how to resolve it.Catch this type to handle either module being absent, or the subtypes to tell them apart.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classScanViewConfigRunValidationException.MlKitModuleMissing.FaceDetectionfaceDetectionEnabledistrueonuniversalIdConfigormrzConfig, butcom.google.mlkit:face-detectionis not on the runtime classpath.public final classScanViewConfigRunValidationException.MlKitModuleMissing.NativeBarcodenativeBarcodeScanningFormatsis set, butcom.google.mlkit:barcode-scanningis not on the runtime classpath. This affects only the optional legacy native barcode detector — Anyline's own barcode scanning does not use Google ML Kit.
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-