format

fun format(context: Context, r: Recurrence, startDate: Long = Recurrence.DATE_NONE): String

Format a recurrence to its localized string represention.

Parameters

context

Context needed to access string resources, can be any context.

r

The recurrence to format

startDate

The start date of the event that uses the recurrence. This is optional and can be set to Recurrence.DATE_NONE to be unspecified. Specifying the start date will allow to avoid repeating information that will be shared by every event of the recurrence.