com.android.sdklib.repository.descriptors
Interface IAddonDesc


public interface IAddonDesc

IAddonDesc returns extra information on add-on descriptors.

This is used with PkgDesc.newAddon(com.android.sdklib.AndroidVersion, com.android.sdklib.repository.MajorRevision, IAddonDesc) when the vendor id or add-on target hash cannot be determined when building the descriptor (typically because the info should be loaded from the add-ons source property file and is not known in the context of the package creation.)


Method Summary
 java.lang.String getTargetHash()
          Returns an add-on target hash.
 java.lang.String getVendorId()
          Returns the add-on vendor id string.
 

Method Detail

getTargetHash

@NonNull
java.lang.String getTargetHash()
Returns an add-on target hash.

Ideally the target hash should be constructed using AndroidTargetHash.getAddonHashString(String, String, com.android.sdklib.AndroidVersion) to ensure it has the correct format.

Returns:
A non-null add=on target hash.

getVendorId

@NonNull
java.lang.String getVendorId()
Returns the add-on vendor id string.

Returns:
A non-null add-on vendor id.