Back to project page khandroid.
The source code is released under:
Apache License
If you think the Android project khandroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.khandroid.state; /*from w ww. j a va2s. c o m*/ public interface State { /** * Called just after state is switched to the current app state and before any calls to {@link #handleEvent(StateEvent)} */ void onEnter(); /** * Subclass implementations must call parent implementation of this method. If parent returns true that means it has * handled event and current method may decide to skip processing * * @param event * @return Returns true if event is handled or false if it is not * @throws InvalidStateException */ boolean handleEvent(StateEvent event); /** * Called just before switching to new state. You may use this method for clean up operations */ void onExit(); }