Class

AVCaptureDeviceDiscoverySession

A query for finding and monitoring available capture devices.

Declaration

@interface AVCaptureDeviceDiscoverySession : NSObject

Overview

Use this class to find all available capture devices matching a specific device type (such as microphone or wide-angle camera), supported media types for capture (such as audio, video, or both), and position (front- or back-facing).

After creating a device discovery session, you can inspect its devices array to choose a device for capture.

Topics

Creating a Session

+ discoverySessionWithDeviceTypes:mediaType:position:

Creates a discovery session for finding devices with the specified criteria.

AVCaptureDeviceType

Values identifying the capture device’s type.

Discovering Devices

devices

An array of currently available devices matching the session’s criteria.

supportedMultiCamDeviceSets

An array of sets of capture devices that you can use simultaneously in a multi-camera session.

Relationships

Inherits From

See Also

Discovering Devices

+ deviceWithUniqueID:

Returns the device with a given ID.

+ defaultDeviceWithMediaType:

Returns the default device used to capture data of a given media type.

+ defaultDeviceWithDeviceType:mediaType:position:

Returns the default device for the specified device type, media type, and position.

AVCaptureDevicePosition

Constants to specify the position of a capture device.

AVCaptureDeviceType

Values identifying the capture device’s type.

AVCaptureDeviceWasConnectedNotification

Posted when a new device becomes available.

AVCaptureDeviceWasDisconnectedNotification

Posted when an existing device becomes unavailable.

+ devices

Returns an array of the available capture devices on the system.

Deprecated
+ devicesWithMediaType:

Returns an array of the devices able to capture data of a given media type.

Deprecated