---
title: Calendar
description: Holds reminders and events.
---

Holds reminders and events.

Use the Calendar type to get a specific calendar. The calendar is used with the Reminder and CalendarEvent types when fetching reminders or events from a specific calendar or when inserting into a calendar. If you are fetching reminders or events from all calendars, you do not need to pass the calendars when performing the fetch with the Reminder or CalendarEvent types.

## Properties

### allowsContentModifications

Indicates whether items can be added, edited, and deleted in the calendar.

```typescript
allowsContentModifications: bool
```

Read-only.

### color

Color of calendar.

```typescript
color: Color
```

### identifier

Calendar identifier.

```typescript
identifier: string
```

Read-only.

### isSubscribed

Whether the calendar is a subscribed calendar.

```typescript
isSubscribed: bool
```

Read-only.

### title

Title of calendar.

```typescript
title: string
```

## Methods

<span id="createforreminders" class="api-anchor"></span>

### createForReminders(title)

Create a new calendar that holds reminders.

```typescript
static createForReminders(title: string): Promise<Calendar>
```

This will create a new list for reminders in the Reminders app. The list is automatically saved so there is no need to call `save()` after creating the list.

#### Parameters

**`title` `string`**



#### Return value

**`Promise<Calendar>`**

Promise that provides the created calendar when fulfilled.

### defaultForEvents()

Default calendar for events.

```typescript
static defaultForEvents(): Promise<Calendar>
```

A calendar can only hold either reminders or events. Call this function to get the default calendar that can hold events.

#### Return value

**`Promise<Calendar>`**

Promise that provides the calendar when fulfilled.

### defaultForReminders()

Default calendar for reminders.

```typescript
static defaultForReminders(): Promise<Calendar>
```

A calendar can only hold either reminders or events. Call this function to get the default calendar that can hold reminders.

#### Return value

**`Promise<Calendar>`**

Promise that provides the calendar when fulfilled.

<span id="findorcreateforreminders" class="api-anchor"></span>

### findOrCreateForReminders(title)

Find or create a new calendar that holds reminders.

```typescript
static findOrCreateForReminders(title: string): Promise<Calendar>
```

This will attempt to find a calendar for reminders with the specified name. If no calendar is found, a new calendar is created and the calendar will appear as a reminder list in the Reminders app. If multiple calendars are found for the specified name, the first one will be returned.  The list is automatically saved so there is no need to call `save()` in the case the list was created.

#### Parameters

**`title` `string`**



#### Return value

**`Promise<Calendar>`**

Promise that provides the calendar when fulfilled.

### forEvents()

Fetches calendars for events.

```typescript
static forEvents(): Promise<[Calendar]>
```

A calendar can only hold either reminders or events. Call this function to fetch all calendars that can hold events.

#### Return value

**`Promise<[Calendar]>`**

Promise that provides the calendars when fulfilled.

<span id="foreventsbytitle" class="api-anchor"></span>

### forEventsByTitle(title)

Fetches a calendar that holds events.

```typescript
static forEventsByTitle(title: string): Promise<Calendar>
```

#### Parameters

**`title` `string`**

Title of calendar.

#### Return value

**`Promise<Calendar>`**

Promise that provides the calendar when fulfilled.

### forReminders()

Fetches calendars for reminders.

```typescript
static forReminders(): Promise<[Calendar]>
```

A calendar can only hold either reminders or events. Call this function to fetch all calendars that can hold reminders.

#### Return value

**`Promise<[Calendar]>`**

Promise that provides the calendars when fulfilled.

<span id="forremindersbytitle" class="api-anchor"></span>

### forRemindersByTitle(title)

Fetches a calendar that holds reminders.

```typescript
static forRemindersByTitle(title: string): Promise<Calendar>
```

#### Parameters

**`title` `string`**

Title of calendar.

#### Return value

**`Promise<Calendar>`**

Promise that provides the calendar when fulfilled.

<span id="presentpicker" class="api-anchor"></span>

### presentPicker(allowMultiple)

Presents a view for picking calendars.

```typescript
static presentPicker(allowMultiple: bool): Promise<[Calendar]>
```

#### Parameters

**`allowMultiple` `bool`**

Whether to allow picking multiple calenders. Defaults to false.

#### Return value

**`Promise<[Calendar]>`**

Promise that provides the calendars when fulfilled.

<span id="-remove" class="api-anchor"></span>

### remove()

Removes calendar.

```typescript
remove()
```

The calendar is removed immediately. This cannot be undone.

<span id="-save" class="api-anchor"></span>

### save()

Saves calendar.

```typescript
save()
```

Saves changes to the calendar.

<span id="-supportsavailability" class="api-anchor"></span>

### supportsAvailability(availability)

Checks if the calendar supports availability.

```typescript
supportsAvailability(availability: string): bool
```

The following values are supported:

- busy
- free
- tentative
- unavailable

Not all calendars support all of these availabilities and some calendars may not support availability at all. Use this function to check if the calendar supports a specific availability.

#### Parameters

**`availability` `string`**

Availability to check against.

#### Return value

**`bool`**

True if the calendar supports the availability, otherwise false.