Example #1
0
 public int showCertificateTrustDialog(BrowserWindow browserWindow, CertificateTrustDialogOptions options)
 {
     if (browserWindow == null)
     {
         return(API.Apply <int>("showCertificateTrustDialog", options));
     }
     else
     {
         return(API.Apply <int>("showCertificateTrustDialog", browserWindow, options));
     }
 }
Example #2
0
        public int showCertificateTrustDialog(BrowserWindow browserWindow, CertificateTrustDialogOptions options, Action callback)
        {
            if (callback == null)
            {
                return(showCertificateTrustDialog(browserWindow, options));
            }
            string       eventName = "_showCertificateTrustDialog";
            CallbackItem item      = null;

            item = API.CreateCallbackItem(eventName, (object[] args) => {
                API.RemoveCallbackItem(eventName, item);
                callback?.Invoke();
            });
            if (browserWindow == null)
            {
                API.Apply("showCertificateTrustDialog", options, item);
            }
            else
            {
                API.Apply("showCertificateTrustDialog", browserWindow, options, item);
            }
            return(0);
        }
Example #3
0
 public int showCertificateTrustDialog(CertificateTrustDialogOptions options, Action callback)
 {
     return(showCertificateTrustDialog(null, options, callback));
 }
Example #4
0
 /// <summary>
 /// *macOS Windows*
 /// <para>
 /// On macOS, this displays a modal dialog that shows a message and certificate information,
 /// and gives the user the option of trusting/importing the certificate.
 /// If you provide a browserWindow argument the dialog will be attached to the parent window,
 /// making it modal.
 /// </para>
 /// <para>
 /// On Windows the options are more limited, due to the Win32 APIs used:
 /// The message argument is not used, as the OS provides its own confirmation dialog.
 /// The browserWindow argument is ignored since it is not possible to make this confirmation dialog modal.
 /// </para>
 /// </summary>
 /// <param name="options"></param>
 /// <returns></returns>
 public int showCertificateTrustDialog(CertificateTrustDialogOptions options)
 {
     return(showCertificateTrustDialog(null, options));
 }