@ebarooni/capacitor-calendar
    Preparing search index...

    Function createIcsFile

    • Builds an .ics File with one VEVENT for each event. Use it to export many events in one file, or to cancel events you exported before.

      Returns File

      If events is empty.

      const file = createIcsFile([
      { title: 'Kickoff', startDate: Date.now(), uid: 'kickoff-1' },
      { title: 'Review', startDate: Date.now() + 86400000, uid: 'review-1' },
      ], { fileName: 'project.ics' });
      // Ask calendar apps to remove an event that was imported before
      const file = createIcsFile({ title: 'Kickoff', uid: 'kickoff-1', sequence: 1 }, { method: 'CANCEL' });

      8.12.0