Package com.geniusscansdk.scanflow
Enum ScanConfiguration.Source
- java.lang.Object
-
- java.lang.Enum<ScanConfiguration.Source>
-
- com.geniusscansdk.scanflow.ScanConfiguration.Source
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ScanConfiguration.Source>
- Enclosing class:
- ScanConfiguration
public static enum ScanConfiguration.Source extends java.lang.Enum<ScanConfiguration.Source>
The source of the scan flow.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScanConfiguration.Source
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ScanConfiguration.Source[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CAMERA
public static final ScanConfiguration.Source CAMERA
A camera screen will be displayed to capture an image.
-
IMAGE
public static final ScanConfiguration.Source IMAGE
An image is provided as an input to the scan flow.
-
GALLERY
public static final ScanConfiguration.Source GALLERY
Open photo picker, the chosen picture is provided as an input to the scan flow.
-
-
Method Detail
-
values
public static ScanConfiguration.Source[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScanConfiguration.Source c : ScanConfiguration.Source.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScanConfiguration.Source valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-