|
| 1 | +# Cordova SecureDeviceIdentifier # |
| 2 | +by [Olivier Louvignes](http://olouv.com) |
| 3 | + |
| 4 | +## DESCRIPTION ## |
| 5 | + |
| 6 | +* This plugin provides a simple way to integrate and communicate with an Unity view. |
| 7 | + |
| 8 | +* This plugin is built for Cordova >= v2.1.0 with ARC, it has been tested to work without ARC. |
| 9 | + |
| 10 | +## PLUGIN SETUP FOR IOS ## |
| 11 | + |
| 12 | +Using this plugin requires [Cordova iOS](https://github.com/apache/incubator-cordova-ios). |
| 13 | + |
| 14 | +1. `cordova plugin add io.mgcrea.Unity` |
| 15 | + |
| 16 | +## JAVASCRIPT INTERFACE (IOS/ANDROID) ## |
| 17 | + |
| 18 | + // After device ready, create a local alias |
| 19 | + var Unity = cordova.plugins.Unity; |
| 20 | + |
| 21 | + Unity.show({x: 200, y: 200, width: 512, height: 384}); |
| 22 | + Unity.sendMessage("foo;bar"); |
| 23 | + Unity.hide(); |
| 24 | + |
| 25 | +* Check [source](https://github.com/mgcrea/cordova-unity/tree/master/www/Unity.js) for additional configuration. |
| 26 | + |
| 27 | +## BUGS AND CONTRIBUTIONS ## |
| 28 | + |
| 29 | +Patches welcome! Send a pull request. Since this is not a part of Cordova Core (which requires a CLA), this should be easier. |
| 30 | + |
| 31 | +Post issues on [Github](https://github.com/mgcrea/cordova-unity/issues) |
| 32 | + |
| 33 | +The latest code (my fork) will always be [here](https://github.com/mgcrea/cordova-unity/tree/master) |
| 34 | + |
| 35 | +## LICENSE ## |
| 36 | + |
| 37 | + The MIT License (MIT) |
| 38 | + |
| 39 | + Copyright (c) 2015 Olivier Louvignes |
| 40 | + |
| 41 | + Permission is hereby granted, free of charge, to any person obtaining a copy |
| 42 | + of this software and associated documentation files (the "Software"), to deal |
| 43 | + in the Software without restriction, including without limitation the rights |
| 44 | + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 45 | + copies of the Software, and to permit persons to whom the Software is |
| 46 | + furnished to do so, subject to the following conditions: |
| 47 | + |
| 48 | + The above copyright notice and this permission notice shall be included in all |
| 49 | + copies or substantial portions of the Software. |
| 50 | + |
| 51 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 52 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 53 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 54 | + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 55 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 56 | + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 57 | + SOFTWARE. |
| 58 | + |
| 59 | +## CREDITS ## |
| 60 | + |
| 61 | +Contributors : |
| 62 | + |
| 63 | +* [Olivier Louvignes](http://olouv.com), author. |
| 64 | + |
0 commit comments