com.android.repository.api
Interface RemotePackage

All Superinterfaces:
java.lang.Comparable<RepoPackage>, RepoPackage
All Known Implementing Classes:
FakePackage, RemotePackage, RemotePackageImpl

public interface RemotePackage
extends RepoPackage

An package available for download. In addition to what's provided by RepoPackage, RemotePackage has an associated RepositorySource and archives.


Field Summary
 
Fields inherited from interface com.android.repository.api.RepoPackage
PATH_SEPARATOR
 
Method Summary
 Archive getArchive()
           
 Channel getChannel()
          Gets the update channel (e.g.
 RepositorySource getSource()
           
 void setSource(RepositorySource source)
           
 
Methods inherited from interface com.android.repository.api.RepoPackage
createFactory, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, obsolete
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getSource

@NonNull
RepositorySource getSource()
Returns:
The RepositorySource from which we got this package.

setSource

void setSource(@NonNull
               RepositorySource source)
Parameters:
source - The RepositorySource from which we got this package.

getArchive

@Nullable
Archive getArchive()
Returns:
The archive in this package compatible with the current hardware, OS, and JDK, or null if there is none.

getChannel

@NonNull
Channel getChannel()
Gets the update channel (e.g. beta, stable) for this package. Channels are sorted in lexicographic order, with the first (and default) being the most stable.