isAutoSyncEnabled

Whether automatic background sync is currently wired up in this process.

Process-local: starts false on every cold launch and flips to true only after enableAutoSync (or AFCore's auto-restore) has registered the HealthKit observer / scheduled the Android periodic worker for this process. The durable user preference is persisted separately — AFCore.initialize re-invokes enableAutoSync on launch if the user had previously enabled it, so this typically becomes true shortly after init resolves. Updated by enableAutoSync, disableAutoSync, and unregisterUser.

Kotlin

if (AFCore.smartWalking().isAutoSyncEnabled) {
binding.autoSyncToggle.isChecked = true
}

Swift

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