Package com.microblink.blinkid.intent
Enum Class IntentDataTransferMode
- All Implemented Interfaces:
Serializable
,Comparable<IntentDataTransferMode>
,Constable
Intent data transfer mode which is used for transferring Microblink SDK data between
activities.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionData is cached in memory and can be accessed from different activities which live in the same process.LikeOPTIMISED
, but additionally data is saved to the files in internal storage.Standard Android intent data transfer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntentDataTransferMode
Returns the enum constant of this class with the specified name.static IntentDataTransferMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
Standard Android intent data transfer. Data size is limited due to Android limitations on intent extras size. -
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
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-