Skip to content

Commit dc550e1

Browse files
author
eddyverbruggen@gmail.com
committed
Version bump
1 parent 39867ba commit dc550e1

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ Basic operations, you'll want to copy-paste this for testing purposes:
124124

125125
```javascript
126126
// prep some variables
127-
var startDate = new Date(2014,10,15,18,30,0,0,0); // beware: month 0 = january, 11 = december
128-
var endDate = new Date(2014,10,15,19,30,0,0,0);
127+
var startDate = new Date(2015,2,15,18,30,0,0,0); // beware: month 0 = january, 11 = december
128+
var endDate = new Date(2015,2,15,19,30,0,0,0);
129129
var title = "My nice event";
130-
var location = "Home";
130+
var eventLocation = "Home";
131131
var notes = "Some notes about this event.";
132132
var success = function(message) { alert("Success: " + JSON.stringify(message)); };
133133
var error = function(message) { alert("Error: " + message); };
@@ -144,7 +144,7 @@ Basic operations, you'll want to copy-paste this for testing purposes:
144144
window.plugins.calendar.deleteCalendar(calendarName,success,error);
145145

146146
// create an event silently (on Android < 4 an interactive dialog is shown)
147-
window.plugins.calendar.createEvent(title,location,notes,startDate,endDate,success,error);
147+
window.plugins.calendar.createEvent(title,eventLocation,notes,startDate,endDate,success,error);
148148

149149
// create an event silently (on Android < 4 an interactive dialog is shown which doesn't use this options) with options:
150150
var calOptions = window.plugins.calendar.getCalendarOptions(); // grab the defaults
@@ -153,35 +153,36 @@ Basic operations, you'll want to copy-paste this for testing purposes:
153153

154154
// Added these options in version 4.2.4:
155155
calOptions.recurrence = "monthly"; // supported are: daily, weekly, monthly, yearly
156-
calOptions.recurrenceEndDate = new Date(2015,6,1,0,0,0,0,0); // leave null to add events into infinity and beyond
156+
calOptions.recurrenceEndDate = new Date(2015,10,1,0,0,0,0,0); // leave null to add events into infinity and beyond
157157
calOptions.calendarName = "MyCreatedCalendar"; // iOS only
158-
window.plugins.calendar.createEventWithOptions(title,location,notes,startDate,endDate,calOptions,success,error);
158+
window.plugins.calendar.createEventWithOptions(title,eventLocation,notes,startDate,endDate,calOptions,success,error);
159159

160160
// create an event interactively
161-
window.plugins.calendar.createEventInteractively(title,location,notes,startDate,endDate,success,error);
161+
window.plugins.calendar.createEventInteractively(title,eventLocation,notes,startDate,endDate,success,error);
162162

163163
// create an event in a named calendar (iOS only for now)
164-
window.plugins.calendar.createEventInNamedCalendar(title,location,notes,startDate,endDate,calendarName,success,error);
164+
window.plugins.calendar.createEventInNamedCalendar(title,eventLocation,notes,startDate,endDate,calendarName,success,error);
165165

166166
// find events (on iOS this includes a list of attendees (if any))
167-
window.plugins.calendar.findEvent(title,location,notes,startDate,endDate,success,error);
167+
window.plugins.calendar.findEvent(title,eventLocation,notes,startDate,endDate,success,error);
168168

169169
// list all events in a date range (only supported on Android for now)
170170
window.plugins.calendar.listEventsInRange(startDate,endDate,success,error);
171171

172172
// list all calendar names - returns this JS Object to the success callback: [{"id":"1", "name":"first"}, ..]
173173
window.plugins.calendar.listCalendars(success,error);
174174

175-
// find all events in a named calendar (iOS only for now, this includes a list of attendees (if any))
175+
// find all _future_ events in the first calendar with the specified name (iOS only for now, this includes a list of attendees (if any))
176176
window.plugins.calendar.findAllEventsInNamedCalendar(calendarName,success,error);
177177

178178
// change an event (iOS only for now)
179179
var newTitle = "New title!";
180-
window.plugins.calendar.modifyEvent(title,location,notes,startDate,endDate,newTitle,location,notes,startDate,endDate,success,error);
180+
window.plugins.calendar.modifyEvent(title,eventLocation,notes,startDate,endDate,newTitle,eventLocation,notes,startDate,endDate,success,error);
181181

182182
// delete an event (you can pass nulls for irrelevant parameters, note that on Android `notes` is ignored). The dates are mandatory and represent a date range to delete events in.
183183
// note that on iOS there is a bug where the timespan must not be larger than 4 years, see issue 102 for details.. call this method multiple times if need be
184-
window.plugins.calendar.deleteEvent(newTitle,location,notes,startDate,endDate,success,error);
184+
// since 4.3.0 you can match events starting with a prefix title, so if your event title is 'My app - cool event' then 'My app -' will match.
185+
window.plugins.calendar.deleteEvent(newTitle,eventLocation,notes,startDate,endDate,success,error);
185186

186187
// open the calendar app (added in 4.2.8):
187188
// - open it at 'today'

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns="http://apache.org/cordova/ns/plugins/1.0"
44
xmlns:android="http://schemas.android.com/apk/res/android"
55
id="nl.x-services.plugins.calendar"
6-
version="4.2.9">
6+
version="4.3.0">
77

88
<name>Calendar</name>
99

0 commit comments

Comments
 (0)