From 9fca54ea48ba2528dcf1d69b623f0724fc7c40e8 Mon Sep 17 00:00:00 2001 From: maverickmishra Date: Tue, 7 Feb 2017 15:37:47 -0800 Subject: [PATCH] Updated Readme with new methods for screen object --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);