{"_id":"@cloudbutler/cordova-plugin-powermanagement-orig","_rev":"1-64ee48e0054c95385ae3577d4befd841","name":"@cloudbutler/cordova-plugin-powermanagement-orig","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.2":{"name":"@cloudbutler/cordova-plugin-powermanagement-orig","version":"1.1.2","description":"Plugin for managing the power state (i.e. idle switching) for cordova 3.0+. The original one.","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Viras-/cordova-plugin-powermanagement.git"},"author":{"name":"Viras-"},"license":"Apache-2.0","bugs":{"url":"https://github.com/Viras-/cordova-plugin-powermanagement/issues"},"homepage":"https://github.com/Viras-/cordova-plugin-powermanagement#readme","keywords":["ecosystem:cordova","cordova-android","cordova-ios","cordova-wp7","cordova-wp8"],"gitHead":"8b1f28ab2200e80eb6fe9cecbbd00dd087c4692a","_id":"@cloudbutler/cordova-plugin-powermanagement-orig@1.1.2","_nodeVersion":"12.22.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-grwnfedATvpL/L14zxAULpft6cPlNcf+vLx4gh5pKTjZMlW49L8o9QXKZwm/HKWr/H0k3H4VhA1GYJ9wVk9IoQ==","shasum":"bcbd87ada89f8211b3e82df6e0410eacda5cf215","tarball":"https://registry.npmjs.org/@cloudbutler/cordova-plugin-powermanagement-orig/-/cordova-plugin-powermanagement-orig-1.1.2.tgz","fileCount":10,"unpackedSize":34414,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqYdYbz04lnUTzMmSQ4p1UQ08SMODdo6f7h6fQR627kAiAPuzcKIljFx8WhE27iMjDpC60LY02ynseQpNJiNujlyw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJingqeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1VA//WJKM+rfvie6+HpgpAw5moEdWesCRIqBuazBYESJ39Gi4oalX\r\nXMRgRDdL/j2ZJlK2avBT8VFOl3kbSbdMVFl/gY+MlhbH51swffE9CfbtRaPS\r\nFV/dP+sLCzJ0f/9j2ZzZz4uPBFgfVBn6HxzKtrkExMY3hUIBaWSu5RAsYsbA\r\nPWKfVfpVyT9/aykL+5VyAslm45uf1PULE24Eu4EkUx0/7BjQCeY4IYK64tD7\r\npiZSjPXb+tvwdTQOh3+9G3gvCVkbmMP50wAC0b6ZEjaktvoGlxnY3hbvULJE\r\nHlEZo+vQ4qy6HNb/Aqn1tFJBkyy4jCHbcp+6XUaqQuM20mCXpTnK+uvKnoUy\r\n5254bOIkoQAbO8nH022/H/O5h7LTCUZ5+10uN3BgUN5pUIWEl27iKtMq51bF\r\nSKlrwaXhIWX4aQGzTfy8jUt5x9bOh1rwoSQo0QhrrsvuKJ5pUEL97RPRiCuq\r\njpHVvaXJx13tO4LOK13yP/Lfxtwdsg3JMZJwtB3xOG0/8N7HRSfdEt4nQOAB\r\nvSY3imq9A9mLorc3+u8akB/P9FX4Wlf0EcibezmVUMfmt+gZnk43Vj2HP+m5\r\njsoGRE+Qvv59qr7MVx9eik3HxXw4fwFDIgdZzzHNZMHaRyvTJv6N3MUusOWy\r\n2oQi/BBmL0Ya6OIDggSt5PSElFDKC/iUWIQ=\r\n=smUY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"defrosted","email":"dennis.frostlander@gmail.com"},"directories":{},"maintainers":[{"name":"defrosted","email":"dennis.frostlander@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-powermanagement-orig_1.1.2_1654524574286_0.68126600886967"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-06T14:09:34.211Z","1.1.2":"2022-06-06T14:09:34.519Z","modified":"2022-06-06T14:35:46.804Z"},"maintainers":[{"email":"nino.magazinovic@gmail.com","name":"ninomagazinovic"},{"email":"dennis.frostlander@gmail.com","name":"defrosted"}],"description":"Plugin for managing the power state (i.e. idle switching) for cordova 3.0+. The original one.","homepage":"https://github.com/Viras-/cordova-plugin-powermanagement#readme","keywords":["ecosystem:cordova","cordova-android","cordova-ios","cordova-wp7","cordova-wp8"],"repository":{"type":"git","url":"git+https://github.com/Viras-/cordova-plugin-powermanagement.git"},"author":{"name":"Viras-"},"bugs":{"url":"https://github.com/Viras-/cordova-plugin-powermanagement/issues"},"license":"Apache-2.0","readme":"PowerManagement\n===============\nPlugin for Cordova (3.0+)\n\nThe PowerManagement plugin offers access to the devices power-management functionality.\nIt should be used for applications which keep running for a long time without any user interaction.\n\nFor details on power functionality see:\n\n* Android: [PowerManager](http://developer.android.com/reference/android/os/PowerManager.html)\n* iOS: [idleTimerDisabled](http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/occ/instp/UIApplication/idleTimerDisabled)\n* WindowsPhone: [UserIdleDetectionMode](http://msdn.microsoft.com/en-US/library/windowsphone/develop/microsoft.phone.shell.phoneapplicationservice.useridledetectionmode%28v=vs.105%29.aspx)\n* Windows: [Windows.System.Display.DisplayRequest](https://msdn.microsoft.com/en-us/library/windows/apps/windows.system.display.displayrequest#methods)\n\nInstallation\n---------\nInstall using npm:\n\n`$ npm i cordova-plugin-powermanagement-orig`\n\nInstall the plugin using the cordova command line utility:\n\n`$ cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git`\n\nUsage\n-----\n\n### window.powerManagement.acquire(successCallback, failureCallback)\nAcquire a wakelock by calling this.\n\n\twindow.powerManagement.acquire(function() {\n\t\tconsole.log('Wakelock acquired');\n\t}, function() {\n\t\tconsole.log('Failed to acquire wakelock');\n\t});\n\n### window.powerManagement.dim(successCallback, failureCallback)\nThis acquires a partial wakelock, allowing the screen to be dimmed.\n\n\twindow.powerManagement.dim(function() {\n\t\tconsole.log('Wakelock acquired');\n\t}, function() {\n\t\tconsole.log('Failed to acquire wakelock');\n\t});\n\nThis function is nort supported on windows platform and will invoke the successCallback.\n\n### window.powerManagement.release(successCallback, failureCallback)\nRelease the wakelock. It's important to do this when you're finished with the wakelock, to avoid unnecessary battery drain.\n\n\twindow.powerManagement.release(function() {\n\t\tconsole.log('Wakelock released');\n\t}, function() {\n\t\tconsole.log('Failed to release wakelock');\n\t});\n\n### [Android Only] window.powerManagement.setReleaseOnPause(enabled, successCallback, failureCallback)\nBy default, the plugin will automatically release a wakelock when your app is paused (e.g. when the screen is turned off, or the user switches to another app). It will reacquire the wakelock upon app resume. If you would prefer to disable this behaviour, you can use this function.\n\n\twindow.powerManagement.setReleaseOnPause(false, function() {\n\t\tconsole.log('Set successfully');\n\t}, function() {\n\t\tconsole.log('Failed to set');\n\t});\n\nNote that in all the above examples, all callbacks are optional.\n\nLicense\n=======\nCopyright 2013 Wolfgang Koller\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","readmeFilename":"README.md"}