- All Implemented Interfaces:
- Enclosing class:
public static enum MParticle.Environment extends java.lang.Enum<MParticle.Environment>The Environment in which the SDK and hosting app are running. The SDK automatically detects the Environment based on the
DEBUGGABLEflag of your application. The
DEBUGGABLEflag of your application will be
TRUEwhen signing with a debug certificate during development, or if you have explicitly set your application to debug within your AndroidManifest.xml.
- See Also:
to override this behavior.
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.
values()Returns an array containing the constants of this enum type, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Detail
public static final MParticle.Environment AutoDetectAutoDetect mode (default). In this mode, the SDK will automatically configure itself based on the signing configuration and the
DEBUGGABLEflag of your application.
public static final MParticle.Environment DevelopmentDevelopment mode. In this mode, all data from the SDK will be treated as development data, and will be siloed from your production data. Additionally, the SDK will more aggressively upload data to the mParticle platform, to aide in a faster implementation.
public static final MParticle.Environment ProductionProduction mode. In this mode, all data from the SDK will be treated as production data, and will be forwarded to all configured integrations for your application. The SDK will honor the configured upload interval.
public static MParticle.Environment values()Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MParticle.Environment c : MParticle.Environment.values()) System.out.println(c);
- an array containing the constants of this enum type, in the order they are declared
public static MParticle.Environment valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
java.lang.NullPointerException- if the argument is null
public int getValue()