Пример #1
0
 /// <summary>
 /// Called when the web content is requesting permission to access some resources.
 /// </summary>
 /// <param name="request">Request.</param>
 public override void OnPermissionRequest(Android.Webkit.PermissionRequest request)
 {
     Log.Info(PermissionRequestFragment.TAG, "onPermissionRequest");
     permissionReqFrag.mPermissionRequest = request;
     ConfirmationDialogFragment.NewInstance(request.GetResources())
     .Show(permissionReqFrag.ChildFragmentManager, FRAGMENT_DIALOG);
 }
		/// <summary>
		/// Creates a new instance of ConfirmationDialogFragment.
		/// </summary>
		/// <returns>A new instance.</returns>
		/// <param name="resources">The list of resources requested by PermissionRequeste.</param>
		public static ConfirmationDialogFragment NewInstance (String[] resources)
		{
			var fragment = new ConfirmationDialogFragment ();
			var args = new Bundle ();
			args.PutStringArray (ARG_RESOURCES, resources);
			fragment.Arguments = args;
			return fragment;
		}
        /// <summary>
        /// Creates a new instance of ConfirmationDialogFragment.
        /// </summary>
        /// <returns>A new instance.</returns>
        /// <param name="resources">The list of resources requested by PermissionRequeste.</param>
        public static ConfirmationDialogFragment NewInstance(String[] resources)
        {
            var fragment = new ConfirmationDialogFragment();
            var args     = new Bundle();

            args.PutStringArray(ARG_RESOURCES, resources);
            fragment.Arguments = args;
            return(fragment);
        }