DeviceOrientationController

@objc(PESDKDeviceOrientationController) open class DeviceOrientationController: NSObject

Used to determine device orientation even if orientation lock is active.

  • Use this to get the current capture orientation.

    Declaration

    Swift

    fileprivate(set) open var captureVideoOrientation: AVCaptureVideoOrientation?
  • Starts to observe the accelerometer to update the capture video orientation. This needs to be done, to capture with the correct device orientation.

    Declaration

    Swift

    open func start()
  • Stops observing the acceleronmenter.

    Declaration

    Swift

    open func stop()