Class CalendarSyncEngine
java.lang.Object
com.codename1.calendar.CalendarSyncEngine
Opt-in local-first mutation queue. It deliberately does not own credentials
or silently schedule work; applications call
sync() or connect it to a
platform background-work callback.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintqueueEventDelete(String calendarId, String eventId, String version, CalendarMutationScope scope) queueEventSave(CalendarEvent event, CalendarMutationScope scope) queueTaskDelete(String calendarId, String taskId, String version, CalendarMutationScope scope) queueTaskSave(CalendarTask task, CalendarMutationScope scope) voidresolveConflict(String mutationId, CalendarConflict.Resolution resolution, Map<String, Object> merged) sync()
-
Constructor Details
-
CalendarSyncEngine
- Throws:
CalendarException
-
-
Method Details
-
queueEventSave
public String queueEventSave(CalendarEvent event, CalendarMutationScope scope) throws CalendarException - Throws:
CalendarException
-
queueEventDelete
public String queueEventDelete(String calendarId, String eventId, String version, CalendarMutationScope scope) throws CalendarException - Throws:
CalendarException
-
queueTaskSave
public String queueTaskSave(CalendarTask task, CalendarMutationScope scope) throws CalendarException - Throws:
CalendarException
-
queueTaskDelete
public String queueTaskDelete(String calendarId, String taskId, String version, CalendarMutationScope scope) throws CalendarException - Throws:
CalendarException
-
getPendingCount
public int getPendingCount() -
sync
-
resolveConflict
public void resolveConflict(String mutationId, CalendarConflict.Resolution resolution, Map<String, Object> merged) throws CalendarException- Throws:
CalendarException
-