Interface ModelBuilderParameter


public interface ModelBuilderParameter
The parameter for ModelBuilder to build customized models.
  • Method Details

    • getShouldBuildVariant

      boolean getShouldBuildVariant()
      Whether model builder should build variants or not when building AndroidProject.
      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 building Variant.
      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

      @Nullable String getVariantName()
      Returns the name of the variant to build.
      Returns:
      the name of the variant to build.
    • setVariantName

      void setVariantName(@NonNull String variantName)
      Set the name of the variant to build.
      Parameters:
      variantName - the name of the variant to build.
    • getAbiName

      @Nullable String getAbiName()
      If not null then this is the name of the ABI to build.
      Returns:
      the name of the ABI to build.
    • setAbiName

      void setAbiName(@NonNull String abi)
      Sets the ABI to build.
      Parameters:
      abi - the ABI to build.