https://github.com/dylancom/react-native-is-screen-captured-ios
Detect if the system is recording, mirroring, or using AirPlay to stream the contents of the screen.
https://github.com/dylancom/react-native-is-screen-captured-ios
airplay mirroring react-native recording replaykit
Last synced: 3 months ago
JSON representation
Detect if the system is recording, mirroring, or using AirPlay to stream the contents of the screen.
- Host: GitHub
- URL: https://github.com/dylancom/react-native-is-screen-captured-ios
- Owner: dylancom
- License: mit
- Created: 2021-04-07T11:00:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-10T09:28:42.000Z (about 5 years ago)
- Last Synced: 2025-04-24T01:41:41.667Z (about 1 year ago)
- Topics: airplay, mirroring, react-native, recording, replaykit
- Language: Java
- Homepage:
- Size: 389 KB
- Stars: 22
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-is-screen-captured-ios
Detect if the system is recording, mirroring, or using AirPlay to stream the contents of the screen.
https://developer.apple.com/documentation/uikit/uiscreen/2921651-iscaptured
## Installation
```sh
npm install react-native-is-screen-captured-ios --save
```
**React Native 0.60 and above**
Run `npx pod-install`. Linking is not required in React Native 0.60 and above.
**React Native 0.59 and below**
Run `react-native link react-native-is-screen-captured-ios` to link the react-native-is-screen-captured-ios library.
## Usage
```js
import { useIsCaptured } from "react-native-is-screen-captured-ios";
const isCaptured = useIsCaptured()
```
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT