expo-screen-capture 56.0.2 → 56.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/CHANGELOG.md +10 -0
- package/android/build.gradle +2 -2
- package/build/ScreenCapture.d.ts +4 -2
- package/build/ScreenCapture.d.ts.map +1 -1
- package/build/ScreenCapture.js +4 -2
- package/build/ScreenCapture.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2.module → 56.0.4/expo.modules.screencapture-56.0.4.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.4/expo.modules.screencapture-56.0.4.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.4/expo.modules.screencapture-56.0.4.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.4/expo.modules.screencapture-56.0.4.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.4/expo.modules.screencapture-56.0.4.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2.pom → 56.0.4/expo.modules.screencapture-56.0.4.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.4/expo.modules.screencapture-56.0.4.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.4/expo.modules.screencapture-56.0.4.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.4/expo.modules.screencapture-56.0.4.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.4/expo.modules.screencapture-56.0.4.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha512 +1 -1
- package/package.json +4 -4
- package/src/ScreenCapture.ts +4 -13
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.2/expo.modules.screencapture-56.0.2.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.2/expo.modules.screencapture-56.0.2.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.2/expo.modules.screencapture-56.0.2.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.2/expo.modules.screencapture-56.0.2.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.2/expo.modules.screencapture-56.0.2.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.2/expo.modules.screencapture-56.0.2.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.2/expo.modules.screencapture-56.0.2.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/56.0.2/expo.modules.screencapture-56.0.2.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2-sources.jar → 56.0.4/expo.modules.screencapture-56.0.4-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2-sources.jar.md5 → 56.0.4/expo.modules.screencapture-56.0.4-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2-sources.jar.sha1 → 56.0.4/expo.modules.screencapture-56.0.4-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2-sources.jar.sha256 → 56.0.4/expo.modules.screencapture-56.0.4-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2-sources.jar.sha512 → 56.0.4/expo.modules.screencapture-56.0.4-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2.aar → 56.0.4/expo.modules.screencapture-56.0.4.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2.aar.md5 → 56.0.4/expo.modules.screencapture-56.0.4.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2.aar.sha1 → 56.0.4/expo.modules.screencapture-56.0.4.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2.aar.sha256 → 56.0.4/expo.modules.screencapture-56.0.4.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/{56.0.2/expo.modules.screencapture-56.0.2.aar.sha512 → 56.0.4/expo.modules.screencapture-56.0.4.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 56.0.4 — 2026-05-13
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Updated permission hooks and permission type imports to be imported from `expo` instead of `expo-modules-core` ([#45565](https://github.com/expo/expo/pull/45565) by [@Wenszel](https://github.com/Wenszel))
|
|
18
|
+
|
|
19
|
+
## 56.0.3 — 2026-05-06
|
|
20
|
+
|
|
21
|
+
_This version does not introduce any user-facing changes._
|
|
22
|
+
|
|
13
23
|
## 56.0.2 — 2026-05-06
|
|
14
24
|
|
|
15
25
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
package/build/ScreenCapture.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type PermissionResponse
|
|
1
|
+
import { type PermissionResponse } from 'expo';
|
|
2
|
+
import { type EventSubscription } from 'expo-modules-core';
|
|
2
3
|
/**
|
|
3
4
|
* Returns whether the Screen Capture API is available on the current device.
|
|
4
5
|
*
|
|
@@ -117,5 +118,6 @@ export declare function requestPermissionsAsync(): Promise<PermissionResponse>;
|
|
|
117
118
|
* ```
|
|
118
119
|
*/
|
|
119
120
|
export declare const usePermissions: (options?: import("expo-modules-core").PermissionHookOptions<object> | undefined) => [PermissionResponse | null, () => Promise<PermissionResponse>, () => Promise<PermissionResponse>];
|
|
120
|
-
export { type
|
|
121
|
+
export { type PermissionResponse, PermissionStatus, type PermissionHookOptions } from 'expo';
|
|
122
|
+
export { type EventSubscription as Subscription } from 'expo-modules-core';
|
|
121
123
|
//# sourceMappingURL=ScreenCapture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenCapture.d.ts","sourceRoot":"","sources":["../src/ScreenCapture.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ScreenCapture.d.ts","sourceRoot":"","sources":["../src/ScreenCapture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,kBAAkB,EAAoB,MAAM,MAAM,CAAC;AACvF,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAUhF;;;;;GAKG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAEzD;AAGD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,yBAAyB,CAAC,GAAG,GAAE,MAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAStF;AAGD;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAAC,GAAG,GAAE,MAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CASpF;AAGD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,GAAE,MAAkB,GAAG,IAAI,CAQrE;AAGD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,gCAAgC,CAAC,aAAa,GAAE,MAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAMjG;AAGD;;;;GAIG;AACH,wBAAsB,iCAAiC,IAAI,OAAO,CAAC,IAAI,CAAC,CAMvE;AAGD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,iBAAiB,CAE7E;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,iBAAiB,QAEvE;AAGD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,IAAI,QAQzD;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAKvE;AAED;;;;KAIK;AACL,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAK3E;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,wLAGzB,CAAC;AAUH,OAAO,EAAE,KAAK,kBAAkB,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,MAAM,CAAC;AAC7F,OAAO,EAAE,KAAK,iBAAiB,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
package/build/ScreenCapture.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createPermissionHook, PermissionStatus } from 'expo';
|
|
2
|
+
import { UnavailabilityError } from 'expo-modules-core';
|
|
2
3
|
import { useEffect } from 'react';
|
|
3
4
|
import ExpoScreenCapture from './ExpoScreenCapture';
|
|
4
5
|
const activeTags = new Set();
|
|
@@ -195,5 +196,6 @@ const defaultPermissionsResponse = {
|
|
|
195
196
|
status: PermissionStatus.GRANTED,
|
|
196
197
|
};
|
|
197
198
|
// TODO(@kitten): Remove re-exports from EMC
|
|
198
|
-
export { PermissionStatus
|
|
199
|
+
export { PermissionStatus } from 'expo';
|
|
200
|
+
export {} from 'expo-modules-core';
|
|
199
201
|
//# sourceMappingURL=ScreenCapture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenCapture.js","sourceRoot":"","sources":["../src/ScreenCapture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEnB,gBAAgB,EAChB,oBAAoB,GAErB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,MAAM,UAAU,GAAgB,IAAI,GAAG,EAAE,CAAC;AAE1C,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAE7C,cAAc;AACd;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,OAAO,CAAC,CAAC,iBAAiB,CAAC,oBAAoB,IAAI,CAAC,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;AAC5F,CAAC;AAED,cAAc;AACd;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,MAAc,SAAS;IACrE,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,EAAE,CAAC;QAC5C,MAAM,IAAI,mBAAmB,CAAC,eAAe,EAAE,2BAA2B,CAAC,CAAC;IAC9E,CAAC;IAED,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,iBAAiB,CAAC,oBAAoB,EAAE,CAAC;IACjD,CAAC;AACH,CAAC;AAED,cAAc;AACd;;;;;;;;G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EAGL,gBAAgB,GAEjB,MAAM,mBAAmB,CAAC","sourcesContent":["import {\n UnavailabilityError,\n type PermissionResponse,\n PermissionStatus,\n createPermissionHook,\n type EventSubscription,\n} from 'expo-modules-core';\nimport { useEffect } from 'react';\n\nimport ExpoScreenCapture from './ExpoScreenCapture';\n\nconst activeTags: Set<string> = new Set();\n\nconst onScreenshotEventName = 'onScreenshot';\n\n// @needsAudit\n/**\n * Returns whether the Screen Capture API is available on the current device.\n *\n * @returns A promise that resolves to a `boolean` indicating whether the Screen Capture API is available on the current\n * device.\n */\nexport async function isAvailableAsync(): Promise<boolean> {\n return !!ExpoScreenCapture.preventScreenCapture && !!ExpoScreenCapture.allowScreenCapture;\n}\n\n// @needsAudit\n/**\n * Prevents screenshots and screen recordings until `allowScreenCaptureAsync` is called or the app is restarted. If you are\n * already preventing screen capture, this method does nothing (unless you pass a new and unique `key`).\n *\n * > On iOS, this prevents screen recordings and screenshots, and is only available on iOS 11+ (recordings) and iOS 13+ (screenshots). On older\n * iOS versions, this method does nothing.\n *\n * @param key Optional. If provided, this will help prevent multiple instances of the `preventScreenCaptureAsync`\n * and `allowScreenCaptureAsync` methods (and `usePreventScreenCapture` hook) from conflicting with each other.\n * When using multiple keys, you'll have to re-allow each one in order to re-enable screen capturing.\n *\n * @platform android\n * @platform ios\n */\nexport async function preventScreenCaptureAsync(key: string = 'default'): Promise<void> {\n if (!ExpoScreenCapture.preventScreenCapture) {\n throw new UnavailabilityError('ScreenCapture', 'preventScreenCaptureAsync');\n }\n\n if (!activeTags.has(key)) {\n activeTags.add(key);\n await ExpoScreenCapture.preventScreenCapture();\n }\n}\n\n// @needsAudit\n/**\n * Re-allows the user to screen record or screenshot your app. If you haven't called\n * `preventScreenCapture()` yet, this method does nothing.\n *\n * @param key This will prevent multiple instances of the `preventScreenCaptureAsync` and\n * `allowScreenCaptureAsync` methods from conflicting with each other. If provided, the value must\n * be the same as the key passed to `preventScreenCaptureAsync` in order to re-enable screen\n * capturing.\n */\nexport async function allowScreenCaptureAsync(key: string = 'default'): Promise<void> {\n if (!ExpoScreenCapture.preventScreenCapture) {\n throw new UnavailabilityError('ScreenCapture', 'allowScreenCaptureAsync');\n }\n\n activeTags.delete(key);\n if (activeTags.size === 0) {\n await ExpoScreenCapture.allowScreenCapture();\n }\n}\n\n// @needsAudit\n/**\n * A React hook to prevent screen capturing for as long as the owner component is mounted.\n *\n * @param key If provided, this will prevent multiple instances of this hook or the\n * `preventScreenCaptureAsync` and `allowScreenCaptureAsync` methods from conflicting with each other.\n * This argument is useful if you have multiple active components using the `allowScreenCaptureAsync`\n * hook.\n */\nexport function usePreventScreenCapture(key: string = 'default'): void {\n useEffect(() => {\n preventScreenCaptureAsync(key);\n\n return () => {\n allowScreenCaptureAsync(key);\n };\n }, [key]);\n}\n\n// @needsAudit\n/**\n * Enables a privacy protection blur overlay that hides sensitive content when the app is not in focus.\n * The overlay applies a customizable blur effect when the app is in the app switcher, background, or during interruptions\n * (calls, Siri, Control Center, etc.), and automatically removes it when the app becomes active again.\n *\n * This provides visual privacy protection by preventing sensitive app content from being visible in:\n * - App switcher previews\n * - Background app snapshots\n * - Screenshots taken during inactive states\n *\n * For Android, app switcher protection is automatically provided by `preventScreenCaptureAsync()`\n * using the FLAG_SECURE window flag, which shows a blank screen in the recent apps preview.\n *\n * @param blurIntensity The intensity of the blur effect, from 0.0 (no blur) to 1.0 (maximum blur). Default is 0.5.\n *\n * @platform ios\n *\n */\nexport async function enableAppSwitcherProtectionAsync(blurIntensity: number = 0.5): Promise<void> {\n if (!ExpoScreenCapture.enableAppSwitcherProtection) {\n throw new UnavailabilityError('ScreenCapture', 'enableAppSwitcherProtectionAsync');\n }\n\n await ExpoScreenCapture.enableAppSwitcherProtection(blurIntensity);\n}\n\n// @needsAudit\n/**\n * Disables the privacy protection overlay that was previously enabled with `enableAppSwitcherProtectionAsync`.\n *\n * @platform ios\n */\nexport async function disableAppSwitcherProtectionAsync(): Promise<void> {\n if (!ExpoScreenCapture.disableAppSwitcherProtection) {\n throw new UnavailabilityError('ScreenCapture', 'disableAppSwitcherProtectionAsync');\n }\n\n await ExpoScreenCapture.disableAppSwitcherProtection();\n}\n\n// @needsAudit\n/**\n * Adds a listener that will fire whenever the user takes a screenshot while the app is foregrounded.\n *\n * Permission requirements for this method depend on your device’s Android version:\n * - **Before Android 13**: Requires `READ_EXTERNAL_STORAGE`.\n * - **Android 13**: Switches to `READ_MEDIA_IMAGES`.\n * - **Post-Android 13**: No additional permissions required.\n * You can request the appropriate permissions by using [`MediaLibrary.requestPermissionsAsync()`](./media-library/#medialibraryrequestpermissionsasync).\n *\n * @param listener The function that will be executed when the user takes a screenshot.\n * This function accepts no arguments.\n *\n * @return A `Subscription` object that you can use to unregister the listener, either by calling\n * `remove()` or passing it to `removeScreenshotListener`.\n */\nexport function addScreenshotListener(listener: () => void): EventSubscription {\n return ExpoScreenCapture.addListener(onScreenshotEventName, listener);\n}\n\n/**\n * Removes the subscription you provide, so that you are no longer listening for screenshots.\n * @deprecated use subscription.remove() instead.\n */\nexport function removeScreenshotListener(subscription: EventSubscription) {\n subscription.remove();\n}\n\n// @needsAudit\n/**\n * A React hook that listens for screenshots taken while the component is mounted.\n *\n * @param listener A function that will be called whenever a screenshot is detected.\n *\n * This hook automatically starts listening when the component mounts, and stops\n * listening when the component unmounts.\n */\nexport function useScreenshotListener(listener: () => void) {\n useEffect(() => {\n const subscription = addScreenshotListener(listener);\n\n return () => {\n removeScreenshotListener(subscription);\n };\n }, [listener]);\n}\n\n/**\n * Checks user's permissions for detecting when a screenshot is taken.\n * > Only Android requires additional permissions to detect screenshots. On iOS devices, this method will always resolve to a `granted` permission response.\n * @return A promise that resolves to a [`PermissionResponse`](#permissionresponse) object.\n */\nexport async function getPermissionsAsync(): Promise<PermissionResponse> {\n if (ExpoScreenCapture.getPermissionsAsync) {\n return ExpoScreenCapture.getPermissionsAsync();\n }\n return defaultPermissionsResponse;\n}\n\n/**\n * Asks the user to grant permissions necessary for detecting when a screenshot is taken.\n * > Only Android requires additional permissions to detect screenshots. On iOS devices, this method will always resolve to a `granted` permission response.\n * @return A promise that resolves to a [`PermissionResponse`](#permissionresponse) object.\n * */\nexport async function requestPermissionsAsync(): Promise<PermissionResponse> {\n if (ExpoScreenCapture.requestPermissionsAsync) {\n return ExpoScreenCapture.requestPermissionsAsync();\n }\n return defaultPermissionsResponse;\n}\n\n/**\n * Check or request permissions necessary for detecting when a screenshot is taken.\n * This uses both [`requestPermissionsAsync`](#screencapturerequestpermissionsasync) and [`getPermissionsAsync`](#screencapturegetpermissionsasync) to interact with the permissions.\n *\n * @example\n * ```js\n * const [status, requestPermission] = ScreenCapture.usePermissions();\n * ```\n */\nexport const usePermissions = createPermissionHook({\n getMethod: getPermissionsAsync,\n requestMethod: requestPermissionsAsync,\n});\n\nconst defaultPermissionsResponse: PermissionResponse = {\n granted: true,\n expires: 'never',\n canAskAgain: true,\n status: PermissionStatus.GRANTED,\n};\n\n// TODO(@kitten): Remove re-exports from EMC\nexport {\n type EventSubscription as Subscription,\n type PermissionResponse,\n PermissionStatus,\n type PermissionHookOptions,\n} from 'expo-modules-core';\n"]}
|
|
1
|
+
{"version":3,"file":"ScreenCapture.js","sourceRoot":"","sources":["../src/ScreenCapture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA2B,gBAAgB,EAAE,MAAM,MAAM,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAA0B,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,MAAM,UAAU,GAAgB,IAAI,GAAG,EAAE,CAAC;AAE1C,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAE7C,cAAc;AACd;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB;IACpC,OAAO,CAAC,CAAC,iBAAiB,CAAC,oBAAoB,IAAI,CAAC,CAAC,iBAAiB,CAAC,kBAAkB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I,iBAAiB,CAAC,uBAAuB,EAAE,CAAC;QAC9C,OAAO,iBAAiB,CAAC,uBAAuB,EAAE,CAAC;IACrD,CAAC;IACD,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC;IACjD,SAAS,EAAE,mBAAmB;IAC9B,aAAa,EAAE,uBAAuB;CACvC,CAAC,CAAC;AAEH,MAAM,0BAA0B,GAAuB;IACrD,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,gBAAgB,CAAC,OAAO;CACjC,CAAC;AAEF,4CAA4C;AAC5C,OAAO,EAA2B,gBAAgB,EAA8B,MAAM,MAAM,CAAC;AAC7F,OAAO,EAA0C,MAAM,mBAAmB,CAAC","sourcesContent":["import { createPermissionHook, type PermissionResponse, PermissionStatus } from 'expo';\nimport { UnavailabilityError, type EventSubscription } from 'expo-modules-core';\nimport { useEffect } from 'react';\n\nimport ExpoScreenCapture from './ExpoScreenCapture';\n\nconst activeTags: Set<string> = new Set();\n\nconst onScreenshotEventName = 'onScreenshot';\n\n// @needsAudit\n/**\n * Returns whether the Screen Capture API is available on the current device.\n *\n * @returns A promise that resolves to a `boolean` indicating whether the Screen Capture API is available on the current\n * device.\n */\nexport async function isAvailableAsync(): Promise<boolean> {\n return !!ExpoScreenCapture.preventScreenCapture && !!ExpoScreenCapture.allowScreenCapture;\n}\n\n// @needsAudit\n/**\n * Prevents screenshots and screen recordings until `allowScreenCaptureAsync` is called or the app is restarted. If you are\n * already preventing screen capture, this method does nothing (unless you pass a new and unique `key`).\n *\n * > On iOS, this prevents screen recordings and screenshots, and is only available on iOS 11+ (recordings) and iOS 13+ (screenshots). On older\n * iOS versions, this method does nothing.\n *\n * @param key Optional. If provided, this will help prevent multiple instances of the `preventScreenCaptureAsync`\n * and `allowScreenCaptureAsync` methods (and `usePreventScreenCapture` hook) from conflicting with each other.\n * When using multiple keys, you'll have to re-allow each one in order to re-enable screen capturing.\n *\n * @platform android\n * @platform ios\n */\nexport async function preventScreenCaptureAsync(key: string = 'default'): Promise<void> {\n if (!ExpoScreenCapture.preventScreenCapture) {\n throw new UnavailabilityError('ScreenCapture', 'preventScreenCaptureAsync');\n }\n\n if (!activeTags.has(key)) {\n activeTags.add(key);\n await ExpoScreenCapture.preventScreenCapture();\n }\n}\n\n// @needsAudit\n/**\n * Re-allows the user to screen record or screenshot your app. If you haven't called\n * `preventScreenCapture()` yet, this method does nothing.\n *\n * @param key This will prevent multiple instances of the `preventScreenCaptureAsync` and\n * `allowScreenCaptureAsync` methods from conflicting with each other. If provided, the value must\n * be the same as the key passed to `preventScreenCaptureAsync` in order to re-enable screen\n * capturing.\n */\nexport async function allowScreenCaptureAsync(key: string = 'default'): Promise<void> {\n if (!ExpoScreenCapture.preventScreenCapture) {\n throw new UnavailabilityError('ScreenCapture', 'allowScreenCaptureAsync');\n }\n\n activeTags.delete(key);\n if (activeTags.size === 0) {\n await ExpoScreenCapture.allowScreenCapture();\n }\n}\n\n// @needsAudit\n/**\n * A React hook to prevent screen capturing for as long as the owner component is mounted.\n *\n * @param key If provided, this will prevent multiple instances of this hook or the\n * `preventScreenCaptureAsync` and `allowScreenCaptureAsync` methods from conflicting with each other.\n * This argument is useful if you have multiple active components using the `allowScreenCaptureAsync`\n * hook.\n */\nexport function usePreventScreenCapture(key: string = 'default'): void {\n useEffect(() => {\n preventScreenCaptureAsync(key);\n\n return () => {\n allowScreenCaptureAsync(key);\n };\n }, [key]);\n}\n\n// @needsAudit\n/**\n * Enables a privacy protection blur overlay that hides sensitive content when the app is not in focus.\n * The overlay applies a customizable blur effect when the app is in the app switcher, background, or during interruptions\n * (calls, Siri, Control Center, etc.), and automatically removes it when the app becomes active again.\n *\n * This provides visual privacy protection by preventing sensitive app content from being visible in:\n * - App switcher previews\n * - Background app snapshots\n * - Screenshots taken during inactive states\n *\n * For Android, app switcher protection is automatically provided by `preventScreenCaptureAsync()`\n * using the FLAG_SECURE window flag, which shows a blank screen in the recent apps preview.\n *\n * @param blurIntensity The intensity of the blur effect, from 0.0 (no blur) to 1.0 (maximum blur). Default is 0.5.\n *\n * @platform ios\n *\n */\nexport async function enableAppSwitcherProtectionAsync(blurIntensity: number = 0.5): Promise<void> {\n if (!ExpoScreenCapture.enableAppSwitcherProtection) {\n throw new UnavailabilityError('ScreenCapture', 'enableAppSwitcherProtectionAsync');\n }\n\n await ExpoScreenCapture.enableAppSwitcherProtection(blurIntensity);\n}\n\n// @needsAudit\n/**\n * Disables the privacy protection overlay that was previously enabled with `enableAppSwitcherProtectionAsync`.\n *\n * @platform ios\n */\nexport async function disableAppSwitcherProtectionAsync(): Promise<void> {\n if (!ExpoScreenCapture.disableAppSwitcherProtection) {\n throw new UnavailabilityError('ScreenCapture', 'disableAppSwitcherProtectionAsync');\n }\n\n await ExpoScreenCapture.disableAppSwitcherProtection();\n}\n\n// @needsAudit\n/**\n * Adds a listener that will fire whenever the user takes a screenshot while the app is foregrounded.\n *\n * Permission requirements for this method depend on your device’s Android version:\n * - **Before Android 13**: Requires `READ_EXTERNAL_STORAGE`.\n * - **Android 13**: Switches to `READ_MEDIA_IMAGES`.\n * - **Post-Android 13**: No additional permissions required.\n * You can request the appropriate permissions by using [`MediaLibrary.requestPermissionsAsync()`](./media-library/#medialibraryrequestpermissionsasync).\n *\n * @param listener The function that will be executed when the user takes a screenshot.\n * This function accepts no arguments.\n *\n * @return A `Subscription` object that you can use to unregister the listener, either by calling\n * `remove()` or passing it to `removeScreenshotListener`.\n */\nexport function addScreenshotListener(listener: () => void): EventSubscription {\n return ExpoScreenCapture.addListener(onScreenshotEventName, listener);\n}\n\n/**\n * Removes the subscription you provide, so that you are no longer listening for screenshots.\n * @deprecated use subscription.remove() instead.\n */\nexport function removeScreenshotListener(subscription: EventSubscription) {\n subscription.remove();\n}\n\n// @needsAudit\n/**\n * A React hook that listens for screenshots taken while the component is mounted.\n *\n * @param listener A function that will be called whenever a screenshot is detected.\n *\n * This hook automatically starts listening when the component mounts, and stops\n * listening when the component unmounts.\n */\nexport function useScreenshotListener(listener: () => void) {\n useEffect(() => {\n const subscription = addScreenshotListener(listener);\n\n return () => {\n removeScreenshotListener(subscription);\n };\n }, [listener]);\n}\n\n/**\n * Checks user's permissions for detecting when a screenshot is taken.\n * > Only Android requires additional permissions to detect screenshots. On iOS devices, this method will always resolve to a `granted` permission response.\n * @return A promise that resolves to a [`PermissionResponse`](#permissionresponse) object.\n */\nexport async function getPermissionsAsync(): Promise<PermissionResponse> {\n if (ExpoScreenCapture.getPermissionsAsync) {\n return ExpoScreenCapture.getPermissionsAsync();\n }\n return defaultPermissionsResponse;\n}\n\n/**\n * Asks the user to grant permissions necessary for detecting when a screenshot is taken.\n * > Only Android requires additional permissions to detect screenshots. On iOS devices, this method will always resolve to a `granted` permission response.\n * @return A promise that resolves to a [`PermissionResponse`](#permissionresponse) object.\n * */\nexport async function requestPermissionsAsync(): Promise<PermissionResponse> {\n if (ExpoScreenCapture.requestPermissionsAsync) {\n return ExpoScreenCapture.requestPermissionsAsync();\n }\n return defaultPermissionsResponse;\n}\n\n/**\n * Check or request permissions necessary for detecting when a screenshot is taken.\n * This uses both [`requestPermissionsAsync`](#screencapturerequestpermissionsasync) and [`getPermissionsAsync`](#screencapturegetpermissionsasync) to interact with the permissions.\n *\n * @example\n * ```js\n * const [status, requestPermission] = ScreenCapture.usePermissions();\n * ```\n */\nexport const usePermissions = createPermissionHook({\n getMethod: getPermissionsAsync,\n requestMethod: requestPermissionsAsync,\n});\n\nconst defaultPermissionsResponse: PermissionResponse = {\n granted: true,\n expires: 'never',\n canAskAgain: true,\n status: PermissionStatus.GRANTED,\n};\n\n// TODO(@kitten): Remove re-exports from EMC\nexport { type PermissionResponse, PermissionStatus, type PermissionHookOptions } from 'expo';\nexport { type EventSubscription as Subscription } from 'expo-modules-core';\n"]}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.screencapture",
|
|
6
|
-
"version": "56.0.
|
|
6
|
+
"version": "56.0.4",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.screencapture-56.0.
|
|
28
|
-
"url": "expo.modules.screencapture-56.0.
|
|
27
|
+
"name": "expo.modules.screencapture-56.0.4.aar",
|
|
28
|
+
"url": "expo.modules.screencapture-56.0.4.aar",
|
|
29
29
|
"size": 29264,
|
|
30
30
|
"sha512": "2f8b58d06a0fb249f6e51c6c59304cb6649429ccbfe5b05926a3b18fc2077415a81256bf2b9b8cb6ae7dd538db47a1a0d2fa60e82533c795a78919425a46f63f",
|
|
31
31
|
"sha256": "37128441084ec294ca575577ec2fa571975111f6529bf5173b099a3c5477eeb1",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
],
|
|
75
75
|
"files": [
|
|
76
76
|
{
|
|
77
|
-
"name": "expo.modules.screencapture-56.0.
|
|
78
|
-
"url": "expo.modules.screencapture-56.0.
|
|
77
|
+
"name": "expo.modules.screencapture-56.0.4.aar",
|
|
78
|
+
"url": "expo.modules.screencapture-56.0.4.aar",
|
|
79
79
|
"size": 29264,
|
|
80
80
|
"sha512": "2f8b58d06a0fb249f6e51c6c59304cb6649429ccbfe5b05926a3b18fc2077415a81256bf2b9b8cb6ae7dd538db47a1a0d2fa60e82533c795a78919425a46f63f",
|
|
81
81
|
"sha256": "37128441084ec294ca575577ec2fa571975111f6529bf5173b099a3c5477eeb1",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
},
|
|
95
95
|
"files": [
|
|
96
96
|
{
|
|
97
|
-
"name": "expo.modules.screencapture-56.0.
|
|
98
|
-
"url": "expo.modules.screencapture-56.0.
|
|
97
|
+
"name": "expo.modules.screencapture-56.0.4-sources.jar",
|
|
98
|
+
"url": "expo.modules.screencapture-56.0.4-sources.jar",
|
|
99
99
|
"size": 3683,
|
|
100
100
|
"sha512": "90f0ec7b62f1cccb53dea90b31d45bbd7b9260cd5ffce401b9972e4e646b13904d8a8141dc2f970bf1da67bc7e78fee70876f924acf386d9252f8414f29cdbd1",
|
|
101
101
|
"sha256": "523bb4157d2d87571c9392390ab3d5cfd3a7fc74b91c0145f93a16930c32a0f7",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3f9485cf98b889ed0340620bfbdb01f6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
76a0511a0cdfd730e596723116fc7111ceed7c28
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c975e621d1631d374f1460342120b16b51758feb01f4c0518cf9cf4874d856ca
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
292ee8832dac8c1a848375e3016bd54846a1767221d573c616b4b7635c655c0fd68992ef8fe21acb7bb089924819b123a7ab1e406ca1b4d742402b75f793229c
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.screencapture</artifactId>
|
|
12
|
-
<version>56.0.
|
|
12
|
+
<version>56.0.4</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.screencapture</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d669074a199c4a2bf0bb0aca8139c57a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7c33d9d8a15ab4c714ca06f935506aceae49b54b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
af2492c532f8ed50fbe6ec554dc3b72a1d9ef597ea3ba802ee21525c643ed0bf
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6edae718834dde0d2fb9c0787820a8a6b20725092bc13c579165746cfa66001eaf21cfecb277757f28a07e32909d60d73f9b8b65c696dffcf6e14ff799690e93
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.screencapture</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>56.0.
|
|
7
|
-
<release>56.0.
|
|
6
|
+
<latest>56.0.4</latest>
|
|
7
|
+
<release>56.0.4</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>56.0.
|
|
9
|
+
<version>56.0.4</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20260513103321</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
fa252c531bd8986130a6bc81385f1180
|
package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha1
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
90ab3603978df8dfc1c2ed270796f3f29630c545
|
package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c632f727a5058bf72ca05d85141ba17ca516ef72db8d169baa241dd04c8bd7b1
|
package/local-maven-repo/host/exp/exponent/expo.modules.screencapture/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7bb5e530caba865b486e32ae86bd2960f5d41d2bc26e96649c2ffc8281e46cdb7b9b2b57d324cac0c3e175a711760807d3cde6ace96654868a7e26776d09724c
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-screen-capture",
|
|
3
|
-
"version": "56.0.
|
|
3
|
+
"version": "56.0.4",
|
|
4
4
|
"description": "Protects screens in your app from being captured or recorded, and notifies if a screenshot is taken.",
|
|
5
5
|
"main": "build/ScreenCapture.js",
|
|
6
6
|
"types": "build/ScreenCapture.d.ts",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@testing-library/react-native": "^13.3.0",
|
|
29
29
|
"@types/react": "~19.2.0",
|
|
30
|
-
"expo": "56.0.0-preview.
|
|
31
|
-
"expo-module-scripts": "56.0.
|
|
30
|
+
"expo": "56.0.0-preview.10",
|
|
31
|
+
"expo-module-scripts": "56.0.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"expo": "*",
|
|
35
35
|
"react": "*"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "40f0a6f6711d93762e0506b37e6e077e4bd9a541",
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "expo-module build",
|
|
40
40
|
"clean": "expo-module clean",
|
package/src/ScreenCapture.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type PermissionResponse,
|
|
4
|
-
PermissionStatus,
|
|
5
|
-
createPermissionHook,
|
|
6
|
-
type EventSubscription,
|
|
7
|
-
} from 'expo-modules-core';
|
|
1
|
+
import { createPermissionHook, type PermissionResponse, PermissionStatus } from 'expo';
|
|
2
|
+
import { UnavailabilityError, type EventSubscription } from 'expo-modules-core';
|
|
8
3
|
import { useEffect } from 'react';
|
|
9
4
|
|
|
10
5
|
import ExpoScreenCapture from './ExpoScreenCapture';
|
|
@@ -224,9 +219,5 @@ const defaultPermissionsResponse: PermissionResponse = {
|
|
|
224
219
|
};
|
|
225
220
|
|
|
226
221
|
// TODO(@kitten): Remove re-exports from EMC
|
|
227
|
-
export {
|
|
228
|
-
|
|
229
|
-
type PermissionResponse,
|
|
230
|
-
PermissionStatus,
|
|
231
|
-
type PermissionHookOptions,
|
|
232
|
-
} from 'expo-modules-core';
|
|
222
|
+
export { type PermissionResponse, PermissionStatus, type PermissionHookOptions } from 'expo';
|
|
223
|
+
export { type EventSubscription as Subscription } from 'expo-modules-core';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a426961b62e7bec537c790ed1601cda0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
966e133ead497dcd8467a0afd4be80d208850b93
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5d320918ab2a266f56ef4215d47fe914a14d9db81c1c8c6efaa2f0ff63060799
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9faf07650cb45b2ea3a91fb982e4b034f1cda2e6764e04c2da84f29f68001b5b909b2e88ecbad54e4555a6b2000d1cf770c32a6f15ef5a8d3535d0a4070cd11e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3cc29aac4e7e68d3fae0570cd5025263
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2ede57b5c243275387fae5782d08bb5bdb0cbe5a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6e6e2a373a2cb8f0796756cbbbf7cdb9384a8df364c2d9df99cfa554f5155803
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f41318cf825f3a3bbb3e1d9bbef19e5d35c888ec6d8a43ea1bf13285042dde2285d6f4d74f3e6f330c15d7eb5cdd13783501f9a60d7709da65c855c2771a9c75
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|