Back to project page cube-sdk.
The source code is released under:
Apache License
If you think the Android project cube-sdk 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 in.srain.cube.app; /* ww w . j a v a2 s . c om*/ /** * provide some method to make Fragment act like Activity in BackStack * <p/> * When a Fragment becomes invisible totally, {@link #onLeave} will be called. * <p/> * When a Fragment becomes visible from totally invisible, {@link #onBack()} or {@link #onBackWithData(Object)} will be called. */ public interface ICubeFragment { /** * pass the data from {@link CubeFragmentActivity#pushFragmentToBackStack(Class, Object)}to this fragment * * @param data */ void onEnter(Object data); void onLeave(); void onBack(); void onBackWithData(Object data); /** * process the return back logic * return true if back pressed event has been processed and should stay in current view * * @return */ boolean processBackPressed(); }