MobileCore is the entry point into AeroGear mobile services.
More...
MobileCore is the entry point into AeroGear mobile services.
◆ MobileCore()
◆ Destroy()
void AeroGear.Mobile.Core.MobileCore.Destroy |
( |
| ) |
|
Called when mobile core instance needs to be destroyed.
◆ GetFirstServiceConfigurationByType()
ServiceConfiguration AeroGear.Mobile.Core.MobileCore.GetFirstServiceConfigurationByType |
( |
String |
type | ) |
|
Returns the first instance of a ServiceConfiguration based on the type key
- Parameters
-
type | type field of the configuration |
- Returns
- a single ServiceConfiguration
◆ GetService< T >() [1/2]
T AeroGear.Mobile.Core.MobileCore.GetService< T > |
( |
| ) |
|
- Type Constraints
-
T | : | IServiceModule | |
T | : | GetService<T> | |
T | : | typeof | |
T | : | T | |
◆ GetService< T >() [2/2]
T AeroGear.Mobile.Core.MobileCore.GetService< T > |
( |
string |
serviceId | ) |
|
- Type Constraints
-
T | : | IServiceModule | |
T | : | GetService<T> | |
T | : | typeof | |
T | : | T | |
T | : | GetServiceConfigurationById | |
T | : | serviceId | |
◆ GetServiceConfigurationById()
Returns a ServiceConfiguration based on the id key
- Parameters
-
id | id field of the configuration |
- Returns
- a single ServiceConfiguration
◆ GetServiceConfigurationByType()
ServiceConfiguration [] AeroGear.Mobile.Core.MobileCore.GetServiceConfigurationByType |
( |
String |
type | ) |
|
Returns array of ServiceConfiguration, filtered by type
- Parameters
-
type | type field of the configuration |
- Returns
- array of ServiceConfiguration
◆ Init() [1/3]
static MobileCore AeroGear.Mobile.Core.MobileCore.Init |
( |
| ) |
|
|
static |
Initializes MobileCore with defaults and without platform-specific injector.
- Returns
- MobileCore singleton instance
◆ Init() [2/3]
Initializes MobileCore with defaults and with platform-specific injector.
- Parameters
-
injector | platform specific implementation dependency injection module |
- Returns
- MobileCore singleton instance
◆ Init() [3/3]
Initializes MobileCore with specific options and with platform-specific injector.
- Parameters
-
injector | platform specific implementation dependency injection module |
options | initialization options |
- Returns
- MobileCore singleton instance
◆ RegisterService< T >()
T AeroGear.Mobile.Core.MobileCore.RegisterService< T > |
( |
T |
serviceModule | ) |
|
Registers an instance of a service module.
- Returns
- The registered service module.
- Parameters
-
serviceModule | The service module instance. |
- Template Parameters
-
◆ DEFAULT_CONFIG_FILE_NAME
const String AeroGear.Mobile.Core.MobileCore.DEFAULT_CONFIG_FILE_NAME = "mobile-services.json" |
The default name of the config file.
◆ ConfigFileName
String AeroGear.Mobile.Core.MobileCore.ConfigFileName |
|
get |
Gets the name of the config file.
The name of the config file.
◆ HttpLayer
◆ Instance
MobileCore AeroGear.Mobile.Core.MobileCore.Instance |
|
staticget |
Holds MobileCore singleton instance. It's needed to initialize core before using this.
◆ Logger
ILogger AeroGear.Mobile.Core.MobileCore.Logger |
|
get |
Gets the logger for the current platform
The logger.
The documentation for this class was generated from the following file: