Ejemplo n.º 1
0
        protected CordovaPlugin CreatePlugin(CordovaWebView webView, DroidGap context)
        {
            var t = new T();

            t.InitializePlugin(webView, context);
            Plugin = t; // this will ensure Cordova finds the Plugin
            return(Plugin);
        }
Ejemplo n.º 2
0
 private void InitXamarinPlugins(CordovaWebView webView, PluginManager pluginManager)
 {
     pluginManager.AddService(new XamarinCordovaPluginEntry<SamplePlugin>("Sample", webView, this));
 }
Ejemplo n.º 3
0
 public XamarinCordovaPluginEntry(String service, CordovaWebView webView, DroidGap context)
     : base(service, string.Empty, false)
 {
     CreatePlugin(webView, context);
 }
 public virtual void InitializePlugin(CordovaWebView webView, DroidGap context)
 {
     this.webView = webView;
     this.context = context;
 }
 public virtual void InitializePlugin(CordovaWebView webView, DroidGap context)
 {
     this.webView = webView;
     this.context = context;
 }
 private void InitXamarinPlugins(CordovaWebView webView, PluginManager pluginManager)
 {
     pluginManager.AddService(new XamarinCordovaPluginEntry <SamplePlugin>("Sample", webView, this));
 }