find

fun find(r: Recurrence, startDate: Long, amount: Int, fromDate: Long = Recurrence.DATE_NONE, includeStart: Boolean = true): MutableList<Long>

Get an amount of event dates of a recurrence after a date. All events will have the same time of the day as the startDate. See findBasedOn for more information.

Parameters

r

The recurrence.

startDate

The start date of the recurring event, cannot be Recurrence.DATE_NONE.

amount

The maximum number of events to find, must be at least 0.

fromDate

The date from which to start finding recurrence events. Can be set to Recurrence.DATE_NONE to find events from the start date of the recurrence. The date is inclusive meaning an event on this date will be included.

includeStart

Whether the startDate or fromDate should be included in the list of events.