Public Member Functions | Protected Member Functions
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()

Ugi com.ugrokit.api.UgiActivity.getUgi | ( |  | ) |

Returns
  The Ugi object

## ◆ ugiShouldHandleRotation()

abstract boolean com.ugrokit.api.UgiActivity.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()

void com.ugrokit.api.UgiActivity.onCreate | ( | Bundle | savedInstanceState | ) |
| protected

Override onCreate to handle screen rotation.

Parameters

  savedInstanceState | saved state