com.ugrokit.api.UgiActivity Class Referenceabstract
Overview
Utility class to manage Activity interaction with the U Grok It system.
The U Grok It system needs to know when the currently active Activity receives a call to its onCreate(), onResume(), onPause(), and onDestroy() methods. This class handles that for you; simply subclass your Activity classes from this base class.
Implement the handleRotation() method to instruct the system to handle screen rotation automatically or not.
Note: android.support.v4.app.FragmentActivity instance should use this same pattern.
Public Member Functions | |
Ugi | getUgi () |
abstract boolean | ugiShouldHandleRotation () |
boolean | ugiAllowRotationOnTablet () |
void | onDestroy () |
Override onDestroy to handle screen rotation. | |
void | onResume () |
Override onResume for knowing if there are any active activities. | |
void | onPause () |
Override onPause for knowing if there are any active activities. | |
Protected Member Functions | |
void | onCreate (Bundle savedInstanceState) |
Override onCreate to handle screen rotation. More... | |
Member Function Documentation
◆ getUgi()
◆ ugiShouldHandleRotation()
|
abstract |
- Returns
- true if the U Grok It system should handle screen rotation false if the application wants to handle screen rotation
◆ ugiAllowRotationOnTablet()
boolean com.ugrokit.api.UgiActivity.ugiAllowRotationOnTablet | ( | ) |
- Returns
- true if any screen rotation should be allowed on a tablet
◆ onCreate()
|
protected |
Override onCreate to handle screen rotation.
- Parameters
-
savedInstanceState saved state
Copyright © 2012-2017 U Grok It, Inc. connect@UGrokIt.com U Grok It and the U Grok It logo are registered trademarks of U Grok It, Inc. All other trademarks and copyrights are the property of their respective owners |