You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (Jira)" <ji...@apache.org> on 2020/06/24 16:08:00 UTC
[jira] [Closed] (CB-11360) Get the current state
[ https://issues.apache.org/jira/browse/CB-11360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jcesarmobile closed CB-11360.
-----------------------------
Resolution: Won't Do
closing as won't do as nobody has worked on it, nor voted, nor commented
> Get the current state
> ---------------------
>
> Key: CB-11360
> URL: https://issues.apache.org/jira/browse/CB-11360
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-plugin-screen-orientation
> Affects Versions: 1.4.2
> Reporter: Tony Homer
> Priority: Major
> Labels: triaged
>
> Migrated from [Issue #66|https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues/66]
> from [TorokDaniel|https://github.com/TorokDaniel]:
> {quote}
> 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;
> };
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org