Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

readme.md

is-camera-on

Check if the built-in Mac camera is on

The camera is commonly known as FaceTime HD or iSight.

This module can be useful to check if the camera is already in use or notify you if it's turned on when you didn't intend it to be.

Requirements

  • macOS 10.11+
  • Xcode 12+
  • Swift 5.3+

Install

Add the following to Package.swift:

.package(url: "https://github.com/sindresorhus/is-camera-on", from: "2.0.0")

Or add the package in Xcode.

Usage

import IsCameraOn

print(isCameraOn())
//=> true

Related

About

Check if the built-in Mac camera is on

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.