Skip to content

Commit 0991c6b

Browse files
Merge remote-tracking branch 'origin/master'
2 parents a3a60c4 + 9fcc53d commit 0991c6b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

calendar.android.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Calendar._fields = {
1616
LOCATION: "eventLocation",
1717
STARTDATE: "dtstart",
1818
ENDDATE: "dtend",
19+
BEGIN: "begin",
20+
END: "end",
1921
ALLDAY: "allDay",
2022
TIMEZONE: "eventTimezone",
2123
HAS_ALARM: "hasAlarm",
@@ -156,7 +158,10 @@ Calendar._findEvents = function(arg) {
156158
Calendar._fields.LOCATION,
157159
Calendar._fields.STARTDATE,
158160
Calendar._fields.ENDDATE,
159-
Calendar._fields.ALLDAY
161+
Calendar._fields.ALLDAY,
162+
Calendar._fields.RRULE,
163+
Calendar._fields.BEGIN,
164+
Calendar._fields.END
160165
];
161166

162167
var sortOrder = android.provider.CalendarContract.Instances.BEGIN + " ASC, " + android.provider.CalendarContract.Instances.END + " ASC";
@@ -207,7 +212,10 @@ Calendar._findEvents = function(arg) {
207212
calendar: {
208213
id: cursor.getLong(cursor.getColumnIndex(Calendar._fields.CALENDAR.ID)),
209214
name: cursor.getString(cursor.getColumnIndex(Calendar._fields.CALENDAR.NAME))
210-
}
215+
},
216+
recurringRule: cursor.getString(cursor.getColumnIndex(Calendar._fields.RRULE)),
217+
instanceBeginDate: new Date(cursor.getLong(cursor.getColumnIndex(Calendar._fields.BEGIN))),
218+
instanceEndDate: new Date(cursor.getLong(cursor.getColumnIndex(Calendar._fields.END)))
211219
};
212220
events.push(event);
213221
} while (cursor.moveToNext());

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,15 @@ declare module "nativescript-calendar" {
150150
id: string;
151151
title: string;
152152
location: string;
153+
notes: string;
153154
url: string;
154155
startDate: Date;
155156
endDate: Date;
156157
allDay: boolean;
157158
calendar: Calendar;
159+
instanceBeginDate: Date;
160+
instanceEndDate: Date;
161+
recurringRule: string;
158162
/**
159163
* iOS only.
160164
*/

0 commit comments

Comments
 (0)