Enum Class IntentDataTransferMode

java.lang.Object
java.lang.Enum<IntentDataTransferMode>
com.microblink.blinkid.intent.IntentDataTransferMode
All Implemented Interfaces:
Serializable, Comparable<IntentDataTransferMode>, Constable

public enum IntentDataTransferMode extends Enum<IntentDataTransferMode>
Intent data transfer mode which is used for transferring Microblink SDK data between activities.
  • Enum Constant Details

    • 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
      Like OPTIMISED, 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

      public static IntentDataTransferMode[] 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

      public static IntentDataTransferMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null