|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.ide.common.sdk.SdkVersionInfo
public class SdkVersionInfo
Information about available SDK Versions
Field Summary | |
---|---|
static int |
HIGHEST_KNOWN_API
The highest known API level. |
Constructor Summary | |
---|---|
SdkVersionInfo()
|
Method Summary | |
---|---|
static java.lang.String |
camelCaseToUnderlines(java.lang.String string)
Converts a CamelCase word into an underlined_word |
static java.lang.String |
getAndroidName(int api)
Returns the Android version and code name of the given API level, or null if not known. |
static int |
getApiByBuildCode(java.lang.String buildCode,
boolean recognizeUnknowns)
Returns the API level of the given build code (e.g. |
static int |
getApiByPreviewName(java.lang.String previewName,
boolean recognizeUnknowns)
Returns the API level of the given preview code name (e.g. |
static java.lang.String |
getBuildCode(int api)
Returns the applicable build code (for android.os.Build.VERSION_CODES ) for the corresponding API level,
or null if it's unknown. |
static java.lang.String |
underlinesToCamelCase(java.lang.String string)
Converts an underlined_word into a CamelCase word |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HIGHEST_KNOWN_API
Constructor Detail |
---|
public SdkVersionInfo()
Method Detail |
---|
@Nullable public static java.lang.String getAndroidName(int api)
HIGHEST_KNOWN_API
.
api
- the api level
@Nullable public static java.lang.String getBuildCode(int api)
android.os.Build.VERSION_CODES
) for the corresponding API level,
or null if it's unknown. The highest number (inclusive) that is supported
is HIGHEST_KNOWN_API
.
api
- the API level to look up a version code for
public static int getApiByBuildCode(java.lang.String buildCode, boolean recognizeUnknowns)
buildCode
- the build code name (not case sensitive)recognizeUnknowns
- if true, treat an unrecognized code name as a newly released
platform the tools are not yet aware of, and set its API level to
some higher number than all the currently known API versions
HIGHEST_KNOWN_API
plus one is returnedpublic static int getApiByPreviewName(java.lang.String previewName, boolean recognizeUnknowns)
previewName
- the preview name (not case sensitive)recognizeUnknowns
- if true, treat an unrecognized code name as a newly released
platform the tools are not yet aware of, and set its API level to
some higher number than all the currently known API versions
HIGHEST_KNOWN_API
plus one is returnedpublic static java.lang.String camelCaseToUnderlines(java.lang.String string)
string
- the CamelCase version of the word
public static java.lang.String underlinesToCamelCase(java.lang.String string)
string
- the underlined word to convert
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |