Interface IngredientChangeListener

All Known Implementing Classes:
BeveragePourEngine

public interface IngredientChangeListener
Listener interface for notification of installation of a new IngredientSource.
Since:
1.0
Version:
2023-01-25
  • Method Details

    • onIngredientChange

      void onIngredientChange(IngredientService service, String sourceId, IngredientSource source)
      Called when a new IngredientSource is installed into IngredientService . This can mean that any existing ingredients may now be unknown. It may also mean that previously unknown ingredients are now known.
      Parameters:
      service - the ingredient service
      sourceId - id of the source
      source - the IngrediengSource that was added or changed, null for removed