Namespace mmir.Constants
Defined in: constants.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A Utility class that provides various constants.
|
Method Attributes | Method Name and Description |
---|---|
Returns a string with the base path.
|
|
<private> |
constructor(env)
Constructor-Method of Class Constants
|
Namespace Detail
mmir.Constants
A Utility class that provides various constants.
Note that the actual values depend on the execution environment (e.g. ANDROID
vs. BROWSER). As a consequence the constants object has 2 modes, that can be
switchted via the getInstance()-method, e.g. getInstance(false)
var appBase = mmir.Constants.getBasePath();
- Requires:
- org.apache.cordova.device: cordova plugin add org.apache.cordova.device
Method Detail
{String}
Constants#getBasePath()
Returns a string with the base path.
- Returns:
- {String} base path
<private>
constructor(env)
Constructor-Method of Class Constants
- Parameters:
- env