disconnectLifetimeDigitalProfile

Disconnects the member’s Lifetime Digital profile.

Use when the member wants to sign out from the partnership and stop syncing Lifetime activities.

Return

true if disconnection succeeded; false otherwise.

Throws

if disconnection fails.

Android (Kotlin)

lifecycleScope.launch {
try {
val ok = AFCore.virtualFitness().disconnectLifetimeDigitalProfile()
if (ok) showMessage("Lifetime Digital disconnected")
else showError("Disconnect failed")
} catch (t: Throwable) {
showError("Disconnect failed: ${t.message}")
}
}

iOS (Swift)

Task {
do {
let ok = try await AFCore.shared.virtualFitness().disconnectLifetimeDigitalProfile()
ok ? self.showMessage("Lifetime Digital disconnected")
: self.showError("Disconnect failed")
} catch {
self.showError("Disconnect failed: \(error.localizedDescription)")
}
}