mobage.shellapp.App
Methods
mobage.shellapp.App.getVersionName
String getVersionName()
This function gets a string representation of the client application version code.
On Android, the function returns the versionCode value which is set in AndroidManifest.xml.
Parameters
None
Return value
| Type | Description |
|---|---|
| String | String representation of client application version code |
Sample
var versionName = mobage.shellapp.App.getVersionName();
mobage.shellapp.App.getVersionCode
Number getVersionCode()
This function gets a numeric representation of the client application version code.
On Android, the function returns the versionCode which is set in AndroidManifest.xml.
Parameters
None
Return value
| Type | Description |
|---|---|
| Number | Numeric representation of client application version code |
Sample
var versionName = mobage.shellapp.App.getVersionName();
mobage.shellapp.App.getMarketCode
String getMarketCode()
This function gets an identifier representing the market where the client application is distributed.
| Market Name | Market Identifier |
|---|---|
| Google Play | googleplay |
Parameters
None
Return value
| Type | Description |
|---|---|
| String | Identifier of market where client application is distributed |
Sample
var marketCode = mobage.shellapp.App.getMarketCode();
Revision History
- 03/01/2013
- Added support for iOS.
- 12/11/2012
--Initial release.