DeviceUtil

public enum DeviceUtil

The namespace of DeviceUtil.

  • Lookup device by position.

    Declaration

    Swift

    public static func device(withPosition: AVCaptureDevice.Position) -> AVCaptureDevice?
  • Lookup device by localizedName and mediaType.

    Declaration

    Swift

    public static func device(withLocalizedName: String, mediaType: AVMediaType) -> AVCaptureDevice?
  • Looks up the AVCaptureVideoOrientation by a Notification.

    Declaration

    Swift

    public static func videoOrientation(by notification: Notification) -> AVCaptureVideoOrientation?
  • Looks up the AVCaptureVideoOrientation by an UIDeviceOrientation.

    Declaration

    Swift

    public static func videoOrientation(by orientation: UIDeviceOrientation) -> AVCaptureVideoOrientation?
  • Looks up the AVCaptureVideoOrientation by an UIInterfaceOrientation.

    Declaration

    Swift

    public static func videoOrientation(by orientation: UIInterfaceOrientation) -> AVCaptureVideoOrientation?