Package com.android.repository.api
Interface LocalPackage
-
- All Superinterfaces:
java.lang.Comparable<RepoPackage>,RepoPackage
- All Known Implementing Classes:
LocalPackage,LocalPackage,LocalPackageImpl
public interface LocalPackage extends RepoPackage
A locally-installed package. In addition to what's provided byRepoPackage,LocalPackagehas an actual location on disk.
-
-
Field Summary
-
Fields inherited from interface com.android.repository.api.RepoPackage
PATH_SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.file.PathgetLocation()Gets the installed location of this package.voidsetInstalledPath(java.nio.file.Path root)Specifies the path at which this package is installed.-
Methods inherited from interface com.android.repository.api.RepoPackage
asMarshallable, createFactory, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, obsolete
-
-
-
-
Method Detail
-
getLocation
@NonNull java.nio.file.Path getLocation()
Gets the installed location of this package.
-
setInstalledPath
void setInstalledPath(@NonNull java.nio.file.Path root)Specifies the path at which this package is installed. This should be called directly after the package is created.
-
-