-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Set a time period along with the number of times to do an action #3
Comments
Hi, @ubarua123! |
@skydoves Is there update on this feature? I am also looking for the same feature. Thanks. |
by the way, I have managed to achieve this functionality using "mark" feature. If the solution can be available using existing "Only" like style (builder pattern) then it would look more readable and understandable. Below is the code:
Here is the extension function durationInDays() which you can put in any kotlin class/file:
|
Kotlin onDo(refreshDuration = TimeUnit, refreshRules = OnlyRefreshRules.CLEAR (or OnlyRefreshRules.NOTHING)) {
// do something..
} |
Any update on this feature? Thanks in advance! |
Is your feature request related to a problem?
So the thing is, say I want to show a feedback dialog to the user every 2 months and do this for a certain number of times.
Describe the solution you'd like:
Set a time period and number of times the dialog should appear.
Time period = value in duration
Count = number
You can even set exponential backoff for that. Like for example, first 3 counts, it asks every 3 months (the developer sets this time period parameter of course), then once the count is reached, it'll ask every 6 months and so on. Now with de-sugaring, you can incorporate java 8 time libraries for that.
The text was updated successfully, but these errors were encountered: