Package com.android.builder.model
Interface ModelBuilderParameter
public interface ModelBuilderParameter
The parameter for ModelBuilder to build customized models.
-
Method Summary
Modifier and TypeMethodDescriptionIf not null then this is the name of the ABI to build.booleanWhether model builder should build variants or not when buildingAndroidProject.booleanWhether model builder should schedule source generation post sync or not when buildingVariant.Returns the name of the variant to build.voidsetAbiName(String abi) Sets the ABI to build.voidsetShouldBuildVariant(boolean shouldBuildVariant) Set whether model builder should build variants or not.voidsetShouldGenerateSources(boolean shouldGenerateSources) Set whether model builder should should schedule source generation post sync or not.voidsetVariantName(String variantName) Set the name of the variant to build.
-
Method Details
-
getShouldBuildVariant
boolean getShouldBuildVariant()Whether model builder should build variants or not when buildingAndroidProject.- Returns:
- true if model builder should build variant.
-
setShouldBuildVariant
void setShouldBuildVariant(boolean shouldBuildVariant) Set whether model builder should build variants or not.- Parameters:
shouldBuildVariant- whether model builder should build variants or not.
-
getShouldGenerateSources
boolean getShouldGenerateSources()Whether model builder should schedule source generation post sync or not when buildingVariant.- Returns:
- true if model builder should schedule source generation.
-
setShouldGenerateSources
void setShouldGenerateSources(boolean shouldGenerateSources) Set whether model builder should should schedule source generation post sync or not.- Parameters:
shouldGenerateSources- whether model builder should schedule source generation post sync or not.
-
getVariantName
Returns the name of the variant to build.- Returns:
- the name of the variant to build.
-
setVariantName
Set the name of the variant to build.- Parameters:
variantName- the name of the variant to build.
-
getAbiName
If not null then this is the name of the ABI to build.- Returns:
- the name of the ABI to build.
-
setAbiName
Sets the ABI to build.- Parameters:
abi- the ABI to build.
-