ScreenOrientation

Screen Orientation PhoneGap Plugin for Android
gitawego0.2.10
platforms: android
$ cordova plugin add com.tsukurusha.cordova.screenorientation

Updated to use with Cordova 3.x

Screen Orientation PhoneGap Plugin for Android

This PhoneGap Plugin for Android can lock/unlock the screen orientation.

How to install

  • install it via cordova cli: cordova plugin add https://github.com/gitawego/pg-plugin-screen-orientation.git

  • Add the following line to www/config.xml.

<gap:plugin name="com.tsukurusha.cordova.screenorientation" />
  • The javascript interface is as follows: