Merge pull request #8 from gbenvenuti/screenOrientationApi

Added missing orientation types to README
This commit is contained in:
Grant Benvenuti 2014-07-13 16:51:06 +10:00
commit f3e89b7a07
3 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,12 @@ The orientation is in the primary landscape mode.
__landscape-secondary__
The orientation is in the secondary landscape mode.
__portrait__
The orientation is either portrait-primary or portrait-secondary (sensor).
__landscape__
The orientation is either landscape-primary or landscape-secondary (sensor).
##Usage
screen.lockOrientation('landscape');

View File

@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="net.yoik.cordova.plugins.screenorientation"
version="1.0.0">
version="1.0.1">
<name>YoikScreenOrientation</name>
<description>Yoik Screen Orientation Plugin</description>

View File

@ -35,6 +35,7 @@ var argscheck = require('cordova/argscheck'),
'portrait',
// The orientation is either portrait-primary or portrait-secondary.
'landscape'
// The orientation is either landscape-primary or landscape-secondary.
],
currOrientation = 'unlocked';