VirtualFitness

interface VirtualFitness

Virtual Fitness feature — connect with partner digital fitness platforms.

AFCore integrates with external virtual fitness providers like NEOU and Lifetime Digital. When registered, activities (e.g., completed workouts or watched videos) sync and count toward the member’s goals in Advanta.

⚠️ Important

  • Both NEOU and Lifetime Digital require the member to have the program entitlement enabled.

  • Members must create an account / sign in on the partner’s app or website using the Advanta partnership (e.g., promo code or partnership link).

  • Registration flow: send the member to the partner site/app → after returning via your redirect/callback, call the corresponding register*Profile() method to confirm the account is linked (authentication + registration confirmed).

  • Disconnect flow: disconnect*Profile() signs the member out of the partnership if they opt out.

Typical flows

  • Onboarding: check entitlement → drive partner sign-up → on redirect back, call register method.

  • Sync: activities are automatically imported from the partner platforms after linking.

  • Opt-out: call the appropriate disconnect method to unlink the partner account.

Platform & threading

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

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

Functions

Link copied to clipboard

Disconnects the member’s Lifetime Digital profile.

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

Disconnects the member’s NEOU profile.

Link copied to clipboard

Retrieves Lifetime Digital sign-up details, including the partnership URL and promo code.

Link copied to clipboard

Retrieves NEOU sign-up details, including the partnership URL.

Link copied to clipboard

Checks if the member is registered with Lifetime Digital.

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

Checks if the member is registered with NEOU.

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

Registers the member’s profile with Lifetime Digital after partner sign-up.

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

Registers the member’s profile with NEOU after partner sign-up.