#
hs.camera
Inspect the system's camera devices
#
API Overview
Functions - API calls offered directly by the extension
allCameras isWatcherRunning setWatcherCallback startWatcher stopWatcher
Methods - API calls which can only be made on an object returned by a constructor
connectionID isInUse isPropertyWatcherRunning name setPropertyWatcherCallback startPropertyWatcher stopPropertyWatcher uid
#
API Documentation
#
Functions
#
allCameras
#
isWatcherRunning
#
setWatcherCallback
#
startWatcher
#
stopWatcher
#
Methods
#
connectionID
#
isInUse
#
isPropertyWatcherRunning
#
name
#
setPropertyWatcherCallback
| | |
| --------------------------------------------|-------------------------------------------------------------------------------------|
| Signature | hs.camera:setPropertyWatcherCallback(fn) -> hs.camera object
|
| Type | Method |
| Description | Sets or clears a callback for when the properties of an hs.camera object change |
| Parameters |
- fn - A function to be called when properties of the camera change, or nil to clear a previously set callback. The function should accept the following parameters: The hs.camera object that changed A string describing the property that changed. Possible values are: gone - The device's "in use" status changed (ie another app started using the camera, or stopped using it) A string containing the scope of the event, this will likely always be "glob" A number containing the element of the event, this will likely always be "0"
- The
hs.camera
object