예제 #1
0
 internal static string GetAppLaunchData()
 {
     return(Android.GetDeeplink().CallStatic <string>("GetAppLaunchData", Android.CurrentContext));
 }
 internal static int IsReady(StatusCallback callback)
 {
     return(Android.GetJavaUserStats().CallStatic <int>("isReady", Android.CurrentContext, new AndroidPluginCallback(callback)));
 }
 internal static int UploadStats(StatusCallback callback)
 {
     return(Android.GetJavaUserStats().CallStatic <int>("uploadStats", Android.CurrentContext, new AndroidPluginCallback(callback)));
 }
 internal static void GetLicense(Viveport.Api.LicenseChecker checker, string appId, string appKey)
 {
     Android.GetJavaAPI().CallStatic("getLicense", Android.CurrentContext, new AndroidLicenseChecker(checker), appId, appKey);
 }
 internal static void CancelSubscription(IAPurchaseCallback callback, string pchSubscriptionId)
 {
     Android.GetJavaIAPurchase().CallStatic("cancelSubscription", Android.CurrentContext, new AndroidPluginCallback(callback), pchSubscriptionId);
 }
 internal static void Purchase(IAPurchaseCallback callback, string pchPurchaseId)
 {
     Android.GetJavaIAPurchase().CallStatic("makePurchase", Android.CurrentContext, new AndroidPluginCallback(callback), pchPurchaseId);
 }
 internal static void GetBalance(IAPurchaseCallback callback)
 {
     Android.GetJavaIAPurchase().CallStatic("getBalance", Android.CurrentContext, new AndroidPluginCallback(callback));
 }
 internal static int ClearAchievement(string pchName)
 {
     return(Android.GetJavaUserStats().CallStatic <int>("clearAchievement", pchName));
 }
 internal static int Shutdown(StatusCallback callback)
 {
     return(Android.GetJavaAPI().CallStatic <int>("shutdown", new AndroidPluginCallback(callback)));
 }
 internal static bool GetAchievement(string pchName)
 {
     return(Android.GetJavaUserStats().CallStatic <bool>("getAchievement", pchName));
 }
 internal static int GetAchievementUnlockTime(string pchName)
 {
     return(Android.GetJavaUserStats().CallStatic <int>("getAchievementUnlockTime", pchName));
 }
 internal static int GetStat(string pchName, int nData)
 {
     return(Android.GetJavaUserStats().CallStatic <int>("getStats", pchName, nData));
 }
예제 #13
0
 internal static bool IsAndroidSubscriber()
 {
     return(Android.GetJavaSubscription().CallStatic <bool>("isAndroidSubscriber"));
 }
예제 #14
0
 internal static int IsReady(StatusCallback2 callback)
 {
     Android.GetJavaSubscription().CallStatic("isReady", Android.CurrentContext, new AndroidPluginCallback(callback));
     return(0);
 }
 internal static void IsReady(IAPurchaseCallback callback, string pchAppKey)
 {
     Android.GetJavaIAPurchase().CallStatic("isReady", Android.CurrentContext, new AndroidPluginCallback(callback), pchAppKey);
 }
 internal static string GetAchievementDisplayAttribute(string pchName, EAchievementDisplayAttribute attr, ELocale locale)
 {
     return(Android.GetJavaUserStats().CallStatic <string>("getAchievementDisplayAttribute", pchName, (int)attr, (int)locale));
 }
 internal static void Request(IAPurchaseCallback callback, string pchPrice, string pchUserData)
 {
     Android.GetJavaIAPurchase().CallStatic("request", Android.CurrentContext, new AndroidPluginCallback(callback), pchPrice, pchUserData);
 }
 internal static string GetAchievementIcon(string pchName)
 {
     return(Android.GetJavaUserStats().CallStatic <string>("getAchievementIcon", pchName));
 }
 internal static void Query(IAPurchaseCallback callback)
 {
     Android.GetJavaIAPurchase().CallStatic("query", Android.CurrentContext, new AndroidPluginCallback(callback));
 }
 internal static int UploadLeaderboardScore(StatusCallback callback, string pchLeaderboardName, int nScores)
 {
     return(Android.GetJavaUserStats().CallStatic <int>("setLeaderboard", Android.CurrentContext, new AndroidPluginCallback(callback), pchLeaderboardName, nScores));
 }
 internal static void RequestSubscription(IAPurchaseCallback callback, string pchPrice, string pchFreeTrialType, int nFreeTrialValue,
                                          string pchChargePeriodType, int nChargePeriodValue, int nNumberOfChargePeriod, string pchPlanId)
 {
     Android.GetJavaIAPurchase().CallStatic("requestSubscription", Android.CurrentContext, new AndroidPluginCallback(callback),
                                            pchPrice, pchFreeTrialType, nFreeTrialValue, pchChargePeriodType, nChargePeriodValue, nNumberOfChargePeriod, pchPlanId);
 }
 internal static int GetLeaderboardScoreCount()
 {
     return(Android.GetJavaUserStats().CallStatic <int>("getLeaderboardScoreCount"));
 }
 internal static void RequestSubscriptionWithPlanID(IAPurchaseCallback callback, string pchPlanId)
 {
     Android.GetJavaIAPurchase().CallStatic("requestSubscriptionWithPlanId", Android.CurrentContext, new AndroidPluginCallback(callback), pchPlanId);
 }
 internal static ELeaderboardSortMethod GetLeaderboardSortMethod()
 {
     return((ELeaderboardSortMethod)Android.GetJavaUserStats().CallStatic <int>("getLeaderboardSortType"));
 }
 internal static string GetUserAvatarUrl()
 {
     return(Android.GetJavaUser().CallStatic <string>("getUserAvatar", Android.CurrentContext));
 }
 internal static string Version()
 {
     return(Android.GetJavaAPI().CallStatic <string>("version"));
 }
 internal static int Init(StatusCallback callback, string pchAppKey)
 {
     return(Android.GetJavaAPI().CallStatic <int>("init", Android.CurrentContext, new AndroidPluginCallback(callback), pchAppKey));
 }
 internal static ELeaderboardDisplayType GetLeaderboardDisplayType()
 {
     return((ELeaderboardDisplayType)Android.GetJavaUserStats().CallStatic <int>("getLeaderboardDisplayType"));
 }
 internal static int SetStat(string pchName, float fData)
 {
     return(Android.GetJavaUserStats().CallStatic <int>("setStats", pchName, fData));
 }
예제 #30
0
 internal static void GoToAppOrGoToStore(Viveport.Deeplink.DeeplinkChecker checker, string appId, string launchData)
 {
     Android.GetDeeplink().CallStatic("GoToAppOrGoToStore", Android.CurrentContext, new AndroidDeeplinkChecker(checker), appId, launchData);
 }