SencyMotion
  • 20 Aug 2023
  • 1 Minute to read
  • Dark
    Light

SencyMotion

  • Dark
    Light

Article Summary

A high-level overview of SencyMotion Library


1. Modules

NameTypeDescription
SencyMotionSingletonA shared instance that controls access levels and authentications
WorkoutSummaryDatastructProperties - 
  • workoutConfig:WorkoutConfig // workout configuration parameters
  • exercises:[ExerciseData] // a list of exercise data
  • score:Int // workout score [50 - 100] (an aggregation of all exercise scores)
  • completionRatio:Double // workout completion ratio [0 - 1] sum all exercises with score > 0.5 divided by exercise count
  • startTime:String // workout start time (date format UTC)
  • endTime:String // workout end time (date format UTC)
  • totalTime:Double // total workout time (in seconds)
ExerciseDatastructProperties -
  • name:String // exercise name (internal convention)
  • prettyName: String // exercise name (external convention)
  • targetTime:Double // max time to perform exercise
  • score:Double // exercise score [0 - 1] number of good reps divided by target reps (dynamic case) *or* timeInActiveZone divided by targetTime (static case)
  • numberOfPerformedReps:Int // number of actual reps made (exists only in dynamic type)
  • targetReps:Int // max expected reps to perform (exists only in dynamic type)
  • repsTechniqueScore:Double // performed technique score [0 - 1] the number of 'good' reps divided by the number of performed reps (exists only in dynamic type)
  • timeInActiveZone:Double // actual time (in seconds) performing the correct position (exists only in static type)
  • positionTechniqueScore:Double // static position performed technique score [0 - 1] (exists only in static type)
  • startTime:String // exercise start time (date format UTC)
  • endTime:String // exercise end time (date format UTC)
  • totalTime:Double // actual exercise time in seconds

2. Enumerations

ActivityUnit

CaseTypePreferred viewpointVideo
BurpeesDynamicFront
CrunchesDynamic
Side
GlutesBridgeDynamic
Side

HighKneesDynamic
Front

JumpingJacks
Dynamic
Front

LungeFront
Dynamic
Side

LungeSide(Right/Left)
Dynamic
Front
PlankHighKneeToElbow
Dynamic
Front

PlankHighShoulderTaps
Dynamic
Front

PushupRegular
Dynamic
Front

Jumps
Dynamic
Front

ReverseSitToTableTop
Dynamic
Side

ShouldersPress
Dynamic
Front

SideStepJacks
Dynamic
Front

SkaterHops
Dynamic
Front

SkiJumps
Dynamic
Front

SquatRegular
Dynamic
Front

StandingObliqueCrunches
Dynamic
Front

StandingStepReverseAirFly
Dynamic
Front

LungeRegularStatic
Static holdSide

PlankHighStatic
Static hold
Front

PlankSideLowStatic
Static hold
Side

SquatRegularOverheadStatic
Static hold
Front

SquatRegularStatic
Static hold
Front

SquatSumoStatic
Static hold
Front

StandingSideBend(Right/Left)
Static hold
Front

JeffersonCurl
Static hold
Side

LungeSideStatic(Right/Left)
Static hold
Front

Cooldown
MiscNone
RestMisc
None

CustomMisc
None


Was this article helpful?

What's Next