public interface ApiVersion
null instead.)
Preview versions of the platform are identified by a code name. Their API level
is usually set to the value of the previous platform.| Modifier and Type | Method and Description |
|---|---|
int |
getApiLevel()
Returns the api level as an integer.
|
java.lang.String |
getApiString()
Returns the API value as a string.
|
java.lang.String |
getCodename()
Returns the version code name if applicable, null otherwise.
|
int getApiLevel()
For target that are in preview mode, this can be superseded by
getCodename().
getCodename()@Nullable java.lang.String getCodename()
If the codename is non null, then the API level should be ignored, and this should be used as a unique identifier of the target instead.
@NonNull java.lang.String getApiString()