Type Method

deviceInputWithDevice:error:

Returns an input initialized to use a specified device.

Declaration

+ (instancetype)deviceInputWithDevice:(AVCaptureDevice *)device error:(NSError * _Nullable *)outError;

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

See Also

Creating an Input

- initWithDevice:error:

Initializes an input to use a specified device.