VirtualFitnessSignUpDetails

class VirtualFitnessSignUpDetails(var signUpUrl: String? = null, var redirectUrl: String? = null, var promoCode: String? = null, var partner: VirtualFitnessPartner? = null, var displayName: String? = null, var websiteUrl: String? = null, var appStoreUrl: String? = null, var playStoreUrl: String? = null, var androidPackageNames: List<String>? = null, var iosUrlSchemes: List<String>? = null)

VirtualFitnessSignUpDetails — sign-up metadata for virtual fitness partners.

Returned by the Virtual Fitness APIs when the member needs to register with a partner service (e.g., NEOU, Lifetime Digital).

Properties

  • signUpUrl URL of the partner sign-up page.

  • redirectUrl URL to return to after successful sign-up.

  • promoCode Promo code applied during registration (e.g., Advanta partner code).

  • partner Optional identifier of the partner (VirtualFitnessPartner), used by consumers to look up app-store / package / scheme metadata without hard-coding it. Backend may omit this; consumers can fall back to VirtualFitnessPartner.fromSignUpUrl(...) heuristics.

  • displayName Human-friendly partner name (e.g., "NEOU").

  • websiteUrl Public marketing website (e.g., neoufitness.com). Distinct from signUpUrl which is the gated sign-up landing.

  • appStoreUrl Apple App Store listing URL.

  • playStoreUrl Google Play Store listing URL.

  • androidPackageNames Android Play Store package id candidates. Listed best → fallback so consumers can detect-and-launch the app across renames. The first entry is the current live id.

  • iosUrlSchemes iOS deep-link schemes the partner app registers. Consumers probe these with UIApplication.open(_:) to detect an installed app before falling back to the App Store.

Notes

  • The original three fields (signUpUrl, redirectUrl, promoCode) are populated by the backend on getNEOUSignUpDetails / getLifetimeSignUpDetails. The newer identity fields (partner, displayName, websiteUrl, store + scheme metadata) are populated either by the backend (if available) or by the SDK from VirtualFitnessPartner's static catalog when partner is known.

  • For an unknown partner the new fields default to null — consumers should defensively check before launching.

Android (Kotlin) — launching sign-up

lifecycleScope.launch {
val details = AFCore.virtualFitness().getNEOUSignUpDetails()
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(details.signUpUrl)))
}

iOS (Swift) — launching sign-up

Task {
let details = try await AFCore.shared.virtualFitness().getNEOUSignUpDetails()
if let url = URL(string: details.signUpUrl ?? "") {
UIApplication.shared.open(url)
}
}

Constructors

Link copied to clipboard
constructor(signUpUrl: String? = null, redirectUrl: String? = null, promoCode: String? = null, partner: VirtualFitnessPartner? = null, displayName: String? = null, websiteUrl: String? = null, appStoreUrl: String? = null, playStoreUrl: String? = null, androidPackageNames: List<String>? = null, iosUrlSchemes: List<String>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String