Interface DetailsTypes.ApiDetailsType
-
- All Known Subinterfaces:
DetailsTypes.AddonDetailsType,DetailsTypes.PlatformDetailsType,DetailsTypes.SourceDetailsType,DetailsTypes.SysImgDetailsType
- All Known Implementing Classes:
AddonDetailsType,AddonDetailsType,ApiDetailsType,ApiDetailsType,PlatformDetailsType,PlatformDetailsType,SourceDetailsType,SourceDetailsType,SysImgDetailsType,SysImgDetailsType
- Enclosing class:
- DetailsTypes
public static interface DetailsTypes.ApiDetailsTypeCommon methods shared by all android version-specific details types.
-
-
Method Summary
All 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.intgetApiLevel()Gets the api level of this package.java.lang.StringgetCodename()Gets the codename of this release.voidsetApiLevel(int apiLevel)Sets the api level this package corresponds to.voidsetCodename(java.lang.String codename)If this is a preview release the api is identified by a codename in addition to the api level.
-
-
-
Method Detail
-
getAndroidVersion
@NonNull default com.android.sdklib.AndroidVersion getAndroidVersion()
Convenience method to create anAndroidVersionwith the information from the givenDetailsTypes.ApiDetailsType.
-
setApiLevel
void setApiLevel(int apiLevel)
Sets the api level this package corresponds to.
-
getApiLevel
int getApiLevel()
Gets the api 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.
-
-