CameraUtils

Objective-C

@interface CameraUtils : NSObject

NS_ASSUME_NONNULL_BEGIN

+ (AVCaptureDevice *) deviceFromDeviceType:(AVCaptureDeviceType)deviceType mediaType:(nullable AVMediaType)mediaType position:(AVCaptureDevicePosition)position;
+ (NSArray<AVCaptureDeviceType>*) availableDeviceTypes;
+ (NSString*) deviceNameForType:(AVCaptureDeviceType) type;
+ (NSArray<AVCaptureDeviceFormat *> *)availableFormatsForDeviceType:(AVCaptureDeviceType) type;

NS_ASSUME_NONNULL_END

@end

Swift

class CameraUtils : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    + (AVCaptureDevice *) deviceFromDeviceType:(AVCaptureDeviceType)deviceType mediaType:(nullable AVMediaType)mediaType position:(AVCaptureDevicePosition)position;

    Swift

    class func device(fromDeviceType deviceType: AVCaptureDevice.DeviceType, mediaType: AVMediaType?, position: AVCaptureDevice.Position) -> AVCaptureDevice
  • Undocumented

    Declaration

    Objective-C

    + (NSArray<AVCaptureDeviceType>*) availableDeviceTypes;

    Swift

    class func availableDeviceTypes() -> [AVCaptureDevice.DeviceType]
  • Undocumented

    Declaration

    Objective-C

    + (NSString*) deviceNameForType:(AVCaptureDeviceType) type;

    Swift

    class func deviceName(forType type: AVCaptureDevice.DeviceType) -> String
  • Undocumented

    Declaration

    Objective-C

    + (NSArray<AVCaptureDeviceFormat *> *)availableFormatsForDeviceType:(AVCaptureDeviceType) type;

    Swift

    class func availableFormats(forDeviceType type: AVCaptureDevice.DeviceType) -> [AVCaptureDevice.Format]