Skip to content

CLASS

SessionStatusViewController

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.

Properties

sessionManager

open var sessionManager: SessionManager?

mode

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.

status

public var status: Status = .normal

Methods

init(coder:)

required public init?(coder: NSCoder)

viewDidLoad()

open override func viewDidLoad()

viewWillTransition(to:with:)

open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator)

viewDidAppear(_:)

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:

Parameters

Name Description
animated