Start and stop following device orientation notification resumed.

This commit is contained in:
Natalia Terlecka 2015-12-11 11:37:45 +00:00
parent 334ce5b7a5
commit ddffdac96e
1 changed files with 10 additions and 1 deletions

View File

@ -58,7 +58,16 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate {
/// Property to determine if manager should write the resources to the phone library. Default value is true.
public var writeFilesToPhoneLibrary = true
public var shouldRespondToOrientationChanges = true
/// Property to determine if manager should follow device orientation. Default value is true.
public var shouldRespondToOrientationChanges = true {
didSet {
if shouldRespondToOrientationChanges {
_startFollowingDeviceOrientation()
} else {
_stopFollowingDeviceOrientation()
}
}
}
/// The Bool property to determine if current device has front camera.
public var hasFrontCamera: Bool = {