@capacitor/screen-orientation 8.0.0-nightly-20250908T150558.0 → 8.0.0-nightly-20250910T150534.0

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 CHANGED
@@ -69,6 +69,12 @@ lock(options: OrientationLockOptions) => Promise<void>
69
69
 
70
70
  Locks the screen orientation.
71
71
 
72
+ Starting in Android targetSdk 36, this method has no effect for large screens (e.g. tablets) on Android 16 an higher.
73
+ You may opt-out of this behavior in your app by adding `&lt;property android:name="android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY" android:value="true" /&gt;` to your `AndroidManifest.xml` inside `&lt;application&gt;` or `&lt;activity&gt;`.
74
+ Keep in mind though that this opt-out is temporary will no longer work for Android 17. Android discourages setting specific orientations for large screens.
75
+ Regular Android phones are unaffected by this change.
76
+ For more information check the Android docs at https://developer.android.com/about/versions/16/behavior-changes-16#adaptive-layouts
77
+
72
78
  | Param | Type |
73
79
  | ------------- | ------------------------------------------------------------------------- |
74
80
  | **`options`** | <code><a href="#orientationlockoptions">OrientationLockOptions</a></code> |
package/dist/docs.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "text": "4.0.0"
40
40
  }
41
41
  ],
42
- "docs": "Locks the screen orientation.",
42
+ "docs": "Locks the screen orientation.\n\nStarting in Android targetSdk 36, this method has no effect for large screens (e.g. tablets) on Android 16 an higher.\nYou may opt-out of this behavior in your app by adding `<property android:name=\"android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY\" android:value=\"true\" />` to your `AndroidManifest.xml` inside `<application>` or `<activity>`.\nKeep in mind though that this opt-out is temporary will no longer work for Android 17. Android discourages setting specific orientations for large screens.\nRegular Android phones are unaffected by this change.\nFor more information check the Android docs at https://developer.android.com/about/versions/16/behavior-changes-16#adaptive-layouts",
43
43
  "complexTypes": [
44
44
  "OrientationLockOptions"
45
45
  ],
@@ -19,6 +19,12 @@ export interface ScreenOrientationPlugin {
19
19
  /**
20
20
  * Locks the screen orientation.
21
21
  *
22
+ * Starting in Android targetSdk 36, this method has no effect for large screens (e.g. tablets) on Android 16 an higher.
23
+ * You may opt-out of this behavior in your app by adding `<property android:name="android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY" android:value="true" />` to your `AndroidManifest.xml` inside `<application>` or `<activity>`.
24
+ * Keep in mind though that this opt-out is temporary will no longer work for Android 17. Android discourages setting specific orientations for large screens.
25
+ * Regular Android phones are unaffected by this change.
26
+ * For more information check the Android docs at https://developer.android.com/about/versions/16/behavior-changes-16#adaptive-layouts
27
+ *
22
28
  * @since 4.0.0
23
29
  */
24
30
  lock(options: OrientationLockOptions): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nexport interface OrientationLockOptions {\n /**\n * Note: Typescript v5.2+ users should import OrientationLockType from @capacitor/screen-orientation.\n */\n orientation: OrientationLockType;\n}\n\nexport type OrientationLockType =\n | 'any'\n | 'natural'\n | 'landscape'\n | 'portrait'\n | 'portrait-primary'\n | 'portrait-secondary'\n | 'landscape-primary'\n | 'landscape-secondary';\n\nexport interface ScreenOrientationResult {\n type: OrientationType;\n}\n\nexport interface ScreenOrientationPlugin {\n /**\n * Returns the current screen orientation.\n *\n * @since 4.0.0\n */\n orientation(): Promise<ScreenOrientationResult>;\n\n /**\n * Locks the screen orientation.\n *\n * @since 4.0.0\n */\n lock(options: OrientationLockOptions): Promise<void>;\n\n /**\n * Unlocks the screen's orientation.\n *\n * @since 4.0.0\n */\n unlock(): Promise<void>;\n\n /**\n * Listens for screen orientation changes.\n *\n * @since 4.0.0\n */\n addListener(\n eventName: 'screenOrientationChange',\n listenerFunc: (orientation: ScreenOrientationResult) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Removes all listeners.\n *\n * @since 4.0.0\n */\n removeAllListeners(): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nexport interface OrientationLockOptions {\n /**\n * Note: Typescript v5.2+ users should import OrientationLockType from @capacitor/screen-orientation.\n */\n orientation: OrientationLockType;\n}\n\nexport type OrientationLockType =\n | 'any'\n | 'natural'\n | 'landscape'\n | 'portrait'\n | 'portrait-primary'\n | 'portrait-secondary'\n | 'landscape-primary'\n | 'landscape-secondary';\n\nexport interface ScreenOrientationResult {\n type: OrientationType;\n}\n\nexport interface ScreenOrientationPlugin {\n /**\n * Returns the current screen orientation.\n *\n * @since 4.0.0\n */\n orientation(): Promise<ScreenOrientationResult>;\n\n /**\n * Locks the screen orientation.\n *\n * Starting in Android targetSdk 36, this method has no effect for large screens (e.g. tablets) on Android 16 an higher.\n * You may opt-out of this behavior in your app by adding `<property android:name=\"android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY\" android:value=\"true\" />` to your `AndroidManifest.xml` inside `<application>` or `<activity>`.\n * Keep in mind though that this opt-out is temporary will no longer work for Android 17. Android discourages setting specific orientations for large screens.\n * Regular Android phones are unaffected by this change.\n * For more information check the Android docs at https://developer.android.com/about/versions/16/behavior-changes-16#adaptive-layouts\n *\n * @since 4.0.0\n */\n lock(options: OrientationLockOptions): Promise<void>;\n\n /**\n * Unlocks the screen's orientation.\n *\n * @since 4.0.0\n */\n unlock(): Promise<void>;\n\n /**\n * Listens for screen orientation changes.\n *\n * @since 4.0.0\n */\n addListener(\n eventName: 'screenOrientationChange',\n listenerFunc: (orientation: ScreenOrientationResult) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Removes all listeners.\n *\n * @since 4.0.0\n */\n removeAllListeners(): Promise<void>;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/screen-orientation",
3
- "version": "8.0.0-nightly-20250908T150558.0",
3
+ "version": "8.0.0-nightly-20250910T150534.0",
4
4
  "description": "The Screen Orientation API provides methods to lock and unlock the screen orientation.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "4c2f39a8fc78578c919a81ba410d6a37e70152d0"
84
+ "gitHead": "c0151b2fd21f3b4c6a5efe675ef81f0202b356ec"
85
85
  }