mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-05-05 01:32:59 +08:00
Update README.md
This commit is contained in:
parent
098b4b829d
commit
0a927a0d7d
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user