new MobileBackendManager()
The entry-point into the Oracle Mobile Cloud Service SDK.
The entry-point into the Oracle Mobile Cloud Service SDK. The MobileBackendManager has a singleton from which MobileBackend
objects can be accessed, which in turn provide access to Analytics, Storage, Auth and other capabilities. The
singleton can be accessed as mcs.mobileBackendManager.
Members
-
platform :Platform
The platform implementation to use in the application.
-
The platform implementation to use in the application. Callers can derive from Platform to provide a specific implementation for device state and capabilities.
Type:
Methods
-
getMobileBackend(name)
Create and return mobile backend.
-
Create and return mobile backend.
Parameters:
Name Type Description name
String The name of the MobileBackend. Returns:
A MobileBackend object with the specified name.- Type
- MobileBackend
-
returnMobileBackend(name, config)
Sets the configuration for the application.
-
Sets the configuration for the application. The configuration should be set once before any MobileBackend is accessed.
Parameters:
Name Type Description name
String The name of the MobileBackend. config
OracleMobileCloudConfig The Oracle mobile cloud configuration object. Returns:
A MobileBackend object with the specified name.- Type
- MobileBackend
-
setConfig(config)
Sets the configuration for the application.
-
Sets the configuration for the application. The configuration should be set once before any MobileBackend is accessed.
Parameters:
Name Type Description config
OracleMobileCloudConfig The Oracle mobile cloud configuration object.