dylancom / react-native-is-screen-captured-ios

Detect if the system is recording, mirroring, or using AirPlay to stream the contents of the screen.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

import { useIsCaptured } from "react-native-is-screen-captured-ios";

const isCaptured = useIsCaptured()

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

Detect if the system is recording, mirroring, or using AirPlay to stream the contents of the screen.

License:MIT License


Languages

Language:Java 47.5%Language:Objective-C 26.4%Language:TypeScript 9.5%Language:JavaScript 8.5%Language:Ruby 7.1%Language:C 0.6%Language:Swift 0.4%