Example #1
1
 public void ShowPermissionRationale(IPermissionToken token)
 {
     new Android.Support.V7.App.AlertDialog.Builder(this).SetTitle(Resource.String.permission_rationale_title)
     .SetMessage(Resource.String.permission_rationale_message)
     .SetNegativeButton(Android.Resource.String.Cancel, delegate
     {
         token.ContinuePermissionRequest();
     })
     .SetPositiveButton(Android.Resource.String.Ok, delegate
     {
         token.ContinuePermissionRequest();
     })
     .SetOnDismissListener(new MyDismissListener(token))
     .Show();
 }
Example #2
0
 private void ShowRequestPermissionRationale(IPermissionToken token)
 {
     new Android.Support.V7.App.AlertDialog.Builder(this)
     .SetTitle("Разрешения GPS")
     .SetMessage("Необходимо разрешить использовать ваши gps данные")
     .SetNegativeButton("Отмена", delegate
     {
         token.ContinuePermissionRequest();
     })
     .SetPositiveButton("Ok", delegate
     {
         token.ContinuePermissionRequest();
     })
     .SetOnDismissListener(new MyDismissListener(token)).Show();
 }
Example #3
0
            //public void OnPermissionRationaleShouldBeShown(PermissionRequest p0, IPermissionToken token)
            //{
            //    activity.ShowRequestPermissionRationale(token);
            //}

            public void OnPermissionRationaleShouldBeShown(IList <PermissionRequest> p0, IPermissionToken p1)
            {
                p1.ContinuePermissionRequest();
                throw new System.NotImplementedException();
            }
 public void OnPermissionRationaleShouldBeShown(PermissionRequest p0, IPermissionToken p1)
 {
     p1.ContinuePermissionRequest();
 }