Kofax Mobile SDK API Reference
Public Member Functions | Static Public Member Functions | List of all members
AppContextProvider Class Reference

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

Inheritance diagram for 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. Alternatively, 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 getContext ( )
static

Returns the application context

Returns
application context
void onCreate ( )
static void setContext ( Context  context)
static

Sets the application context

Parameters
contextA valid application context.

The documentation for this class was generated from the following file:
Untitled Document © 2018 Kofax, Inc. All rights reserved. Use is subject to license terms.