Skip to main content

mobage.shellapp.Service


Methods​

mobage.shellapp.Service.showCommunityUI​

void showCommunityUI()

This function opens a Mobage community page.

Parameters
None

Return value
None

Sample

mobage.shellapp.Service.showCommunityUI();

mobage.shellapp.Service.showBankUI​

void showBankUI()

This function opens a verification dialog which opens a coin purchase page.

Parameters
None

Return value
None

Sample

mobage.shellapp.Service.showBankUI();

mobage.shellapp.Service.openDocument​

void openDocument(String pageType)

This function opens a contact page.

Parameters

TypeDescription
StringSpecifies the type of document to display. mobage.shellapp.Service.DocType.LEGAL Japanese Tokusho-ho mobage.shellapp.Service.DocType.CONTACT Contact

Return value
None

Sample

mobage.shellapp.Service.openDocument(mobage.shellapp.Service.DocType.CONTACT);

mobage.shellapp.Service.showLogoutDialog​

void showLogoutDialog()

This function opens a logout dialog.

Parameters
None

Return value
None

Sample

mobage.shellapp.Service.showLogoutDialog();

mobage.shellapp.Service.openUserProfile​

void openUserProfile(String userId)

This function opens a profile screen for the specified user.
If a portal application is installed, the portal application is launched. If the portal application is not installed, the user will be directed to download the portal application.

This function cannot be used in the Sandbox environment.

Parameters

TypeDescription
StringID of the user to be displayed in the profile window (the domain before the colon may be included, but is not required)

Return value
None

Sample

mobage.shellapp.Service.openUserProfile("sp.app.mbga.jp:12345");
mobage.shellapp.Service.openUserProfile("12345");

mobage.shellapp.Service.DocType​

mobage.shellapp.Service.DocType.CONTACT​

Contact

mobage.shellapp.Service.DocType.LEGAL​

Japanese Tokusho-ho


Revision History​

  • 12/11/2013
    • Added showCommunityUI
  • 12/11/2012
    • Initial release
  • Methods
    • mobage.shellapp.Service.showCommunityUI
    • mobage.shellapp.Service.showBankUI
    • mobage.shellapp.Service.openDocument
    • mobage.shellapp.Service.showLogoutDialog
    • mobage.shellapp.Service.openUserProfile
  • mobage.shellapp.Service.DocType
    • mobage.shellapp.Service.DocType.CONTACT
    • mobage.shellapp.Service.DocType.LEGAL
  • Revision History