Update README.md

This commit is contained in:
gbenvenuti 2014-05-07 09:46:54 +10:00
parent 098b4b829d
commit 0a927a0d7d

View File

@ -3,7 +3,10 @@ cordova-yoik-screenorientation
Cordova plugin to set/lock the screen orientation in a common way for both iOS and Android. Cordova plugin to set/lock the screen orientation in a common way for both iOS and Android.
Install
=
cordova plugin install https://github.com/yoik/cordova-yoik-screenorientation
Android Android
==== ====
The android version is implemented via the standard _activity.setRequestedOrientation_ as used in other screen orientation plugins The android version is implemented via the standard _activity.setRequestedOrientation_ as used in other screen orientation plugins
@ -40,4 +43,4 @@ Usage
so.setOrientation(successCallback, errorCallback, so.Orientation.PORTRAIT); so.setOrientation(successCallback, errorCallback, so.Orientation.PORTRAIT);
// no callbacks // no callbacks
so.setOrientation(so.Orientation.SENSOR_LANDSCAPE); so.setOrientation(so.Orientation.SENSOR_LANDSCAPE);