Module com.gluonhq.attach.lifecycle
Class IOSLifecycleService
- java.lang.Object
-
- com.gluonhq.attach.lifecycle.impl.IOSLifecycleService
-
- All Implemented Interfaces:
LifecycleService
public class IOSLifecycleService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IOSLifecycleService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(LifecycleEvent eventType, java.lang.Runnable eventHandler)Adds a life cycle event listener to the native platform, to be notified ofLifecycleEventevents.voidremoveListener(LifecycleEvent eventType, java.lang.Runnable eventHandler)Removes a previously installed event handler.static voidsetEvent(java.lang.String v)voidshutdown()Initiates the process of shutting down the application that called this method.
-
-
-
Method Detail
-
shutdown
public void shutdown()
Description copied from interface:LifecycleServiceInitiates the process of shutting down the application that called this method. This removes the need to perform any platform-specific shutdown routines.- Specified by:
shutdownin interfaceLifecycleService
-
setEvent
public static void setEvent(java.lang.String v)
-
addListener
public void addListener(LifecycleEvent eventType, java.lang.Runnable eventHandler)
Description copied from interface:LifecycleServiceAdds a life cycle event listener to the native platform, to be notified ofLifecycleEventevents.- Specified by:
addListenerin interfaceLifecycleService- 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:LifecycleServiceRemoves a previously installed event handler. If no such event handler is found, this method is a no-op.- Specified by:
removeListenerin interfaceLifecycleService- Parameters:
eventType- The type of event that was being listened to.eventHandler- The event handler that should be removed.
-
-