stop Visit Detection
Stops visit detection and removes every registered geofence. Location sharing is unaffected.
Use it when the member turns automatic gym check-in off - it replaces facilities().stopMonitoring(). Logging out stops visit detection on its own.
Android (Kotlin)
lifecycleScope.launch {
AFCore.locations().stopVisitDetection()
showMonitoringOff()
}Content copied to clipboard
iOS (Swift)
Task {
_ = try? await AFCore.shared.locations().stopVisitDetection()
showMonitoringOff()
}Content copied to clipboard
Return
true when visit detection stopped.