Enum ResourcesMode.Mode

java.lang.Object
java.lang.Enum<ResourcesMode.Mode>
org.robolectric.annotation.ResourcesMode.Mode
All Implemented Interfaces:
Serializable, Comparable<ResourcesMode.Mode>, java.lang.constant.Constable
Enclosing class:
ResourcesMode

public static enum ResourcesMode.Mode extends Enum<ResourcesMode.Mode>
  • Enum Constant Details

    • BINARY

      public static final ResourcesMode.Mode BINARY
      Default: Reads binary resource data (arsc) using a Java implementation, manually transliterated from native code
    • NATIVE

      public static final ResourcesMode.Mode NATIVE
      Experimental: use AOSP native code to read resource data. Currently only functioning on android V and linux
  • Method Details

    • values

      public static ResourcesMode.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ResourcesMode.Mode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null