com.android.repository.api
Interface LocalPackage

All Superinterfaces:
java.lang.Comparable<RepoPackage>, RepoPackage
All Known Implementing Classes:
FakePackage, LocalPackage, LocalPackageImpl

public interface LocalPackage
extends RepoPackage

A locally-installed package. In addition to what's provided by RepoPackage, LocalPackage has an actual location on disk.


Field Summary
 
Fields inherited from interface com.android.repository.api.RepoPackage
PATH_SEPARATOR
 
Method Summary
 java.io.File getLocation()
          Gets the installed location of this package.
 void setInstalledPath(java.io.File root)
          Specifies the path at which this package is installed.
 
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

getLocation

@NonNull
java.io.File getLocation()
Gets the installed location of this package.


setInstalledPath

void setInstalledPath(@NonNull
                      java.io.File root)
Specifies the path at which this package is installed. This should be called directly after the package is created.