Interface ConstraintListener
-
- All Known Implementing Classes:
MarkerManagerViolationListener
public interface ConstraintListenerInterface for listening for notifications on specific events regarding a constraint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddispose()Callback when the listener has to be cleaned upvoidviolationAppeared(IViolation violation)Called if a new violation appeared for the constraint on which the listener is registered.voidviolationDisappeared(IViolation violation)Called if a violation disappeared for the constraint on which the listener is registered.
-
-
-
Method Detail
-
violationAppeared
void violationAppeared(IViolation violation)
Called if a new violation appeared for the constraint on which the listener is registered.- Parameters:
violation- The violation which appeared.
-
violationDisappeared
void violationDisappeared(IViolation violation)
Called if a violation disappeared for the constraint on which the listener is registered.- Parameters:
violation- The violation which disappeared.
-
dispose
default void dispose()
Callback when the listener has to be cleaned up- Since:
- 2.1
-
-