{"_id":"@boosten/capacitor-keep-awake","_rev":"2-f1819c13d1453aabe47d00c8783cc6fb","name":"@boosten/capacitor-keep-awake","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@boosten/capacitor-keep-awake","version":"0.0.1","description":"Prevent your screen from getting some sleep!","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rm -rf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"Kevin Boosten"},"license":"MIT","dependencies":{"@capacitor/core":"latest"},"devDependencies":{"typescript":"^3.2.4","@capacitor/ios":"latest","@capacitor/android":"latest"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/Boosten/capacitor-keep-awake.git"},"bugs":{"url":"https://github.com/Boosten/capacitor-keep-awake.git/issues"},"gitHead":"e7710bd502b38a86c310ff44207b21294b06863b","homepage":"https://github.com/Boosten/capacitor-keep-awake#readme","_id":"@boosten/capacitor-keep-awake@0.0.1","_nodeVersion":"10.15.3","_npmVersion":"6.13.1","dist":{"integrity":"sha512-TJPF6r9a/y5/Um0Q4UqannqKs1JiOGKlNFw6w0nL6yNDIk1Wxv5ladzP5do6U+r4BRTfjTJgKoxTRTqGeCkw6A==","shasum":"adf7a4723c1fe8dd176e331cc94b236cfb36dc00","tarball":"https://registry.npmjs.org/@boosten/capacitor-keep-awake/-/capacitor-keep-awake-0.0.1.tgz","fileCount":174,"unpackedSize":1683931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd567iCRA9TVsSAnZWagAAvo0P/RbOuJ35+9HChWD9yCim\ngkPRSjghLoGuDKc6OL6Ilt/SQiUUeorsYiqOPWX7MsJ7MkWKTD1TK/zlmuVF\nFIgfB9acjMlpdYsxZJf9iCqdOsJBoQt06Mg0OX3n8Vd8dVIyshSs4fnCwLpq\nLAzgHB1QnRUZWTnh7sVd2JjcRSRFjgRFBKEojtrICRSk0y609fuJGySsCZFa\ncYpvuSizfUeoP8H8zdG87+NN2nnKU2xGs9YZS5YFkGBW1EY4l+yh98s0eT4H\nBY0+xJ90DdqKZAqsaVHRZcJw1buM4vOpCUNDwVEbviKUbSzySjOZ7OZiuFUT\nOIcYMyI9Nq8aY1YGR9/VmHFnDYo48DYQ3PU7OxvW9D0UvCWGUx+WDX0yJROy\nPI3AigBRFWrHzLu5pgUOZG6jhDelG9QSJwQYANVakITHiV4cMCINNH/REPjl\nbD2TT1McKDVDaHuRJQEuveJ5DC9ZgQKAKY6BTWJTXzPU92iRAFTsHftMa/BR\nikR1eocpgQ494AZG4bFQam7xYjKbtf+zGSgXTHW4nHMbuWhwXkmi2RndBUST\nP1A/cB3nKnZTQYAw5SBpvQwEPModAPgEpCW56zQZBPr75eMyYWLi1GC5aUTE\nIzKO+VkEukD845J+ucEj57/c074kLiB5lEe86XLav08StfHSu+z7fKxydj0S\n7Htm\r\n=Upbw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMxEUDq5LrWNuuljnnUFAa2F9TlJ0rxCCyVXXc/ktZ4AiAO+Euis1BupstezQjquo3iroyYB/7OAOBcRkYyCrq7PA=="}]},"maintainers":[{"name":"boosten","email":"kevinboosten@gmail.com"}],"_npmUser":{"name":"boosten","email":"kevinboosten@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-keep-awake_0.0.1_1575464674026_0.606423270070175"},"_hasShrinkwrap":false,"deprecated":"This package has been moved to @capacitor-community/keep-awake"}},"time":{"created":"2019-12-04T13:04:33.983Z","0.0.1":"2019-12-04T13:04:34.250Z","modified":"2022-04-04T20:09:20.174Z"},"maintainers":[{"name":"boosten","email":"kevinboosten@gmail.com"}],"description":"Prevent your screen from getting some sleep!","homepage":"https://github.com/Boosten/capacitor-keep-awake#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/Boosten/capacitor-keep-awake.git"},"author":{"name":"Kevin Boosten"},"bugs":{"url":"https://github.com/Boosten/capacitor-keep-awake.git/issues"},"license":"MIT","readme":"# capacitor-keep-awake\n\n[![npm version](https://badge.fury.io/js/%40boosten%2Fcapacitor-keep-awake.svg)](https://www.npmjs.com/@boosten/capacitor-keep-awake)\n\nPrevent your screen from getting some sleep!\n\n## Installation\n\n```bash\nnpm i @boosten/capacitor-keep-awake\n```\n\n## Configuration\n\n## Example\n\nCheck out the example repo: [capacitor-keep-awake-example](https://github.com/Boosten/capacitor-keep-awake-example)\n\n```typescript\nimport { Plugins } from '@capacitor/core';\n\n@Component({\n  template: `\n    <button (click)=\"keepAwake()\">keep awake!</button>\n    <button (click)=\"allowSleep()\">let me sleep!</button>\n  `\n})\nexport class SignupComponent {\n  async keepAwake() {\n    await Plugins.KeepAwake.keepAwake();\n  }\n\n  async allowSleep() {\n    await Plugins.KeepAwake.allowSleep();\n  }\n}\n```\n\n### Web\n\nThis functionality is not applicable to the browser.\n\n### iOS\n\nNo extra steps required 🙂.\n\n### Android\n\nYou have to register your plugin in your app main activity. See official [Capacitor docs](https://capacitor.ionicframework.com/docs/plugins/android/#export-to-capacitor)\n\n```java\npublic class MainActivity extends BridgeActivity {\n  @Override\n  public void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n\n    // Initializes the Bridge\n    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {\n      {\n        // Additional plugins you've installed go here\n        // Ex: add(TotallyAwesomePlugin.class);\n        add(KeepAwake.class);\n      }\n    });\n  }\n}\n```\n\n## Credits\n\nCapacitor version of the plugin: [cordova insommia](https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin).\n","readmeFilename":"README.md"}