Skip to content

acedigibits/cordova-plugin-multi-webview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-multi-webview

embeded webview for cordova app

This plugin is different with inappbrowser, You can load html page or external urls in the embeded webview, and control it directly. It uses Crosswalk if available Opens up to 6 inappBrowsers on screen

Background

This plugin was originally commissioned by [ZeGenie Inc] ze.

Install

cordova plugin add https://github.com/acedigibits/cordova-plugin-multi-webview

Remove

cordova plugin remove cordova-plugin-ebwebview

Add this plugin so iOS will use WkWebView with this plugin https://github.com/apache/cordova-plugin-wkwebview-engine

Method

  • cordova.EbWebview.open(n,url, param,callbacks)
app.webview = cordova.EbWebview.open(0,encodeURI('http://webkam.com'), 'left=0,top=0,width=320,height=200',{loadstop:ldstop});

n=browser number [0..5]

  • load(n,url)
  • show(n), hide(n)
  • setPosition(n,left, top)
  • setSize(n,width, height)
  • addEventListener(n,eventName, callback)
  • removeEventListenenr(n,eventName, callback)
  • hasHistory: (n,callback)
  • goBack: (n)
  • getScreenshot: (n,quality, callback)
  • executeScript: (n,injectDetails, cb)
  • insertCSS: (n,injectDetails, cb)

Add to config.xml for getScreenshot to work:

<preference name="CrosswalkAnimatable" value="true" />	

About

Cordova multiple inapp browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 54.0%
  • Java 35.9%
  • JavaScript 8.0%
  • CSS 2.1%