Atalasoft MobileImage API Reference
Public Member Functions | Static Public Member Functions | List of all members
com.kofax.kmc.kut.utilities.AppContextProvider Class Reference

This class keeps a reference of the application context. More...

Inheritance diagram for com.kofax.kmc.kut.utilities.AppContextProvider:

Public Member Functions

void onCreate ()
 

Static Public Member Functions

static Context getContext ()
 
static void setContext (Context context)
 

Detailed Description

This class keeps a reference of the application context.

This class keeps a reference of the application context. In order to use the Mobile SDK, you must first set a valid application context. Alternately, you can specify the AppContextProvider class in your application's Manifest, as the name attribute of the <application> element:

<application
android:icon="@drawable/ic_launcher"
android:name="com.kofax.kmc.kut.utilities.AppContextProvider"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
</application>

Member Function Documentation

static Context com.kofax.kmc.kut.utilities.AppContextProvider.getContext ( )
inlinestatic

Returns the application context

Returns
application context
void com.kofax.kmc.kut.utilities.AppContextProvider.onCreate ( )
inline
static void com.kofax.kmc.kut.utilities.AppContextProvider.setContext ( Context  context)
inlinestatic

Sets the application context

Parameters
contextA valid application context.

The documentation for this class was generated from the following file:
Untitled Document © 2016 Atalasoft, Inc., 116 Pleasant St, Suite 321, Easthampton, MA 01027, U.S.A. All rights reserved. Use is subject to license terms.