smkit library

Classes

BodyCalibrationData
Body calibration status forwarded from SMBodyCalibrationDelegate.
BoundingBoxData
Normalized bounding box guide (all values 0–1 in video space).
DetectionSessionResultData
Session summary (mirrors native DetectionSessionResultData).
DetectionStartResult
Result returned by startDetection, containing ROM range and exercise type.
FormFeedbackType
Feedback type constants for excluding specific feedbacks (mirrors native FormFeedbackType).
MovementFeedbackData
Per-frame/rep detection feedback (mirrors native MovementFeedbackData / SMKitMovementData).
RepData
Per-rep detail data (mirrors native RepData).
SessionSettings
Session configuration for SMKit (mirrors native SMKitSessionSettings).
SMExerciseInfo
Result for a single exercise (mirrors native SMExerciseInfo — Dynamic or Static).
SmKit
Flutter API for Sency SMKit (no-UI): session/detection lifecycle and data streams.
SmKitCameraView
Platform view that displays the camera preview. Create this first, then call SmKit.startSession with this view's viewId.
SmKitSessionEvent
A single event from the session stream.
StaticData
Per-position-hold detail data (mirrors native StaticData).

Enums

BodyCalibrationStateType
Body calibration state (mirrors SMBodyCalibrationStatus from SMBase).
SMBaseExerciseType
Exercise type classification (mirrors native SMBaseExerciseType).
SmKitSessionEventType
Session event types sent from native.

Functions

mapPlatformError(String code, String? message) SmKitSessionError
Maps a native platform error code to a typed exception.

Exceptions / Errors

AuthKeyNotAcceptedException
Authentication key was not accepted by the SDK.
CameraAlreadyRunningException
The camera is already running.
DetectionAlreadyRunningException
A detection session is already running.
NoDetectionSessionRunningException
No detection session is currently running.
SmKitSessionError
Session or detection error from native (mirrors SMKitSessionError).
UnableToStartCameraException
Unable to start the camera.