IsCameraOn

2.0.2

Check if the built-in Mac camera is on
sindresorhus/is-camera-on

What's New

2022-01-10T05:40:26Z
  • Upgrade to Swift 5.5

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 13+
  • Swift 5.5+

Install

Add the following to Package.swift:

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

Or add the package in Xcode.

Usage

import IsCameraOn

print(isCameraOn())
//=> true

Related

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Apr 11 2024 08:45:45 GMT-0900 (Hawaii-Aleutian Daylight Time)