get NEOUStatus
Reads the member's NEOU 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 NEOU.
Throws
if retrieval fails.
Android (Kotlin)
lifecycleScope.launch {
try {
when (AFCore.virtualFitness().getNEOUStatus()) {
VirtualFitnessStatus.CONNECTED -> openNeouContent()
VirtualFitnessStatus.NOT_ENROLLED -> startNeouSignUp()
VirtualFitnessStatus.ACCOUNT_DISABLED -> showMessage("NEOU account disabled")
}
} catch (t: Throwable) {
showError("NEOU status check failed: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
switch try await AFCore.shared.virtualFitness().getNEOUStatus() {
case .connected: self.openNeouContent()
case .accountDisabled: self.showMessage("NEOU account disabled")
default: self.startNeouSignUp()
}
} catch {
self.showError("NEOU status check failed: \(error.localizedDescription)")
}
}Content copied to clipboard