Package com.batch.android
Enum Class BatchMigration
- All Implemented Interfaces:
Serializable
,Comparable<BatchMigration>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhether Bath should automatically attach current installation's data (language/region/customDataAttributes...)Whether Bath should automatically identify logged-in user when running the SDK V2 for the first time.No migrations disabled -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet<BatchMigration>
fromValue
(int value) Convert integer value in enum set of migrationsstatic boolean
Whether the Custom Data migration is disabledstatic boolean
Whether the Custom User ID migration is disabledstatic int
toValue
(EnumSet<BatchMigration> migrations) Convert an EnumSet of migration to an integer valuestatic BatchMigration
Returns the enum constant of this class with the specified name.static BatchMigration[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No migrations disabled -
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
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
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
-
fromValue
Convert integer value in enum set of migrations- Parameters:
value
- The integer value of migrations- Returns:
- An enumSet of Migration
-
toValue
Convert an EnumSet of migration to an integer value- Parameters:
migrations
- EnumSet of migrations to convert- Returns:
- The integer value of migrations
-
isCustomIDMigrationDisabled
Whether the Custom User ID migration is disabled- Parameters:
value
- migrations value- Returns:
- true if its disabled, false otherwise
-
isCustomDataMigrationDisabled
Whether the Custom Data migration is disabled- Parameters:
value
- migrations value- Returns:
- true if its disabled, false otherwise
-