Package com.microblink.blinkid.intent

# 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.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `OPTIMISED`
  Data is cached in memory and can be accessed from different activities which live in the same process.
  `PERSISTED_OPTIMISED`
  Like `OPTIMISED`, but additionally data is saved to the files in internal storage.
  `STANDARD`
  Standard Android intent data transfer.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static IntentDataTransferMode`
  `valueOf(String name)`
  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.

  ### Methods inherited from class java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## 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