PersistentDeviceCalendar class
Methods
-
addInternal(Map<ForeignEventId, Event> data, DeviceCalendarEventStore store)
→ Future<void>
-
-
createOrUpdateEvent(Event event, ForeignEventId id)
→ Future<MapEntry<ForeignEventId, NativeEventId>>
-
-
deleteInternal(Map<ForeignEventId, Event> data, DeviceCalendarEventStore store)
→ Future<void>
-
-
getCalendar<T>({required String name, required PCEventBuilder<T> builder, required PCIdSelector<T> idSelector, DeviceCalendarEventStore? store})
→ Future<PersistentCalendarInstance<T>>
-
Instantiates a PersistentCalendarInstance for the specified generic type
T
.
This will automatically create or get the device calendar identified by name
.
-
getOrCreateCalendar(String name)
→ Future<Calendar>
-
-
hasPermissions()
→ Future<bool>
-
Checks if device calendar READ & WRITE permissions are granted.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pluginCreateCalendar(String? calendarName, {Color? calendarColor, String? localAccountName})
→ Future<String?>
-
Wrapper for the createCalendar method
-
pluginDeleteEvent(String? calendarId, String? eventId)
→ Future<bool>
-
Wrapper for the deleteEvent method
-
pluginRetrieveCalendars()
→ Future<List<Calendar>?>
-
Wrapper for the retrieveCalendars method
-
pluginRetrieveEvents(String? calendarId, RetrieveEventsParams? args)
→ Future<List<Event>?>
-
Wrapper for the retrieveEvents method
-
requestPermissions()
→ Future<bool>
-
Requests device calendar READ & WRITE permissions.
Returns the status of the permission grant.
-
setup()
→ Future<bool>
-
Setup READ & WRITE permissions for the device_calendar and return
whether or not the setup has been successful.
-
toString()
→ String
-
A string representation of this object.
inherited