disconnect NEOUProfile
Disconnects the member’s NEOU profile.
Use when the member wants to sign out from the partnership and stop syncing NEOU activities.
Return
true if disconnection succeeded; false otherwise.
Throws
if disconnection fails.
Android (Kotlin)
lifecycleScope.launch {
try {
val ok = AFCore.virtualFitness().disconnectNEOUProfile()
if (ok) showMessage("NEOU disconnected") else showError("Disconnect failed")
} catch (t: Throwable) {
showError("Disconnect failed: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
let ok = try await AFCore.shared.virtualFitness().disconnectNEOUProfile()
ok ? self.showMessage("NEOU disconnected")
: self.showError("Disconnect failed")
} catch {
self.showError("Disconnect failed: \(error.localizedDescription)")
}
}Content copied to clipboard