You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2017/02/22 03:26:51 UTC
[8/9] cordova-plugin-screen-orientation git commit: Updated Readme
with new methods for screen object
Updated Readme with new methods for screen object
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/9fca54ea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/9fca54ea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/9fca54ea
Branch: refs/heads/master
Commit: 9fca54ea48ba2528dcf1d69b623f0724fc7c40e8
Parents: 4d6d8b4
Author: maverickmishra <vi...@gmail.com>
Authored: Tue Feb 7 15:37:47 2017 -0800
Committer: maverickmishra <vi...@gmail.com>
Committed: Mon Feb 13 16:21:00 2017 -0800
----------------------------------------------------------------------
README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/9fca54ea/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 770d399..424389b 100644
--- a/README.md
+++ b/README.md
@@ -29,10 +29,10 @@ The plugin adds the following to the screen object (`window.screen`):
```js
// lock the device orientation
-.lockOrientation('portrait')
+.orientation.lock('portrait')
// unlock the orientation
-.unlockOrientation()
+.orientation.unlock()
// current orientation
.orientation
@@ -72,10 +72,10 @@ cordova plugin add cordova-plugin-screen-orientation
```js
// set to either landscape
-screen.lockOrientation('landscape');
+screen.orientation.lock('landscape');
// allow user rotate
-screen.unlockOrientation();
+screen.orientation.unlock();
// access current orientation
console.log('Orientation is ' + screen.orientation);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org