Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11360

Get the current state

    XMLWordPrintableJSON

Details

    Description

      Migrated from Issue #66

      from TorokDaniel:

      A new API method would be nice, where we can see the plugin's current state (unlocked, or locked to a specific orientation). There is a private property for this in the .js file, but it is not published on the screen object.

      Example - why would anyone need this:

      Someone developing a plugin, which has a screen where an orientation lock is required. When the plugin's screen has disappeared I want to restore the previous screen status. With the current API, I am not able to tell if the screen was locked or not and I don't want to unlock it if the main application had a good reason to lock it in the first place.

      Code snippet required:

      screenObject.getCurrentOrientation = function() {
      return screenOrientation.currOrientation;
      };

      Attachments

        Activity

          People

            Unassigned Unassigned
            tony-- Tony Homer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: