com.amazonaws.mobileconnectors.amazonmobileanalytics
Class MobileAnalyticsManager

java.lang.Object
  extended by com.amazonaws.mobileconnectors.amazonmobileanalytics.MobileAnalyticsManager

public class MobileAnalyticsManager
extends java.lang.Object

MobileAnalyticsManager in the entry point to recording analytic events for your application. Each MobileAnalyticsManager instance is associated with a app ID which is used both as a key to get a SharedPreferences object that MobileAnalyticsManager can use, and as a directory name that MobileAnalyticsManager will use to store files about events that you record. If you are developing a library, you should create a app ID for your library so it does not collide with the app ID of app developer using your library.


Method Summary
 EventClient getEventClient()
          The EventClient is the primary class used to create, store, and submit events from your application.
static MobileAnalyticsManager getInstance(java.lang.String appId)
           
static MobileAnalyticsManager getOrCreateInstance(android.content.Context context, java.lang.String appId, Regions region, AWSCredentialsProvider credentialsProvider)
           
static MobileAnalyticsManager getOrCreateInstance(android.content.Context context, java.lang.String appId, Regions region, AWSCredentialsProvider credentialsProvider, AnalyticsCallback<MobileAnalyticsManager> initCompletionCallback)
           
static MobileAnalyticsManager getOrCreateInstance(android.content.Context context, java.lang.String appId, Regions region, AWSCredentialsProvider credentialsProvider, AnalyticsConfig options)
           
static MobileAnalyticsManager getOrCreateInstance(android.content.Context context, java.lang.String appId, Regions region, AWSCredentialsProvider credentialsProvider, AnalyticsConfig options, AnalyticsCallback<MobileAnalyticsManager> initCompletionCallback)
           
 SessionClient getSessionClient()
          The SessionClient is the primary class used to pause and resume sessions, so that you can gain useful data about how your users are interacting with your application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEventClient

public EventClient getEventClient()
The EventClient is the primary class used to create, store, and submit events from your application.

Returns:
an EventClient

getSessionClient

public SessionClient getSessionClient()
The SessionClient is the primary class used to pause and resume sessions, so that you can gain useful data about how your users are interacting with your application. You should use the SessionClient onPause and onResume method in each of your activities onPause and onResume methods.

Returns:
an SessionClient

getInstance

public static MobileAnalyticsManager getInstance(java.lang.String appId)

getOrCreateInstance

public static MobileAnalyticsManager getOrCreateInstance(android.content.Context context,
                                                         java.lang.String appId,
                                                         Regions region,
                                                         AWSCredentialsProvider credentialsProvider)
                                                  throws InitializationException
Throws:
InitializationException

getOrCreateInstance

public static MobileAnalyticsManager getOrCreateInstance(android.content.Context context,
                                                         java.lang.String appId,
                                                         Regions region,
                                                         AWSCredentialsProvider credentialsProvider,
                                                         AnalyticsConfig options)
                                                  throws InitializationException
Throws:
InitializationException

getOrCreateInstance

public static MobileAnalyticsManager getOrCreateInstance(android.content.Context context,
                                                         java.lang.String appId,
                                                         Regions region,
                                                         AWSCredentialsProvider credentialsProvider,
                                                         AnalyticsCallback<MobileAnalyticsManager> initCompletionCallback)
                                                  throws InitializationException
Throws:
InitializationException

getOrCreateInstance

public static MobileAnalyticsManager getOrCreateInstance(android.content.Context context,
                                                         java.lang.String appId,
                                                         Regions region,
                                                         AWSCredentialsProvider credentialsProvider,
                                                         AnalyticsConfig options,
                                                         AnalyticsCallback<MobileAnalyticsManager> initCompletionCallback)
                                                  throws InitializationException
Throws:
InitializationException


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.