Пример #1
0
 public void OnResult(int errorcode, UpdateInfo result)
 {
     handler.Post(() =>
     {
         if (errorcode == UpdateErrorCode.Ok && result != null)
         {
             if (result.UpdateType == UpdateType.NoNeed)
             {
                 return;
             }
             updManager.ShowUpdateInfo(this, result);
         }
     });
 }
Пример #2
0
 public void OnResult(int errorcode, UpdateInfo result)
 {
     if (errorcode == UpdateErrorCode.Ok && result != null)
     {
         if (result.UpdateType == UpdateType.NoNeed)
         {
             ShowTip("已经是最新版本!");
             return;
         }
         updManager.ShowUpdateInfo(this, result);
     }
     else
     {
         ShowTip("请求更新失败!\n更新错误码:" + errorcode);
     }
 }
Пример #3
0
 public void OnResult(int errorcode, UpdateInfo result)
 {
     handler.Post(() =>
     {
         if (errorcode == UpdateErrorCode.Ok && result != null)
         {
             if (result.UpdateType == UpdateType.NoNeed)
             {
                 return;
             }
             updManager.ShowUpdateInfo(this, result);
         }
         else
         {
             Toast.MakeText(this, "请求更新失败!\n更新错误码:" + errorcode, ToastLength.Short).Show();
         }
     });
 }
Пример #4
0
 public void OnResult(int errorCode, UpdateInfo result)
 {
     handler.Post(() =>
     {
         if (errorCode == UpdateErrorCode.Ok && result != null)
         {
             if (result.UpdateType == UpdateType.NoNeed)
             {
                 //Android.Support.V7.App.AlertDialog.Builder alertDialog =new Android.Support.V7.App.AlertDialog.Builder(this);
                 //alertDialog.SetTitle("检查更新");
                 //alertDialog.SetMessage("当前版本" + Resources.GetString(Resource.String.version) + "已经是最新的");
                 //alertDialog.Show();
             }
             else
             {
                 updManager.ShowUpdateInfo(this, result);
             }
         }
     });
 }