I used to program like 20 years ago. Trying to get back into it.
For this code:
private fun scheduleWork() {
val workRequest = PeriodicWorkRequestBuilder<CheckInService>(1, TimeUnit.DAYS).build()
getInstance(this).enqueue(workRequest)
}
I’m getting the following error: None of the following functions can be called with the arguments supplied:
public inline fun PeriodicWorkRequestBuilder(repeatInterval: Duration, flexTimeInterval: Duration): PeriodicWorkRequest.Builder defined in androidx.work
Please assume I know nothing, just trying to take it step-wise. I’m looking at similar support discussions, but it helps to see it applied to this specific case.