Mental Fitness
Mental Fitness feature — support exercises for building resilience and coping strategies.
This interface provides operations for the Spot It technique:
Fetching technique data (situations, symptoms, endorsements, successes).
Generating "spots" (coping mechanisms) based on user input.
Submitting feedback for a completed Spot It session.
Platform & threading
All functions are
suspendand must be called from a coroutine.Errors surface as
Throwableand should be handled at call sites.
Typical flows
Onboarding: call getSpotItTechniqueData to preload available situations, symptoms, etc.
Spot generation: call generateSpots with selected situation/symptom IDs.
Feedback: after a session, call submitSpotItFeedback to record user responses.
Functions
Generates a list of "spots" (coping mechanisms) for the Spot It technique.
Retrieves data required for the Spot It technique.