mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-02-23 08:32:51 +08:00
Merge pull request #8 from gbenvenuti/screenOrientationApi
Added missing orientation types to README
This commit is contained in:
commit
f3e89b7a07
@ -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');
|
||||
|
@ -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>
|
||||
|
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user