Builder

class Builder

Builder for recurrence.

Constructors

Link copied to clipboard
constructor(period: Recurrence.Period)

Create a builder initialized for a recurrence with a period.

constructor(recurrence: Recurrence)

Create a builder initialized with the values of another recurrence.

Properties

Link copied to clipboard

If period is MONTHLY, set the day in the month on which events happen.

Link copied to clipboard

Setting this value will changing end type to by count. Must be at least 1. If less than 1, the period will be set to Period.NONE.

Link copied to clipboard

Setting this value will changing end type to by date. If end date is DATE_NONE, recurrence end type will be set to never.

Link copied to clipboard

This field doesn't have to be set directly most of the time, since setting the end date or end count will set it automatically.

Link copied to clipboard

Frequency must be at least 1.

Link copied to clipboard

Functions

Link copied to clipboard

Build the recurrence object described by the builder. This validates and normalizes all field values.

Link copied to clipboard
Link copied to clipboard

If period is MONTHLY, set byDay setting so that the recurrence happens on a day of a week in the month. If both parameters are 0, the week number and day of the week will be the same as start date's.

Link copied to clipboard

If period is WEEKLY, set byDay field to a list of days of the week.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard