getLifetimeDigitalStatus

Reads the member's Lifetime Digital enrolment state.

All three states are distinct screens, so branch on the value rather than reducing it to "linked / not linked": VirtualFitnessStatus.ACCOUNT_DISABLED is an existing account the partner switched off, which needs its own message instead of being sent back through sign-up.

Return

The member's VirtualFitnessStatus for Lifetime Digital.

Throws

if retrieval fails.

Android (Kotlin)

lifecycleScope.launch {
try {
when (AFCore.virtualFitness().getLifetimeDigitalStatus()) {
VirtualFitnessStatus.CONNECTED -> openLifetimeContent()
VirtualFitnessStatus.NOT_ENROLLED -> startLifetimeSignUp()
VirtualFitnessStatus.ACCOUNT_DISABLED -> showMessage("Lifetime Digital account disabled")
}
} catch (t: Throwable) {
showError("Lifetime status check failed: ${t.message}")
}
}

iOS (Swift)

Task {
do {
switch try await AFCore.shared.virtualFitness().getLifetimeDigitalStatus() {
case .connected: self.openLifetimeContent()
case .accountDisabled: self.showMessage("Lifetime Digital account disabled")
default: self.startLifetimeSignUp()
}
} catch {
self.showError("Lifetime status check failed: \(error.localizedDescription)")
}
}