npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

cordova-plugin-detect-webview-engine

1.0.1 • Public • Published

cordova-plugin-detect-webview-engine

Build Status

Dependency Status devDependency Status Known Vulnerabilities

Commitizen friendly Greenkeeper badge License npm

Cordova plugin to determine whether the application is using UIWebView or WKWebView engine

Supported platforms

  • iOS

Installation

from npm (recommended)

$ cordova plugin add cordova-plugin-detect-webview-engine

from git (unstable)

$ cordova plugin add https://github.com/timbru31/cordova-plugin-detect-webview-engine.git

Usage

Check for UIWebView

cordova.plugins.webviewEngine.isUIWebView().then(isUIWebView => {
    // returns true or false
});

Check for WKWebView

cordova.plugins.webviewEngine.isWKWebView().then(isWKWebView => {
    // returns true or false
});

Built by (c) Tim Brust and contributors. Released under the MIT license.

install

npm i cordova-plugin-detect-webview-engine

Downloadsweekly downloads

1

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability