isAutoSyncEnabled

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
}

Swift

autoSyncSwitch.isOn = AFCore.shared.smartWalking().isAutoSyncEnabled