cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daserge <>
Subject [GitHub] cordova-docs pull request #690: Cordova Screen Orientation Plugin Blog
Date Fri, 31 Mar 2017 17:17:16 GMT
Github user daserge commented on a diff in the pull request:
    --- Diff: www/_posts/ ---
    @@ -0,0 +1,70 @@
    +layout: post
    +    name: Vishal Mishra
    +    url:
    +title:  "Screen Orientation Plugin"
    +categories: news
    +tags: cordova screen orientation
    +Originally posted at this [PhoneGap blog](
    +## Cordova Screen Orientation Plugin
    +The new version(2.0.0) of the cordova screen orientation plugin was released recently.
The purpose of the plugin is to set/lock the screen orientation in a common way for all the
major platforms. This new version conforms with the specifications mentioned in the [W3C Screen
Orientation API](, currently in open draft.
    +The plugin incorporates these major updates:
    +1. Locking/unlocking the screen orientation.
    +2. Accessing the current screen orientation.
    +3. Addition of ‘onchange’ event handler to the screen.orientation object.
    +4. A Demo App.
    +### Locking/unlocking the screen orientation
    +The screen orientation can be locked to a particular orientation, say, for example, landscape,
using :
    +screen.orientation.lock(‘landscape’).then(function success() {
    --- End diff --
    `‘landscape’` does it make sense to replace it to standard quote chars? `'landscape'`

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message