Virtual Fitness Sign Up Details
class VirtualFitnessSignUpDetails(var signUpUrl: String? = null, var redirectUrl: String? = null, var promoCode: 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).
Notes
This data is typically used to launch a webview or external browser for sign-up.
After redirect, call the appropriate
register*Profile()method in com.advantahealth.api.virtualfitness.VirtualFitness.
Android (Kotlin) — launching sign-up
lifecycleScope.launch {
val details = AFCore.virtualFitness().getNeouSignUpDetails()
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(details.signUpUrl)))
}Content copied to clipboard
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)
}
}Content copied to clipboard