Interface IAppChangedListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IAppChangedListener
Interface to listen to app changes such as App Load or Hot Reloaded, and/or App Dispose. The App Dispose method is by default ignored and must be overridden.
  • Method Details

    • onAppLoaded

      void onAppLoaded(AppDefinition appDef, AppFactory newAppFactory, AppFactory oldAppFactory)
      Called when the app is reloaded into a new AppFactory. If the oldAppFactory parameter is null, then it is the first time the app is loaded.
      Parameters:
      appDef - The AppDefinition instance.
      newAppFactory - The new AppFactory instance.
      oldAppFactory - The old AppFactory instance, null if none previously existed.
    • onAppDisposed

      default void onAppDisposed(AppDefinition appDef, AppFactory appFactory)
      Called when the app is disposed of.
      Parameters:
      appDef - The AppDefinition instance.
      appFactory - The AppFactory instance being disposed of (null if one never got created).