android - Navigator.screenshot 'Undefined' -


i using this plugin capture screenshot in phonegap application. here code.

$('#share').click(function(){     alert('navigatorobj  '+navigator.screenshot+ " windowobj " + window.plugins.screenshot); } 

problem:

both window.plugins.screenshot , navigator.screenshot return undefined. however, window.plugins , navigator return objects.

config.xml

<feature name="screenshot">     <param name="android-package" value="com.darktalker.cordova.screenshot" /> </feature> 

cordova_plugins.js

{     "file":"plugins/com.darktalker.cordova.screenshot/www/screenshot.js",     "id": "com.darktalker.cordova.screenshot.screenshot.js",     "clobbers": [         "navigator.screenshot"     ] }  module.exports.metadata =  // top of metadata {  "com.darktalker.cordova.screenshot": "0.1.1" } 

i have pasted screenshot.java in com.darktalker.cordova.screenshot (created folders)

please help. highly recommended.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -