stopVisitDetection

abstract suspend fun stopVisitDetection(): Boolean

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()
}

iOS (Swift)

Task {
_ = try? await AFCore.shared.locations().stopVisitDetection()
showMonitoringOff()
}

Return

true when visit detection stopped.