public void OnClick(IDialogInterface dialog, int which) { FragmentCompat.RequestPermissions( mParent, new string[] { Manifest.Permission.Camera }, CameraConstants.REQUEST_CAMERA_PERMISSION ); }
private void RequestCameraPermission() { if (FragmentCompat.ShouldShowRequestPermissionRationale(this, Manifest.Permission.Camera)) { new ConfirmationDialog().Show(ChildFragmentManager, CameraConstants.FRAGMENT_DIALOG); } else { FragmentCompat.RequestPermissions(this, new string[] { Manifest.Permission.Camera }, CameraConstants.REQUEST_CAMERA_PERMISSION); } }