Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 858 Bytes

README.md

File metadata and controls

50 lines (33 loc) · 858 Bytes

NoCapture

Simple Screenrecordingdetector in Swift. Enjoy it.

Usage

It's really simple to use.

import NoCapture

class ViewController: UIViewController, NoCaptureDelegate {

let captureDetector = NoCapture.instance

override func viewDidLoad() {
super.viewDidLoad()
captureDetector.delegate = self
captureDetector.startDetection()
}

// DELGATE METHOD
func screenCaptureStatusChanged(isRecording: Bool) {
if isRecording {
self.view.backgroundColor = UIColor.red
} else {
self.view.backgroundColor = UIColor.white
}
}

}

Installation

NoCapture is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NoCapture'

Author

Marvin Knabe, info@appgewaltig.de

License

NoCapture is available under the MIT license. See the LICENSE file for more info.