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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software