public class PluginState
extends java.lang.Object
PluginState represents the current state of a PluginStateComponent.| Constructor and Description |
|---|
PluginState() |
| Modifier and Type | Method and Description |
|---|---|
LifecycleState |
getLifecycleState()
Gets the current
LifecycleState of this PluginStateComponent. |
boolean |
isCreated()
Tests if the
LifecycleState is created. |
boolean |
isDestroyed()
Tests if the
LifecycleState is destroyed. |
boolean |
isDormant()
Tests if the
LifecycleState is dormant. |
boolean |
isPaused()
Tests if the
LifecycleState is paused. |
boolean |
isRestarted()
Tests if the
LifecycleState is isRestarted. |
boolean |
isResumed()
Tests if the
LifecycleState is resumed. |
boolean |
isStarted()
Tests if the
LifecycleState is started or resumed. |
boolean |
isStopped()
Tests if the
LifecycleState is stopped. |
void |
onCreate()
Invoked when the
PluginComponent is created. |
void |
onDestroy()
Invoked when the
PluginComponent is destroyed. |
void |
onPause()
Invoked when the
PluginComponent is paused. |
void |
onRestart()
Invoked when the
PluginComponent is restarted. |
void |
onResume()
Invoked when the
PluginComponent is resumed. |
void |
onStart()
Invoked when the
PluginComponent is started. |
void |
onStop()
Invoked when the
PluginComponent is stopped. |
public LifecycleState getLifecycleState()
LifecycleState of this PluginStateComponent.public boolean isDormant()
LifecycleState is dormant. In dormant state the PluginStateComponent
is instantiated, but not initialised.boolean value.public boolean isCreated()
LifecycleState is created. In created state the PluginStateComponent
is initialised and is ready to be started.boolean value.public boolean isStarted()
LifecycleState is started or resumed. In started state the method
PluginStateComponent.start() and possibly PluginStateComponent.resume()
have been invoked. Method getLifecycleState() can be used to determinate
the exact lifecycle state.boolean value.public boolean isResumed()
LifecycleState is resumed. In resumed state both the methods
PluginStateComponent.start() and PluginStateComponent.resume()
have been invoked.boolean value.public boolean isPaused()
LifecycleState is paused. In paused state the method
PluginStateComponent.pause() has been invoked.boolean value.public boolean isRestarted()
LifecycleState is isRestarted. In isRestarted state the method
PluginStateComponent.start() and possibly PluginStateComponent.resume()
have been invoked.boolean value.public boolean isStopped()
LifecycleState is stopped. In stopped state the method
PluginStateComponent.stop() and possibly PluginStateComponent.destroy()
have been invoked.boolean value.public boolean isDestroyed()
LifecycleState is destroyed. In destroyed state the method
PluginStateComponent.destroy() has been invoked.boolean value.public void onCreate()
PluginComponent is created.public void onStart()
PluginComponent is started.public void onRestart()
PluginComponent is restarted.public void onPause()
PluginComponent is paused.public void onResume()
PluginComponent is resumed.public void onStop()
PluginComponent is stopped.public void onDestroy()
PluginComponent is destroyed.