mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-05-05 01:32:59 +08:00
Added missing orientation types to README
This commit is contained in:
parent
82394e15e7
commit
d0f38c48fc
@ -25,6 +25,12 @@ The orientation is in the primary landscape mode.
|
|||||||
__landscape-secondary__
|
__landscape-secondary__
|
||||||
The orientation is in the secondary landscape mode.
|
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
|
##Usage
|
||||||
|
|
||||||
screen.lockOrientation('landscape');
|
screen.lockOrientation('landscape');
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
id="net.yoik.cordova.plugins.screenorientation"
|
id="net.yoik.cordova.plugins.screenorientation"
|
||||||
version="1.0.0">
|
version="1.0.1">
|
||||||
|
|
||||||
<name>YoikScreenOrientation</name>
|
<name>YoikScreenOrientation</name>
|
||||||
<description>Yoik Screen Orientation Plugin</description>
|
<description>Yoik Screen Orientation Plugin</description>
|
||||||
|
@ -35,6 +35,7 @@ var argscheck = require('cordova/argscheck'),
|
|||||||
'portrait',
|
'portrait',
|
||||||
// The orientation is either portrait-primary or portrait-secondary.
|
// The orientation is either portrait-primary or portrait-secondary.
|
||||||
'landscape'
|
'landscape'
|
||||||
|
// The orientation is either landscape-primary or landscape-secondary.
|
||||||
],
|
],
|
||||||
currOrientation = 'unlocked';
|
currOrientation = 'unlocked';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user