UNPKG

expo-calendar

Version:

Provides an API for interacting with the device's system calendars, events, reminders, and associated records.

36 lines 1.56 kB
import { type PermissionResponse } from 'expo'; import type { AddEventWithFormOptions } from './ExpoCalendar.types'; import type { DialogEventResult, EntityTypes, Source } from './legacy/Calendar'; declare class ExpoCalendar { constructor(id: string); addEventWithForm(options?: AddEventWithFormOptions): Promise<DialogEventResult>; } declare class ExpoCalendarEvent { constructor(); } declare class ExpoCalendarAttendee { constructor(); } declare class ExpoCalendarReminder { constructor(); } declare const _default: { ExpoCalendar: typeof ExpoCalendar; ExpoCalendarEvent: typeof ExpoCalendarEvent; ExpoCalendarAttendee: typeof ExpoCalendarAttendee; ExpoCalendarReminder: typeof ExpoCalendarReminder; getDefaultCalendar(): ExpoCalendar; getCalendars(type?: EntityTypes): Promise<ExpoCalendar[]>; listEvents(calendars: string[], startDate: string | Date, endDate: string | Date): Promise<ExpoCalendarEvent[]>; getCalendarById(calendarId: string): Promise<ExpoCalendar>; presentPicker(): Promise<ExpoCalendar | null>; getEventById(eventId: string): Promise<ExpoCalendarEvent>; getReminderById(reminderId: string): Promise<ExpoCalendarReminder>; requestCalendarPermissions(): Promise<PermissionResponse>; getCalendarPermissions(): Promise<PermissionResponse>; requestRemindersPermissions(): Promise<PermissionResponse>; getRemindersPermissions(): Promise<PermissionResponse>; getSourcesSync(): Source[]; }; export default _default; //# sourceMappingURL=ExpoCalendar.web.d.ts.map