Documentation ¶
Overview ¶
Package imagesnap implements an image recorder with the imagesnap command for macOS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDevices ¶
ListDevices returns all image capturing devices available to imagesnap. ListDevices returns an error if no devices are available.
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder records images by starting imagesnap and configuring it to write images to temporary storage.
func NewRecorder ¶
func NewRecorder(opts RecorderOpts) (recorder *Recorder, rerr error)
NewRecorder creates a new recorder by starting imagesnap, making it write images to a temporary directory. These images are read and sent on the channel returned by Events.
Callers must call Close to clean up.
Click to show internal directories.
Click to hide internal directories.