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.
| Methods inherited from interface java.lang.Comparable |
compareTo |
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.