public final class MobileCore
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MobileCore.Options |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_CONFIG_FILE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called when mobile core instance needs to be destroyed
|
static java.lang.String |
getAppVersion()
Get the version of the user app
|
java.lang.String |
getConfigFileName() |
android.content.Context |
getContext()
Get application context
|
HttpServiceModule |
getHttpLayer() |
<T extends ServiceModule> |
getInstance(java.lang.Class<T> serviceClass) |
<T extends ServiceModule> |
getInstance(java.lang.Class<T> serviceClass,
ServiceConfiguration serviceConfiguration) |
static Logger |
getLogger() |
static java.lang.String |
getSdkVersion()
Get the version name of the SDK itself
|
ServiceConfiguration |
getServiceConfiguration(java.lang.String type)
Returns the configuration for this singleThreadService from the JSON config file
|
static MobileCore |
init(android.content.Context context)
Initialize the AeroGear system
|
static MobileCore |
init(android.content.Context context,
MobileCore.Options options)
Initialize the AeroGear system
|
public static final java.lang.String DEFAULT_CONFIG_FILE_NAME
public static MobileCore init(android.content.Context context) throws InitializationException
context - Application contextInitializationExceptionpublic static MobileCore init(android.content.Context context, MobileCore.Options options) throws InitializationException
context - Application contextoptions - AeroGear initialization optionsInitializationExceptionpublic void destroy()
public <T extends ServiceModule> T getInstance(java.lang.Class<T> serviceClass)
public <T extends ServiceModule> T getInstance(java.lang.Class<T> serviceClass, ServiceConfiguration serviceConfiguration) throws InitializationException
InitializationExceptionpublic android.content.Context getContext()
public ServiceConfiguration getServiceConfiguration(java.lang.String type)
type - Service type/namepublic HttpServiceModule getHttpLayer()
public static Logger getLogger()
public java.lang.String getConfigFileName()
public static java.lang.String getSdkVersion()
public static java.lang.String getAppVersion()