Exemple #1
0
        /// <summary>
        /// Remove a url scheme from WWebView message interpreter.
        /// </summary>
        /// <param name="scheme">
        /// The url scheme to remvoe.
        /// </param>
        public void RemoveUrlScheme(string scheme)
        {
            Setup();

#if UNIWEBVIEW3_SUPPORTED
            UniWebViewInterface.RemoveUrlScheme(listener.Name, scheme);
#elif UNIWEBVIEW2_SUPPORTED
            UniWebViewPlugin.RemoveUrlScheme(listener.Name, scheme);
#else
            WWebViewPlugin.RemoveUrlScheme(listener.Name, scheme);
#endif
        }
Exemple #2
0
 /// <summary>
 /// Removes a url scheme from UniWebView message system interpreter.
 /// </summary>
 /// <param name="scheme">The url scheme to remove. Nothing will happen if the scheme is not in the message system.</param>
 public void RemoveUrlScheme(string scheme)
 {
     if (scheme == null)
     {
         UniWebViewLogger.Instance.Critical("The scheme should not be null.");
         return;
     }
     if (scheme.Contains("://"))
     {
         UniWebViewLogger.Instance.Critical("The scheme should not include invalid characters '://'");
         return;
     }
     UniWebViewInterface.RemoveUrlScheme(listener.Name, scheme);
 }