Class ExploreViewModel

java.lang.Object
androidx.lifecycle.ViewModel
com.example.breeze_seas.ExploreViewModel

public class ExploreViewModel extends androidx.lifecycle.ViewModel
This class allows data to be shared between different fragments
  • Constructor Details

    • ExploreViewModel

      public ExploreViewModel()
  • Method Details

    • setEventHandler

      public void setEventHandler(EventHandler eventHandler)
      Set the explore fragment EventHandler object.
      Parameters:
      eventHandler - The EventHandler object pertaining to the explore fragment.
    • getEventHandler

      public EventHandler getEventHandler()
      Gets the EventHandler object to be used in the explore fragment.
      Returns:
      The EventHandler object pertaining to the explore fragment.
    • eventHandlerIsInitialized

      public boolean eventHandlerIsInitialized()
      Returns the initialization state of the EventHandler object for the explore fragment.
      Returns:
      Boolean value describing the initialization state of EventHandler