@capawesome/capacitor-screen-orientation 8.0.3 → 8.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/ios/Plugin/ScreenOrientation.swift +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Capacitor plugin to lock/unlock the screen orientation.
|
|
4
4
|
|
|
5
5
|
<div class="capawesome-z29o10a">
|
|
6
|
-
<a href="https://
|
|
7
|
-
<img alt="
|
|
6
|
+
<a href="https://capawesome.io/" target="_blank">
|
|
7
|
+
<img alt="Thousands of teams ship faster with Capawesome Cloud Native Builds and Live Updates" src="https://capawesome.io/assets/banners/cloud-teams-ship-faster-with-capacitor.png" />
|
|
8
8
|
</a>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
@@ -44,6 +44,10 @@ The Screen Orientation plugin is typically used whenever certain screens of an a
|
|
|
44
44
|
| 6.x.x | 6.x.x | Deprecated |
|
|
45
45
|
| 5.x.x | 5.x.x | Deprecated |
|
|
46
46
|
|
|
47
|
+
## Demo
|
|
48
|
+
|
|
49
|
+
A working example can be found here: [robingenz/capacitor-plugin-demo](https://github.com/robingenz/capacitor-plugin-demo)
|
|
50
|
+
|
|
47
51
|
## Installation
|
|
48
52
|
|
|
49
53
|
You can use our **AI-Assisted Setup** to install the plugin.
|
|
@@ -102,10 +106,6 @@ On iPad, you must add the following to your app's `Info.plist`:
|
|
|
102
106
|
|
|
103
107
|
No configuration required for this plugin.
|
|
104
108
|
|
|
105
|
-
## Demo
|
|
106
|
-
|
|
107
|
-
A working example can be found here: [robingenz/capacitor-plugin-demo](https://github.com/robingenz/capacitor-plugin-demo)
|
|
108
|
-
|
|
109
109
|
## Usage
|
|
110
110
|
|
|
111
111
|
The following examples show how to lock, unlock, and read the current screen orientation.
|
|
@@ -55,6 +55,7 @@ import Capacitor
|
|
|
55
55
|
ScreenOrientation.supportedInterfaceOrientations = orientationMask
|
|
56
56
|
UINavigationController.attemptRotationToDeviceOrientation()
|
|
57
57
|
guard let orientationType = self.lastOrientationType else {
|
|
58
|
+
completion()
|
|
58
59
|
return
|
|
59
60
|
}
|
|
60
61
|
let orientationValue = self.convertOrientationTypeToValue(orientationType)
|
package/package.json
CHANGED