is Auto Sync Enabled
Whether automatic background sync is currently enabled.
Reflects the in-memory state, which is kept in sync with the persisted smartWalkingAutoSyncEnabled preference. Updated by enableAutoSync, disableAutoSync, and unregisterUser.
Kotlin
if (AFCore.smartWalking().isAutoSyncEnabled) {
binding.autoSyncToggle.isChecked = true
}Content copied to clipboard
Swift
autoSyncSwitch.isOn = AFCore.shared.smartWalking().isAutoSyncEnabledContent copied to clipboard