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 Summary
Modifier and TypeMethodDescriptionvoidonIngredientChange(IngredientService service, String sourceId, IngredientSource source) Called when a newIngredientSourceis installed intoIngredientService.
-
Method Details
-
onIngredientChange
Called when a newIngredientSourceis installed intoIngredientService. 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 servicesourceId- id of the sourcesource- theIngrediengSourcethat was added or changed, null for removed
-