Minor tweaks
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.
macOS 10.13+
Add the following to Package.swift:
Package.swift
.package(url: "https://github.com/sindresorhus/is-camera-on", from: "2.0.2")
Or add the package in Xcode.
import IsCameraOn print(isCameraOn()) //=> true
Do Not Disturb
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
is-camera-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.13+
Install
Add the following to
Package.swift:Or add the package in Xcode.
Usage
Related
Do Not Disturbfeature