Enum Class BatchMigration

java.lang.Object
java.lang.Enum<BatchMigration>
com.batch.android.BatchMigration
All Implemented Interfaces:
Serializable, Comparable<BatchMigration>, java.lang.constant.Constable

public enum BatchMigration extends Enum<BatchMigration>
  • Enum Constant Details

    • NONE

      public static final BatchMigration NONE
      No migrations disabled
    • CUSTOM_ID

      public static final BatchMigration CUSTOM_ID
      Whether Bath should automatically identify logged-in user when running the SDK V2 for the first time. This mean user with a custom_user_id will be automatically attached a to a Profile and can be targeted within a Project scope.
    • CUSTOM_DATA

      public static final BatchMigration CUSTOM_DATA
      Whether Bath should automatically attach current installation's data (language/region/customDataAttributes...) to the User's Profile when running the SDK for the first time.
  • Method Details

    • values

      public static BatchMigration[] 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 BatchMigration 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
    • fromValue

      public static EnumSet<BatchMigration> fromValue(int value)
      Convert integer value in enum set of migrations
      Parameters:
      value - The integer value of migrations
      Returns:
      An enumSet of Migration
    • toValue

      public static int toValue(EnumSet<BatchMigration> migrations)
      Convert an EnumSet of migration to an integer value
      Parameters:
      migrations - EnumSet of migrations to convert
      Returns:
      The integer value of migrations
    • isCustomIDMigrationDisabled

      public static boolean isCustomIDMigrationDisabled(Integer value)
      Whether the Custom User ID migration is disabled
      Parameters:
      value - migrations value
      Returns:
      true if its disabled, false otherwise
    • isCustomDataMigrationDisabled

      public static boolean isCustomDataMigrationDisabled(Integer value)
      Whether the Custom Data migration is disabled
      Parameters:
      value - migrations value
      Returns:
      true if its disabled, false otherwise