handleLifecycleEvent
Sets the current state and notifies the observers.
Note that if the currentState is the same state as the last call to this method, calling this method has no effect.
Parameters
event
The event that was received