IMGLYCameraController

open class IMGLYCameraController : NSObject
extension IMGLYCameraController: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAudioDataOutputSampleBufferDelegate

Undocumented

Properties

NSKeyValueObserving

  • Undocumented

    Declaration

    Swift

    open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?)

Authorization

Camera

  • Use this property to determine if more than one camera is available. Within the SDK this property is used to determine if the toggle button is visible.

    Declaration

    Swift

    open var moreThanOneCameraPresent: Bool { get }
  • Undocumented

    Declaration

    Swift

    open func toggleCameraPosition()

Square view

Flash

  • Selects the next flash-mode. The order is Auto->On->Off. If the current device does not support auto-flash, this method just toggles between on and off.

    Declaration

    Swift

    open func selectNextFlashMode()
  • Undocumented

    Declaration

    Swift

    open fileprivate(set) var flashMode: AVCaptureDevice.FlashMode { get set }

Torch

  • Selects the next torch-mode. The order is Auto->On->Off. If the current device does not support auto-torch, this method just toggles between on and off.

    Declaration

    Swift

    open func selectNextTorchMode()
  • Undocumented

    Declaration

    Swift

    open fileprivate(set) var torchMode: AVCaptureDevice.TorchMode { get set }

Focus

Capture Session

Still Image Capture

  • Undocumented

    Declaration

    Swift

    open func squareTakenImage(_ image: UIImage) -> UIImage
  • Takes a photo and hands it over to the completion block.

    Declaration

    Swift

    open func takePhoto(_ completion: @escaping IMGLYTakePhotoBlock)

    Parameters

    completion

    A completion block that has an image and an error as parameters. If the image was taken sucessfully the error is nil.

Video Capture

  • Starts recording a video.

    Declaration

    Swift

    open func startVideoRecording()
  • Stop recording a video.

    Declaration

    Swift

    open func stopVideoRecording()
  • Undocumented

    Declaration

    Swift

    public func captureOutput(_ captureOutput: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection)