public virtual Task LoadAdAsync(AdParam paramAdParam)
        {
            var task = new TaskCompletionSource <int>();

            LoadAd(paramAdParam, () => task.SetResult(0), (errorCode) =>
            {
                var error = new HMSException(errorCode);
                task.SetException(error);
            });
            return(task.Task);
        }
 void ClientInitFailed(HMSException exception)
 {
     this.storeEvents.OnSetupFailed(InitializationFailureReason.PurchasingUnavailable);
 }
 private void OnGetAchievementListFailure(HMSException error)
 {
     Debug.Log("HMS Games: GetAchievementsList ERROR ");
 }
 private void OnGetScoresFromLeaderboardFailure(HMSException error)
 {
     Debug.Log("HMS Games: GetScoresFromLeaderboard ERROR ");
 }
 private void OnShowLeaderboardsFailure(HMSException error)
 {
     Debug.Log("HMS Games: ShowLeaderboards ERROR ");
 }
 private void OnSetUserScoreShownOnLeaderboardsFailure(HMSException exception)
 {
     Debug.Log("HMS Games: SetUserScoreShownOnLeaderboards ERROR ");
 }
 private void OnSetStepAchievemenFailure(HMSException error)
 {
     Debug.Log("HMS Games: SetStepAchievement ERROR ");
 }
 private void OnAuthSericeSignInFailed(HMSException error)
 {
     loggedInUser.text = LOGIN_ERROR;
 }
Exemple #9
0
 private void OnIsUserScoreShownOnLeaderboardsFailure(HMSException error)
 {
 }
Exemple #10
0
 private void OnUnlockAchievementFailure(HMSException error)
 {
 }
Exemple #11
0
 private void OnSetStepAchievemenFailure(HMSException error)
 {
 }
Exemple #12
0
 void ClientInitFailed(HMSException exception)
 {
     Debug.Log("UnityIapProvider - ClientInitFailed: " + exception.WrappedCauseMessage);
     Debug.Log("UnityIapProvider - ClientInitFailed: " + exception.WrappedExceptionMessage);
     this.storeEvents.OnSetupFailed(InitializationFailureReason.PurchasingUnavailable);
 }
 private void OnSignInFailed(HMSException obj)
 {
     Debug.Log(" OnSignInFailed ");
 }
 public static IapApiException AsIapApiException(this HMSException exception) =>
 new IapApiException(exception.JavaException);
 public static bool IsIapApiException(this HMSException exception) =>
 exception.JavaException.InstanceOf("com.huawei.hms.iap.IapApiException");
 public void OnLoginFailure(HMSException error)
 {
     loggedInUser.text = LOGIN_ERROR;
 }
 private void OnExecuteQueryFailed(HMSException error) => Debug.Log($"{TAG} OnExecuteQueryFailed(HMSException error) => {error.WrappedExceptionMessage}");
Exemple #18
0
 private void OnShowAchievementsFailure(HMSException exception)
 {
 }
 private void OnIncreaseStepAchievementFailure(HMSException error)
 {
     Debug.Log("HMS Games: IncreaseStepAchievement ERROR ");
 }
Exemple #20
0
 private void OnRevealAchievementFailure(HMSException error)
 {
 }
 private void OnUnlockAchievementFailure(HMSException error)
 {
     Debug.Log("HMS Games: UnlockAchievement ERROR ");
 }
Exemple #22
0
 private void OnIncreaseStepAchievementFailure(HMSException error)
 {
 }
 private void OnSubmitScoreFailure(HMSException exception)
 {
     Debug.Log("HMS Games: SubmitScore ERROR ");
 }
 private void OnAuthSericeCreateUserFailed(HMSException error)
 {
     loggedInUser.text = error.WrappedExceptionMessage;
     verifyCodePhone.SetActive(false);
     verifyCodeEmail.SetActive(false);
 }
 private void OnGetLeaderboardsDataFailure(HMSException exception)
 {
     Debug.Log("HMS Games: GetLeaderboardsData ERROR ");
 }
Exemple #26
0
 private void OnFecthFailure(HMSException exception)
 {
     Debug.Log($"[{TAG}]: fetch() Failed Error Code => {exception.ErrorCode} Message => {exception.WrappedExceptionMessage}");
 }
 private void OnShowAchievementsFailure(HMSException exception)
 {
     Debug.Log("HMS Games: ShowAchievements ERROR ");
 }
Exemple #28
0
 public void OnLoginFailure(HMSException error)
 {
 }
 private void OnRevealAchievementFailure(HMSException error)
 {
     Debug.Log("HMS Games: RevealAchievement ERROR ");
 }
 void GetProductsFailure(HMSException exception)
 {
     this.storeEvents.OnSetupFailed(InitializationFailureReason.PurchasingUnavailable);
 }