get Dates To Sync
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}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
let dates = try await AFCore.shared.smartWalking().getDatesToSync()
self.updateSyncList(dates)
} catch {
self.showError("Failed to fetch dates: \\(error.localizedDescription)")
}
}Content copied to clipboard