org.apache.cordova.engine.SystemWebViewEngine Java Examples
The following examples show how to use
org.apache.cordova.engine.SystemWebViewEngine.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CordovaWebViewImpl.java From BigDataPlatform with GNU General Public License v3.0 | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #2
Source File: CordovaWebViewImpl.java From xmall with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #3
Source File: CordovaWebViewImpl.java From ultimate-cordova-webview-app with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #4
Source File: CordovaWebViewImpl.java From keemob with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #5
Source File: EmbeddedWebViewActivity.java From keemob with MIT License | 5 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //Set up the webview ConfigXmlParser parser = new ConfigXmlParser(); parser.parse(this); SystemWebView webView = (SystemWebView) findViewById(R.id.cordovaWebView); webInterface = new CordovaWebViewImpl(new SystemWebViewEngine(webView)); webInterface.init(cordovaInterface, parser.getPluginEntries(), parser.getPreferences()); webView.loadUrl(parser.getLaunchUrl()); }
Example #6
Source File: CordovaWebViewImpl.java From keemob with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #7
Source File: CordovaWebViewImpl.java From app-icon with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #8
Source File: CordovaWebViewImpl.java From cordova-plugin-app-update-demo with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #9
Source File: CordovaWebViewImpl.java From a2cardboard with Apache License 2.0 | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #10
Source File: CordovaWebViewImpl.java From cordova-plugin-intent with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #11
Source File: CordovaWebViewImpl.java From chappiecast with Mozilla Public License 2.0 | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #12
Source File: CordovaWebViewImpl.java From pychat with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #13
Source File: CordovaWebViewImpl.java From lona with GNU General Public License v3.0 | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #14
Source File: CordovaWebViewImpl.java From countly-sdk-cordova with MIT License | 5 votes |
public static CordovaWebViewEngine createEngine(Context context, CordovaPreferences preferences) { String className = preferences.getString("webview", SystemWebViewEngine.class.getCanonicalName()); try { Class<?> webViewClass = Class.forName(className); Constructor<?> constructor = webViewClass.getConstructor(Context.class, CordovaPreferences.class); return (CordovaWebViewEngine) constructor.newInstance(context, preferences); } catch (Exception e) { throw new RuntimeException("Failed to create webview. ", e); } }
Example #15
Source File: InjectWebViewClient.java From cordova-plugin-fastrde-injectview with MIT License | 4 votes |
public InjectWebViewClient(SystemWebViewEngine parentEngine) { super(parentEngine); Injecter.getInstance().setViewClient(this); Log.w("inject", "InjectWebViewClient"); }
Example #16
Source File: CertificatesCordovaWebViewClient.java From cordova-certificate-plugin with MIT License | 2 votes |
/** * * @param cordova */ public CertificatesCordovaWebViewClient(SystemWebViewEngine parentEngine) { super(parentEngine); }