Interface ButtonClickObserver

All Known Implementing Classes:
BoardCreatorController, GameController, GameFinishedController, GameSelectionController, LadderGameBoardCreatorController, LadderGameController, LadderGameMenuController, LudoBoardCreatorController, LudoGameController, LudoMenuController, MenuController, ViewNavigator

public interface ButtonClickObserver
ButtonClickObserver interface

This interface defines methods for observing button click events, such as when a button is clicked in a view.

  • Method Details

    • onButtonClicked

      void onButtonClicked(String buttonId)
      Handles button click events.
      Parameters:
      buttonId - the ID of the button clicked
    • onButtonClickedWithParams

      void onButtonClickedWithParams(String buttonId, Map<String,Object> params)
      Handles button click events with parameters.
      Parameters:
      buttonId - the ID of the button clicked
      params - the parameters of the button click event