public class Lifecycle extends APIBean
| Constructor and Description |
|---|
Lifecycle()
Default constructor
|
Lifecycle(LifecycleState state,
long timestamp)
Constructor used by the implementation
|
| Modifier and Type | Method and Description |
|---|---|
LifecycleState |
getState()
Returns the state of the application
|
long |
getTimestamp()
Gets the timestamp in milliseconds of the event.
|
void |
setState(LifecycleState state)
Set the State of the application
|
void |
setTimestamp(long timestamp)
Sets the timestamp in milliseconds of the event.
|
public Lifecycle()
public Lifecycle(LifecycleState state, long timestamp)
state - of the apptimestamp - Timestamp of the eventpublic LifecycleState getState()
public void setState(LifecycleState state)
state - of the apppublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - Timestamp of the event.