Event constructor
Event(
- String? calendarId, {
- String? eventId,
- String? title,
- TZDateTime? start,
- TZDateTime? end,
- String? description,
- List<
Attendee?> ? attendees, - RecurrenceRule? recurrenceRule,
- List<
Reminder> ? reminders, - Availability availability = Availability.Busy,
- String? location,
- Uri? url,
- bool? allDay = false,
- EventStatus? status,
Note for development:
JSON field names are coded in dart, swift and kotlin to facilitate data exchange.
Make sure all locations are updated if changes needed to be made.
Swift:
ios/Classes/SwiftDeviceCalendarPlugin.swift
Kotlin:
android/src/main/kotlin/com/builttoroam/devicecalendar/models/Event.kt
android/src/main/kotlin/com/builttoroam/devicecalendar/CalendarDelegate.kt
android/src/main/kotlin/com/builttoroam/devicecalendar/DeviceCalendarPlugin.kt
Implementation
Event(this.calendarId,
{this.eventId,
this.title,
this.start,
this.end,
this.description,
this.attendees,
this.recurrenceRule,
this.reminders,
this.availability = Availability.Busy,
this.location,
this.url,
this.allDay = false,
this.status});