VayListener
public protocol VayListener
A protocol that represents a Listener behavior.
-
The VayReadyEvent is called when the VayAnalyser is ready.
Declaration
Swift
func onReady(_ event: VayReadyEvent)
Parameters
event
containing exercise information.
-
The VayPoseEvent is called when pose information is received.
Declaration
Swift
func onPose(_ event: VayPoseEvent)
Parameters
event
containing pose information.
-
The VayMetricValuesEvent is called when metric values are received.
Declaration
Swift
func onMetricValues(_ event: VayMetricValuesEvent)
Parameters
event
containing metric values.
-
The VayFeedbackEvent is called when a feedback is received.
Declaration
Swift
func onFeedback(_ event: VayFeedbackEvent)
Parameters
event
containing feedback information.
-
The VayRepetitionEvent is called when a repetition has been completed.
Declaration
Swift
func onRepetition(_ event: VayRepetitionEvent)
Parameters
event
containing repetition information.
-
The VayActivityEvent is called when an activity has been completed.
Declaration
Swift
func onActivity(_ event: VayActivityEvent)
Parameters
event
containing activity information.
-
The VayErrorEvent is called when an error occurs.
Declaration
Swift
func onError(_ event: VayErrorEvent)
Parameters
event
containing error text and type.
-
Called when the analyser is stopped.
Declaration
Swift
func onStop()
-
The VaySessionQualityChangedEvent is called when the session quality changes.
Declaration
Swift
func onSessionQualityChanged(_ event: VaySessionQualityChangedEvent)
Parameters
event
containing session quality information.
-
The VaySessionStateChangedEvent is called when the session state changes.
Declaration
Swift
func onSessionStateChanged(_ event: VaySessionStateChangedEvent)
Parameters
event
containing session state information.