Interface ApplicationStateListener

  • All Implemented Interfaces:

    
    public interface ApplicationStateListener
    
                        

    Listener interface that is called whenever the instrumented application is brought to foreground from the background, or vice versa.

    This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onApplicationForegrounded() Called whenever the application is brought to the foreground (i.e.
      abstract Unit onApplicationBackgrounded() Called whenever the application is brought to the background (i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onApplicationForegrounded

         abstract Unit onApplicationForegrounded()

        Called whenever the application is brought to the foreground (i.e. first activity starts).

      • onApplicationBackgrounded

         abstract Unit onApplicationBackgrounded()

        Called whenever the application is brought to the background (i.e. last activity stops).