Interface EventDB.LoadEventsCallback

Enclosing class:
EventDB

public static interface EventDB.LoadEventsCallback
Callback interface when loading all events from the database.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when there is a failure in loading all events from the database.
    void
    Called when all events are successfully loaded.
  • Method Details

    • onSuccess

      void onSuccess(ArrayList<Event> events)
      Called when all events are successfully loaded.
      Parameters:
      events - ArrayList of events reflecting the database at time of calling.
    • onFailure

      void onFailure(Exception e)
      Called when there is a failure in loading all events from the database.
      Parameters:
      e - Exception message.