Initializer

init(device:)

Initializes an input to use a specified device.

Declaration

init(device: AVCaptureDevice) throws

Parameters

device

The device from which to capture input.

outError

If an error occurs during initialization, upon return contains an NSError object describing the problem.

Return Value

An input initialized to use device.

Discussion