Skip to main content

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

TypeDescription
StringString 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

TypeDescription
NumberNumeric 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 NameMarket Identifier
Google Playgoogleplay

Parameters
None

Return value

TypeDescription
StringIdentifier 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.
  • Methods
    • mobage.shellapp.App.getVersionName
    • mobage.shellapp.App.getVersionCode
    • mobage.shellapp.App.getMarketCode
  • Revision History