getDatesToSync

abstract suspend fun getDatesToSync(): List<LocalDate>

Fetches the list of dates that require synchronization.

Return

A list of LocalDate to sync.

Throws

if retrieval fails.

Android (Kotlin)

lifecycleScope.launch {
try {
val dates = AFCore.smartWalking().getDatesToSync()
syncDatesAdapter.submitList(dates)
} catch (t: Throwable) {
showError("Failed to fetch dates: ${t.message}")
}
}

iOS (Swift)

Task {
do {
let dates = try await AFCore.shared.smartWalking().getDatesToSync()
self.updateSyncList(dates)
} catch {
self.showError("Failed to fetch dates: \\(error.localizedDescription)")
}
}