com.android.sdklib.repository.descriptors
Interface IPkgDescExtra
- All Superinterfaces:
- java.lang.Comparable<IPkgDesc>, IPkgCapabilities, IPkgDesc
- All Known Implementing Classes:
- PkgDescExtra
public interface IPkgDescExtra
- extends IPkgDesc
IPkgDescExtra
keeps information on individual extra SDK packages
(both local or remote packages definitions.) The base IPkgDesc
tries
to present a unified interface to package attributes and this interface
adds methods specific to extras.
To create a new IPkgDescExtra
,
use PkgDesc.newExtra(String, String, String[], NoPreviewRevision)
.
The extra's revision is a NoPreviewRevision
; the attribute is however
accessed via IPkgDesc.getFullRevision()
instead of introducing a new
custom method.
To query generic packages capabilities, rely on IPkgDesc.getType()
and the
IPkgDesc.hasXxx()
methods provided by IPkgDesc
.
Method Summary |
java.lang.String[] |
getOldPaths()
Returns an optional list of older paths for this extra package. |
Methods inherited from interface java.lang.Comparable |
compareTo |
getOldPaths
@NonNull
java.lang.String[] getOldPaths()
- Returns an optional list of older paths for this extra package.
- Returns:
- A non-null, possibly empty, for old paths previously used for the same extra.