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

Static catalog metadata for the Movement Health (MOVR) partner — display name, tagline, marketing URL, and whether the host app still needs to embed the third-party MOVR SDK before sessions can be submitted. Synchronous (no network call) so consumers can build the entry tile without waiting on a backend round-trip.

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.