FitAtHome

interface FitAtHome

Fit@Home feature — manage selfie submissions for at-home workouts.

This interface provides operations to submit and delete Fit@Home selfies. Implementations connect to backend services; developers only need to call these methods to interact with the feature.

Capabilities

  • Submit: upload a selfie taken during an at-home session.

  • Delete: remove a previously submitted selfie by date.

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

  • During workout: call submitSelfie when the user takes a selfie.

  • Managing history: call deleteSelfie to remove a selfie for a given date.

Functions

Link copied to clipboard
abstract suspend fun deleteSelfie(date: String): AFResult

Deletes a Fit@Home selfie for a given date.

Link copied to clipboard
abstract suspend fun submitSelfie(media: ByteArray, timestampInSeconds: Long, lat: Double?, lng: Double?): AFResult

Submits a Fit@Home selfie for the current member.