Interface DetailsTypes.ApiDetailsType
-
- All Known Subinterfaces:
DetailsTypes.AddonDetailsType,DetailsTypes.PlatformDetailsType,DetailsTypes.SourceDetailsType,DetailsTypes.SysImgDetailsType
- All Known Implementing Classes:
AddonDetailsType,AddonDetailsType,AddonDetailsType,ApiDetailsType,ApiDetailsType,ApiDetailsType,PlatformDetailsType,PlatformDetailsType,PlatformDetailsType,SourceDetailsType,SourceDetailsType,SourceDetailsType,SysImgDetailsType,SysImgDetailsType,SysImgDetailsType
- Enclosing class:
- DetailsTypes
public static interface DetailsTypes.ApiDetailsTypeCommon methods shared by all android version-specific details types.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default com.android.sdklib.AndroidVersiongetAndroidVersion()Convenience method to create anAndroidVersionwith the information from the givenDetailsTypes.ApiDetailsType.default intgetApiLevel()Gets the api level of this package.static intgetApiLevelInt(java.lang.String apiLevel)default java.lang.StringgetApiLevelString()Only to be used for schema v3 and above.Returns the contents of the api-level tag.java.lang.StringgetCodename()Gets the codename of this release.default java.lang.IntegergetExtensionLevel()Gets the extension level of this package.default booleanisBaseExtension()Returns whether the package is the base sdk for this api level.default voidsetApiLevel(int apiLevel)Sets the api level this package corresponds to.default voidsetApiLevelString(java.lang.String apiLevelString)default voidsetBaseExtension(boolean isBaseExtension)Sets whether the package is the base sdk for this api level.voidsetCodename(java.lang.String codename)If this is a preview release the api is identified by a codename in addition to the api level.default voidsetExtensionLevel(java.lang.Integer extensionLevel)Sets the extension level of this package.
-
-
-
Method Detail
-
getAndroidVersion
@NonNull default com.android.sdklib.AndroidVersion getAndroidVersion()
Convenience method to create anAndroidVersionwith the information from the givenDetailsTypes.ApiDetailsType.
-
setApiLevel
default void setApiLevel(int apiLevel)
Sets the api level this package corresponds to.
-
getApiLevel
default int getApiLevel()
Gets the api level of this package.
-
getApiLevelString
default java.lang.String getApiLevelString()
Only to be used for schema v3 and above.Returns the contents of the api-level tag. This is an int if it is the base SDK, or an int followed by an 'x' character if the sdk contains extensions eg. "32x".
-
setApiLevelString
default void setApiLevelString(java.lang.String apiLevelString)
-
isBaseExtension
default boolean isBaseExtension()
Returns whether the package is the base sdk for this api level.
-
setBaseExtension
default void setBaseExtension(boolean isBaseExtension)
Sets whether the package is the base sdk for this api level.
-
getExtensionLevel
@Nullable default java.lang.Integer getExtensionLevel()
Gets the extension level of this package.
-
setExtensionLevel
default void setExtensionLevel(java.lang.Integer extensionLevel)
Sets the extension level of this package.
-
setCodename
void setCodename(@Nullable java.lang.String codename)If this is a preview release the api is identified by a codename in addition to the api level. In this casecodenameshould be non-null.
-
getCodename
java.lang.String getCodename()
Gets the codename of this release. Should benullfor regular releases, and non- null for preview releases.
-
getApiLevelInt
static int getApiLevelInt(java.lang.String apiLevel)
-
-