Package ai.vay.client.api
Interface Listener
-
public interface Listener
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onActivity(ActivityEvent event)
TheActivityEvent
is called when a activity has been completed.default void
onError(ErrorEvent event)
TheErrorEvent
is called when an error occurs.default void
onFeedback(FeedbackEvent event)
TheFeedbackEvent
is called when a feedback is received.default void
onMetricValues(MetricValuesEvent event)
TheMetricValuesEvent
is called when metric values are received.default void
onPose(PoseEvent event)
ThePoseEvent
is called when pose information is received.default void
onReady(ReadyEvent event)
TheReadyEvent
is called when the analyser is ready.default void
onRepetition(RepetitionEvent event)
TheRepetitionEvent
is called when a repetition has been completed.default void
onSessionQualityChanged(SessionQualityChangedEvent event)
TheSessionQualityChangedEvent
is called when the session quality changes.default void
onSessionStateChanged(SessionStateChangedEvent event)
TheSessionStateChangedEvent
is called when the session state changes.default void
onStop()
Called when the analyser is stopped.
-
-
-
Method Detail
-
onReady
default void onReady(ReadyEvent event)
TheReadyEvent
is called when the analyser is ready.- Parameters:
event
- containing exercise information.
-
onPose
default void onPose(PoseEvent event)
ThePoseEvent
is called when pose information is received.- Parameters:
event
- containing pose information.
-
onMetricValues
default void onMetricValues(MetricValuesEvent event)
TheMetricValuesEvent
is called when metric values are received.- Parameters:
event
- containing metric values.
-
onFeedback
default void onFeedback(FeedbackEvent event)
TheFeedbackEvent
is called when a feedback is received.- Parameters:
event
- containing feedback information.
-
onRepetition
default void onRepetition(RepetitionEvent event)
TheRepetitionEvent
is called when a repetition has been completed.- Parameters:
event
- containing repetition information.
-
onActivity
default void onActivity(ActivityEvent event)
TheActivityEvent
is called when a activity has been completed.- Parameters:
event
- containing activity information.
-
onError
default void onError(ErrorEvent event)
TheErrorEvent
is called when an error occurs.- Parameters:
event
- containing error text and type.
-
onStop
default void onStop()
Called when the analyser is stopped.
-
onSessionQualityChanged
default void onSessionQualityChanged(SessionQualityChangedEvent event)
TheSessionQualityChangedEvent
is called when the session quality changes.- Parameters:
event
- containing session quality information.
-
onSessionStateChanged
default void onSessionStateChanged(SessionStateChangedEvent event)
TheSessionStateChangedEvent
is called when the session state changes.- Parameters:
event
- containing session state information.
-
-