Skip to content

justinobney/pg-plugin-screen-orientation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Updated to use with Cordova 2.5

Screen Orientation PhoneGap Plugin for Android

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

How to install

  1. Add com/tsukurusha/phonegap/plugins/ScreenOrientation.java to your src folder.

  2. Add the following line to res/xml/plugins.xml. <plugin name="ScreenOrientation" value="com.tsukurusha.phonegap.plugins.ScreenOrientation" />

  3. Add pg-plugin-screen-orientation.js to your assets/www folder and import it into your html file like: <script type="text/javascript" charset="utf-8" src="pg-plugin-screen-orientation.js"></script>

  4. The javascript interface is as follows:

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 86.1%
  • JavaScript 13.9%