Package com.mparticle

Enum MParticle.Environment

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MParticle.Environment>
    Enclosing class:
    MParticle

    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 DEBUGGABLE flag of your application. The DEBUGGABLE flag of your application will be TRUE when 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.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AutoDetect
      AutoDetect mode (default).
      Development
      Development mode.
      Production
      Production mode.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getValue()  
      static MParticle.Environment valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static MParticle.Environment[] 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
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AutoDetect

        public static final MParticle.Environment AutoDetect
        AutoDetect mode (default). In this mode, the SDK will automatically configure itself based on the signing configuration and the DEBUGGABLE flag of your application.
      • Development

        public static final MParticle.Environment Development
        Development 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.
      • Production

        public static final MParticle.Environment Production
        Production 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.
    • Method Detail

      • values

        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);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()