_flashMode property removed.

This commit is contained in:
Natalia Terlecka 2015-11-18 09:17:19 +00:00
parent 783e47033d
commit ddd1d78d3e
1 changed files with 10 additions and 16 deletions

View File

@ -95,23 +95,12 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate {
_updateCameraDevice(cameraDevice)
}
}
/// Property to check video recording duration when in progress
public var recordedDuration : CMTime { return movieOutput?.recordedDuration ?? kCMTimeZero }
/// Property to check video recording file size when in progress
public var recordedFileSize : Int64 { return movieOutput?.recordedFileSize ?? 0 }
/// Property to change camera flash mode.
public var flashMode: CameraFlashMode {
get {
return _flashMode
}
set(newflashMode) {
if newflashMode != _flashMode {
_flashMode = newflashMode
_updateFlasMode(newflashMode)
public var flashMode = CameraFlashMode.Off {
didSet {
if flashMode != oldValue {
_updateFlasMode(flashMode)
}
}
}
@ -140,6 +129,12 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate {
}
}
}
/// Property to check video recording duration when in progress
public var recordedDuration : CMTime { return movieOutput?.recordedDuration ?? kCMTimeZero }
/// Property to check video recording file size when in progress
public var recordedFileSize : Int64 { return movieOutput?.recordedFileSize ?? 0 }
// MARK: - Private properties
@ -170,7 +165,6 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate {
private var cameraIsSetup = false
private var cameraIsObservingDeviceOrientation = false
private var _flashMode = CameraFlashMode.Off
private var _cameraOutputMode = CameraOutputMode.StillImage
private var _cameraOutputQuality = CameraOutputQuality.High