5.Extensions

5.1 Open activity page

Android

com.vigame.Activity.open();

iOS

[IOSLoader openActivityPage];

Unity

Wb.CoreManager.Instance.OpenActivityPage();

5.2 Open notice page

Android

Notice.open();

iOS

[IOSLoader openNoticePage];

Unity

Wb.CoreManager.Instance.OpenActivityNotice();

5.3 Submit rank data

Android

iOS

Unity

Parameters:

  • userId:user identifier

  • level:level identifier

  • score:current score in level

  • usedCoins:the coins of used

  • leftCoins:the coins left

5.4 Open rank view

Android

iOS

Unity

5.5 Open feedback page

Android

iOS

Unity

5.6 Open privacy policy page

Android

iOS

Unity

Note:The company name is associated with the CompanyIndex item of assets/VigameConfig.xml file.

5.7 Open user agreement

Android

iOS

Unity

5.8 Use CDKey

5.8.1 Is Support CDKey

Android

iOS

Unity

返回值:

true:support CDKey

false:not support CDKey

5.8.2 Use CDKey

Android

Example:

Parameters:

  • dhm:CDKey code

  • callback:the callback of use result

iOS

Parameters:

  • code:the CDKey for use.

Unity

Parameters:

  • dhm:the CDKey for use.

5.9 Local notification(Only iOS)

iOS

Parameters:

  • alertBody:the content of notification

  • fireDate:the date of notification fired,Accurate to second

  • noticeId:the identifier of notification(for cancel notification)

Unity

Parameters:

  • id:the identifier of notification(for cancel notification)

  • body:the content of notification

  • fireDate:the date of notification fired,Accurate to second

  • unitInterval:interval time for enum

  • userinfo:custom info

5.10 Fast mark(Only iOS)

iOS

5.11 Jump comment(Only iOS)

iOS

最后更新于

这有帮助吗?