public PermissionRequest(List <string> permissions, IPermissionCalback permissionCalback)
        {
            Permissions       = permissions;
            PermissionCalback = permissionCalback;
            var rand = new Random();

            RequestCode = rand.Next(10000);
        }
        public static void AskForPermission(Activity activity, string[] permissions, IPermissionCalback permissionCallback)
        {
            if (permissionCallback is null)
            {
                return;
            }
            if (HasPermission(activity, permissions))
            {
                permissionCallback.PermissionGranted();
            }

            var request = new PermissionRequest(permissions.ToList(), permissionCallback);

            _permissionRequests.Add(request);

            activity.RequestPermissions(permissions, request.RequestCode);
        }
 public static void AskForPermission(Activity activity, string permission, IPermissionCalback permissionCallback)
 {
     AskForPermission(activity, new[] { permission }, permissionCallback);
 }