com.android.sdklib.internal.repository.packages
Interface IAndroidVersionProvider

All Known Implementing Classes:
AddonPackage, DocPackage, PlatformPackage, SamplePackage, SourcePackage, SystemImagePackage

public interface IAndroidVersionProvider

Interface for packages that provide an AndroidVersion.

Note that IPlatformDependency is a similar interface, but with a different semantic. The IPlatformDependency denotes that a given package can only be installed if the requested platform is present, whereas this interface denotes that the given package simply has a version, which is not necessarily a dependency.


Method Summary
 AndroidVersion getAndroidVersion()
          Returns the android version, for platform, add-on and doc packages.
 

Method Detail

getAndroidVersion

@NonNull
AndroidVersion getAndroidVersion()
Returns the android version, for platform, add-on and doc packages. Can be 0 if this is a local package of unknown api-level.