is Movr Profile Registered
Checks if a Movr profile is already registered for the current user.
Call this during onboarding to decide whether to prompt the user to register (via registerMovrProfile) before allowing them to start Movr sessions.
Return
true if a Movr profile exists; false otherwise.
Throws
if the check fails.
Android (Kotlin)
lifecycleScope.launch {
try {
if (AFCore.movementHealth().isMovrProfileRegistered()) {
showMovrDashboard()
} else {
promptMovrRegistration()
}
} catch (t: Throwable) {
showError("Could not check Movr profile: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
if try await AFCore.shared.movementHealth().isMovrProfileRegistered() {
self.showMovrDashboard()
} else {
self.promptMovrRegistration()
}
} catch {
self.showError("Could not check Movr profile: \\(error.localizedDescription)")
}
}Content copied to clipboard