IMGLYCameraController
open class IMGLYCameraController : NSObject
extension IMGLYCameraController: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAudioDataOutputSampleBufferDelegate
Undocumented
-
The response filter that is applied to the live-feed.
Declaration
Swift
open var effectFilter: IMGLYResponseFilter
-
Undocumented
Declaration
Swift
public let previewView: UIView
-
Undocumented
Declaration
Swift
open var previewContentMode: UIView.ContentMode
-
Undocumented
Declaration
Swift
open weak var delegate: IMGLYCameraControllerDelegate?
-
Undocumented
Declaration
Swift
public let tapGestureRecognizer: UITapGestureRecognizer
-
Undocumented
Declaration
Swift
open var squareMode: Bool
-
Undocumented
Declaration
Swift
open var maximumVideoLength: Int?
-
Undocumented
Declaration
Swift
open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?)
-
Undocumented
Declaration
Swift
open func checkDeviceAuthorizationStatus()
-
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()
-
Undocumented
Declaration
Swift
open func showSquareMask()
-
Undocumented
Declaration
Swift
open func hideSquareMask()
-
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 }
-
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 }
-
Undocumented
Declaration
Swift
open func disableFocusLockAnimated(_ animated: Bool)
-
Undocumented
Declaration
Swift
open func setup()
-
Initializes the camera and has to be called before calling
startCamera()
/stopCamera()
Declaration
Swift
open func setupWithInitialRecordingMode(_ recordingMode: IMGLYRecordingMode)
-
Undocumented
Declaration
Swift
open func switchToRecordingMode(_ recordingMode: IMGLYRecordingMode)
-
Undocumented
Declaration
Swift
open func switchToRecordingMode(_ recordingMode: IMGLYRecordingMode, animated: Bool)
-
Starts the camera preview.
Declaration
Swift
open func startCamera()
-
Stops the camera preview.
Declaration
Swift
open func stopCamera()
-
Check if the current device has a flash.
Declaration
Swift
open var flashAvailable: Bool { get }
-
Check if the current device has a torch.
Declaration
Swift
open var torchAvailable: Bool { get }
-
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.
-
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)