MovementHealth

interface MovementHealth

Movement Health (Movr) feature — manage registration and session submissions for the Movr program.

This interface provides operations to:

  • Check if the current user has a Movr profile.

  • Register a new Movr profile if none exists.

  • Submit completed Movr sessions.

Platform & threading

  • All functions are suspend and must be called from a coroutine.

  • Errors surface as Throwable and should be handled at call sites.

Typical flows

Functions

Link copied to clipboard
abstract suspend fun isMovrProfileRegistered(): Boolean

Checks if a Movr profile is already registered for the current user.

Link copied to clipboard
abstract suspend fun registerMovrProfile(): Boolean

Registers a Movr profile for the current user.

Link copied to clipboard
abstract suspend fun submitMovrSessions(sessions: Int): AFResult

Submits the number of Movr sessions completed by the user.