Class AndroidLifecycleService

  • All Implemented Interfaces:
    LifecycleService

    public class AndroidLifecycleService
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addListener​(LifecycleEvent eventType, java.lang.Runnable eventHandler)
      Adds a life cycle event listener to the native platform, to be notified of LifecycleEvent events.
      void removeListener​(LifecycleEvent eventType, java.lang.Runnable eventHandler)
      Removes a previously installed event handler.
      void shutdown()
      Initiates the process of shutting down the application that called this method.
      • Methods inherited from class java.lang.Object

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

      • AndroidLifecycleService

        public AndroidLifecycleService()
    • Method Detail

      • shutdown

        public void shutdown()
        Description copied from interface: LifecycleService
        Initiates the process of shutting down the application that called this method. This removes the need to perform any platform-specific shutdown routines.
        Specified by:
        shutdown in interface LifecycleService
      • addListener

        public void addListener​(LifecycleEvent eventType,
                                java.lang.Runnable eventHandler)
        Description copied from interface: LifecycleService
        Adds a life cycle event listener to the native platform, to be notified of LifecycleEvent events.
        Specified by:
        addListener in interface LifecycleService
        Parameters:
        eventType - The type of event to listen for.
        eventHandler - The event handler that will be called when the event fires.
      • removeListener

        public void removeListener​(LifecycleEvent eventType,
                                   java.lang.Runnable eventHandler)
        Description copied from interface: LifecycleService
        Removes a previously installed event handler. If no such event handler is found, this method is a no-op.
        Specified by:
        removeListener in interface LifecycleService
        Parameters:
        eventType - The type of event that was being listened to.
        eventHandler - The event handler that should be removed.