com.android.sdklib.repositoryv2.meta
Interface DetailsTypes.ApiDetailsType

All Known Subinterfaces:
DetailsTypes.AddonDetailsType, DetailsTypes.PlatformDetailsType, DetailsTypes.SourceDetailsType, DetailsTypes.SysImgDetailsType
All Known Implementing Classes:
AddonDetailsType, ApiDetailsType, PlatformDetailsType, SourceDetailsType, SysImgDetailsType
Enclosing class:
DetailsTypes

public static interface DetailsTypes.ApiDetailsType

Common methods shared by all android version-specific details types.


Method Summary
 int getApiLevel()
          Gets the api level of this package.
 java.lang.String getCodename()
          Gets the codename of this release.
 void setApiLevel(int apiLevel)
          Sets the api level this package corresponds to.
 void setCodename(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

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 case codename should be non-null.


getCodename

java.lang.String getCodename()
Gets the codename of this release. Should be null for regular releases, and non- null for preview releases.