Enum IntentDataTransferMode
- java.lang.Object
-
- java.lang.Enum<IntentDataTransferMode>
-
- com.microblink.documentverification.intent.IntentDataTransferMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IntentDataTransferMode>
public enum IntentDataTransferMode extends java.lang.Enum<IntentDataTransferMode>
Intent data transfer mode which is used for transferring Microblink SDK data between activities.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPTIMISEDData is cached in memory and can be accessed from different activities which live in the same process.PERSISTED_OPTIMISEDLikeOPTIMISED, but additionally data is saved to the files in internal storage.STANDARDStandard Android intent data transfer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IntentDataTransferModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IntentDataTransferMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final IntentDataTransferMode STANDARD
Standard Android intent data transfer. Data size is limited due to Android limitations on intent extras size.
-
OPTIMISED
public static final IntentDataTransferMode OPTIMISED
Data is cached in memory and can be accessed from different activities which live in the same process. When process is terminated, data is lost and application code has to manage such situations to avoid crashes.
-
PERSISTED_OPTIMISED
public static final IntentDataTransferMode PERSISTED_OPTIMISED
LikeOPTIMISED, but additionally data is saved to the files in internal storage. When process is terminated, data can be read from the internal storage which is private to the application and other applications cannot access it (nor can the user). When data is not needed any more, all unused files will be cleared from the private storage. This mode is used by default.
-
-
Method Detail
-
values
public static IntentDataTransferMode[] 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 (IntentDataTransferMode c : IntentDataTransferMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IntentDataTransferMode 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
-
-