open class SessionStatusViewController: UIViewController
Root class for all eye tracking interfaces. Has four different tracking states: * normal: Everything should be working fine. * outSideOfTrackBox: The face is detected, but outside of the trackbox or has extreme orientation. * noFaceDetected: No face is detected for a short duration (
<4 seconds) * noFaceDetectedForDuration: No face has been detected for more than four seconds. Furthermore, this class grants access to the delegate methods of CaptureSessionMetaDataDelegate, which provides eye data to the listener.
open var sessionManager: SessionManager?
open var mode: BackgroundMode = .dark
The general color of the view. If the mode is set to dark, the UI Elements will maximize contrast by selecting light colors and vice versa.
public var status: Status = .normal
required public init?(coder: NSCoder)
open override func viewDidLoad()
open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator)
open override func viewDidAppear(_ animated: Bool)
If the view has been hidden, it is probable that the captureSession delegate has been overwritten somewhere. This function makes sure that whenever the view is shown, a correct delegate is set.
- Parameter animated: