What statement is correct?


If you are working with a Builder that creates a PeriodicWorkRequest to run periodically once within the flex period of every interval period.

What statement is correct?
A . The repeat interval must be greater than
PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS and the flex interval must be greater than PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLI
C . The repeat interval must be lower than or equal to
PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS and the flex interval must be lower than or equal to PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLI
E . The repeat interval must be greater than or equal to
PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS and the flex interval can be anything in relation to PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLI
G . The repeat interval must be greater than or equal to
PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS and the flex interval must be
greater than or equal to PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLI

Answer: D

Explanation:

Videos:

Working with WorkManager, from the 2018 Android Dev Summit

WorkManager: Beyond the basics, from the 2019 Android Dev Summit

Reference: https://developer.android.com/reference/androidx/work/WorkManager?hl=en

Leave a Reply

Your email address will not be published.