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_app; /*from www . j a va2s . c o m*/ public interface AppState { /** * Called just after state is switched to the current app state and before any calls to * {@link #handleEvent(StateEvent)} */ void onEnter(AppStateContext context); /** * 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 InvalidAppStateException */ boolean handleEvent(AppStateContext context, StateEvent event) throws InvalidAppStateException; /** * Called just before switching to new state. You may use this method for clean up operations */ void onExit(); }