Class that can receive any lifecycle change and dispatch it to the receiver.
If a class implements both this interface and
DefaultLifecycleObserver will be called first, and then followed by the call
If a class implements this interface and in the same time uses
annotations will be ignored.
Called when a state transition event happens.