Enum AndroidMinSdk
- All Implemented Interfaces:
Comparable<AndroidMinSdk>
The Android API level an app runs on at the lowest.
A closed set rather than an int, because this is not an arbitrary number:
it is the platform floor the build supports, the builder parses it and
compares it against real thresholds -- multidex below 21, Android Auto below
23 -- and a level outside this range is a typo rather than a choice.
The build server raises it on its own where a feature demands more, so
picking a low level here is a floor and not a promise: adding Android Auto to
a project pinned at API_19 builds at 23.
A level not listed is not a dead end. The properties file takes
codename1.arg.android.min_sdk_version unchanged, which is the escape hatch
for a platform newer than this framework build knows about.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAndroid API level 19.Android API level 20.Android API level 21.Android API level 22.Android API level 23.Android API level 24.Android API level 25.Android API level 26.Android API level 27.Android API level 28.Android API level 29.Android API level 30.Android API level 31.Android API level 32.Android API level 33.Android API level 34.Android API level 35.Android API level 36.Say nothing, and let the build server apply its own default. -
Method Summary
Modifier and TypeMethodDescriptionstatic AndroidMinSdkReturns the enum constant of this type with the specified name.static AndroidMinSdk[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
DEFAULT
Say nothing, and let the build server apply its own default. -
API_19
Android API level 19. -
API_20
Android API level 20. -
API_21
Android API level 21. -
API_22
Android API level 22. -
API_23
Android API level 23. -
API_24
Android API level 24. -
API_25
Android API level 25. -
API_26
Android API level 26. -
API_27
Android API level 27. -
API_28
Android API level 28. -
API_29
Android API level 29. -
API_30
Android API level 30. -
API_31
Android API level 31. -
API_32
Android API level 32. -
API_33
Android API level 33. -
API_34
Android API level 34. -
API_35
Android API level 35. -
API_36
Android API level 36.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-