var session = Rec.createSession({
:sport => Rec.SPORT_TRAINING,
:subSport => Rec.SUB_SPORT_STRENGTH_TRAINING,
:name => "weights"
});
The documentation around what sport/subsport combinations are supported is pretty poor.
var session = Rec.createSession({
:sport => Rec.SPORT_TRAINING,
:subSport => Rec.SUB_SPORT_STRENGTH_TRAINING,
:name => "weights"
});
var session = Rec.createSession({
:sport => Rec.SPORT_TENNIS,
:subSport => Rec.SUB_SPORT_MATCH,
:name => "tennis_match"
});
var session = Rec.createSession({
1 => Rec.SPORT_TENNIS,
2 => Rec.SUB_SPORT_MATCH,
3 => "tennis_match"
});