Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EyeGazeEventProvider

Hierarchy

  • EyeGazeEventProvider

Index

Constructors

constructor

Properties

Protected _binaryMessageParsingErrorListener

_binaryMessageParsingErrorListener: (event: EyeGazeEvent) => void

Type declaration

Protected _binaryMessageParsingErrorSubject

_binaryMessageParsingErrorSubject: ReplaySubject<EyeGazeEvent>

Protected _connectionStatusListener

_connectionStatusListener: (event: EyeGazeEvent) => void

Type declaration

Protected _connectionStatusSubject

_connectionStatusSubject: ReplaySubject<EyeGazeEvent>

Protected _eyeGazeDataListener

_eyeGazeDataListener: (event: EyeGazeEvent) => void

Type declaration

Protected _eyeGazeDataStream

_eyeGazeDataStream: EyeGazeDataStream

Protected _eyeGazeDataSubject

_eyeGazeDataSubject: ReplaySubject<EyeGazeEvent>

Protected _newServerMessageListener

_newServerMessageListener: (event: EyeGazeEvent) => void

Type declaration

Protected _newServerMessageSubject

_newServerMessageSubject: ReplaySubject<EyeGazeEvent>

Protected _preventDefaultMask

_preventDefaultMask: Type

This mask saves for which types of events, event.preventDefault should be called. This is useful to disallow some kinds of standard events like successful connected and handshake success.

Protected _timeframe

_timeframe: number | undefined

Time frame for events to be buffered (windowTime in rxjs per ReplaySubject).

Accessors

BinaryMessageParsingError$

  • get BinaryMessageParsingError$(): Observable<EyeGazeEvent>

ConnectionStatus$

EyeGazeData$

NewServerMessage$

Methods

allowDefault

  • allowDefault(...types: Type[]): void
  • Allow default event handling on specific event types (not calling preventDefault on the event).

    Parameters

    • Rest ...types: Type[]

      Event types to allow default handling on.

    Returns void

observable

preventDefault

  • preventDefault(...types: Type[]): void
  • Prevent default event handling on specific event types (using preventDefault on the event).

    Parameters

    • Rest ...types: Type[]

      Event types to prevent default handling on.

    Returns void

Protected preventDefaultOnEvent

  • Checks whether or not to prevent the default handling of the given event. This depends on the internal preventDefaultMask which can be modified using preventDefault function @seepreventDefault.

    Parameters

    • type: Type

      Internal event type of the incoming event.

    • event: EyeGazeEvent

      Actual event to prevent default handling on (if masked).

    Returns void