CafModuleType enum

Available Caf module types for inclusion in the SDK flow.

The declaration order below is a wire-format contract: presentationOrder is sent to the native Android bridge as a List<int> of ordinal indexes (see CafSdkBuilderConfiguration.toJson), matching the native io.caf.sdk.commons.CafModuleType Kotlin enum order (DOCUMENT_DETECTOR, DOCUMENT_DETECTOR_UI, FACE_LIVENESS, FACE_LIVENESS_UI). Do not reorder, insert, or remove values without a coordinated native bridge release — doing so silently changes which module each index maps to. caf_sdk_method_channel_test.dart pins the expected ordinals.

Inheritance
Available extensions

Values

documentDetector → const CafModuleType

Document detection flow.

const CafModuleType('DOCUMENT_DETECTOR')
documentDetectorUi → const CafModuleType

UI wrapper for document detection.

const CafModuleType('DOCUMENT_DETECTOR_UI')
faceLiveness → const CafModuleType

Face liveness flow.

const CafModuleType('FACE_LIVENESS')
faceLivenessUi → const CafModuleType

UI wrapper for face liveness.

const CafModuleType('FACE_LIVENESS_UI')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromModuleName(String? value) → CafModuleType
Resolves a module name to a CafModuleType, mapping the face liveness identifier (contract or native camelCase) to faceLiveness and falling back to documentDetector for any other value.
fromString(String value) → CafModuleType

Constants

values → const List<CafModuleType>
A constant List of the values in this enum, in order of their declaration.