{"maintainers":[{"name":"anonymous","email":"allan.schytt@gmail.com"}],"keywords":["cordova","device","cordova-android"],"dist-tags":{"latest":"1.0.0"},"author":{"name":"Apache Software Foundation"},"description":"Modified Cordova Device Plugin","readme":"\r\n<!--\r\n# license: Licensed to the Apache Software Foundation (ASF) under one\r\n#         or more contributor license agreements.  See the NOTICE file\r\n#         distributed with this work for additional information\r\n#         regarding copyright ownership.  The ASF licenses this file\r\n#         to you under the Apache License, Version 2.0 (the\r\n#         \"License\"); you may not use this file except in compliance\r\n#         with the License.  You may obtain a copy of the License at\r\n#\r\n#           http://www.apache.org/licenses/LICENSE-2.0\r\n#\r\n#         Unless required by applicable law or agreed to in writing,\r\n#         software distributed under the License is distributed on an\r\n#         \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n#         KIND, either express or implied.  See the License for the\r\n#         specific language governing permissions and limitations\r\n#         under the License.\r\n-->\r\n\r\n# cordova-plugin\r\n\r\nThis plugin defines a global `device` object, which describes the device's hardware and software.\r\nAlthough the object is in the global scope, it is not available until after the `deviceready` event.\r\n\r\nStraight copy from apache cordova sample - used to extend\r\n\r\n```js\r\nplugman install --platform android --project . --plugin cordova-plugin\r\n\r\nplugman uninstall --platform android --project .--plugin cordova-plugin\r\n```\r\n\r\n```js\r\ndocument.addEventListener(\"deviceready\", onDeviceReady, false);\r\nfunction onDeviceReady() {\r\n    console.log(mydevice.cordova);\r\n}\r\n```\r\n\r\n## Installation\r\n\r\n    cordova plugin add cordova-plugin\r\n\r\n## Properties\r\n\r\n- mydevice.cordova\r\n- mydevice.model\r\n- mydevice.platform\r\n- mydevice.uuid\r\n- mydevice.version\r\n- mydevice.manufacturer\r\n- mydevice.isVirtual\r\n- mydevice.serial\r\n\r\n## mydevice.cordova\r\n\r\nGet the version of Cordova running on the device.\r\n\r\n## mydevice.model\r\n\r\nThe `mydevice.model` returns the name of the device's model or\r\nproduct. The value is set by the device manufacturer and may be\r\ndifferent across versions of the same product.\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar model = mydevice.model;\r\n```\r\n\r\n### Quirks\r\n\r\n- Gets the [product name](http://developer.android.com/reference/android/os/Build.html#PRODUCT) instead of the [model name](http://developer.android.com/reference/android/os/Build.html#MODEL), which is often the production code name. For example, the Nexus One returns `Passion`, and Motorola Droid returns `voles`.\r\n\r\n## mydevice.platform\r\n\r\nGet the device's operating system name.\r\n\r\n```js\r\nvar string = mydevice.platform;\r\n```\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar devicePlatform = mydevice.platform;\r\n```\r\n\r\n## mydevice.uuid\r\n\r\nGet the device's Universally Unique Identifier ([UUID](http://en.wikipedia.org/wiki/Universally_Unique_Identifier)).\r\n\r\n```js\r\nvar string = mydevice.uuid;\r\n```\r\n\r\n### Description\r\n\r\nThe details of how a UUID is generated are determined by the device manufacturer and are specific to the device's platform or model.\r\n\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar deviceID = mydevice.uuid;\r\n```\r\n\r\n## mydevice.version\r\n\r\nGet the operating system version.\r\n\r\n    var string = mydevice.version;\r\n\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar deviceVersion = mydevice.version;\r\n```\r\n\r\n## mydevice.manufacturer\r\n\r\nGet the device's manufacturer.\r\n\r\n    var string = mydevice.manufacturer;\r\n\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar deviceManufacturer = mydevice.manufacturer;\r\n```\r\n\r\n## mydevice.isVirtual\r\n\r\nwhether the device is running on a simulator.\r\n\r\n```js\r\nvar isSim = mydevice.isVirtual;\r\n```\r\n\r\n## mydevice.serial\r\n\r\nGet the device hardware serial number ([SERIAL](http://developer.android.com/reference/android/os/Build.html#SERIAL)).\r\n\r\n```js\r\nvar string = mydevice.serial;\r\n```\r\n","repository":{"type":"git","url":"git+https://github.com/ascsi/cordova-plugin.git"},"bugs":{"url":"https://github.com/ascsi/cordova-plugin/issues"},"license":"Apache-2.0","versions":{"1.0.0":{"name":"cordova-plugin","version":"1.0.0","description":"Modified Cordova Device Plugin","types":"./types/index.d.ts","cordova":{"id":"cordova-plugin","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/ascsi/cordova-plugin.git"},"keywords":["cordova","device","cordova-android"],"scripts":{"test":""},"author":{"name":"Apache Software Foundation"},"license":"Apache-2.0","engines":{"cordovaDependencies":{"2.1.0":{"cordova-android":">4.0.0"}}},"bugs":{"url":"https://github.com/ascsi/cordova-plugin/issues"},"homepage":"https://github.com/ascsi/cordova-plugin#readme","gitHead":"cde02b437ad4dc37c6028537ac21fd6b2ef7a90c","_id":"cordova-plugin@1.0.0","_nodeVersion":"9.11.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Zg+Bo+fgjkB7BpQ/JkxNlY3u60CrI2vokXJYXeba/Cbqc1wlzP6Pb6OONaNNx0BytIgmNptPbM+UnTCHMlgIxA==","shasum":"13bcd9a457e494b00909c988caae9399f9b36947","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/cordova-plugin/-/cordova-plugin-1.0.0.tgz","fileCount":6,"unpackedSize":14856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAgG9CRA9TVsSAnZWagAAkL8P/2A1T/BJq0u1k9RTu2jT\n0W/9OZoiTBt0GBdiw+QhbkLF45hUZNVOQkgxYlBVM2xzdXFJXcTzO80/obho\niDr0nXewYI5jZbjqOMsZMk3svONYht+Dc8pRGp3kBa4caSQZxRpEH65omO/4\nR5w6uh63TIOrQrKCD2+P7YlIyC8SII8qFNdsD7mbUbaThgoJ3Y3HRMHGxFEX\nCMr4hjnl75fD7wPInCiITPGQFcUuefk4b6ed0j++W3YLu7tQiTVzVQU4RcKv\nMBKDZnwvTxSiBLcr0KNggJkFI9RoKUNXre9MkJxi/b4Q2klcA68sz9Ay4G4o\ntCPewyZbz5qZPYPCI/6AbDHeeLIJ6fITKaW+HOMdynk8CQ5oiWzXWzXCJGwh\nAqCMrZxTAJkrw8EevHrpJMQYfdkCjOa/emHvIbx0Ba3AsYYChnTHYp/fedmM\nkxKIhyhWMZCoHnZl9bSVr4TYmvtzTiuAEueAtNCD6S/Po/QZcFlmEt5Vh48c\nQHKh5RvXuAoQ1Aote3swCQigBqzaafHZClu+nVK6LGEuqf++r5xxqqaK/BkF\n6vRFScr6nHr6Zx//DrHLgAVuQOHzx5blbRANHlGiz2soi2vkJ15hYX4bcm6p\nV41GNFSWWhBZk1E05+TNqJ5O36/zvzwe9oVqgcjTtXOrgEXSKU3/gvlOZFVr\nh9wJ\r\n=Hz/P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuunaX90fzWnwUi7jxrZPmlkruCn9QhGyosO7MktT8pwIgFvphtC3ETY5j22PnTf//NBTmaCbau+C2CWCGwexIqqY="}]},"maintainers":[{"name":"anonymous","email":"allan.schytt@gmail.com"}],"_npmUser":{"name":"anonymous","email":"allan.schytt@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin_1.0.0_1560412605378_0.5685330112740596"},"_hasShrinkwrap":false}},"name":"cordova-plugin","time":{"0.1.0":"2016-05-20T11:50:21.885Z","created":"2019-06-13T07:56:45.377Z","1.0.0":"2019-06-13T07:56:45.513Z","modified":"2022-04-27T17:07:06.533Z"},"readmeFilename":"readme.md","homepage":"https://github.com/ascsi/cordova-plugin#readme"}