Skip to content

Add alarm to events

ChrisRM edited this page Dec 15, 2012 · 1 revision

Add an alarm to your events.

Example

Ti.Calendar.addEvent({
	title: "Title",
	startDate: new Date(),
	endDate: endDate,
	location: "At home",
	note: "A note",
	recurrence: { 
		frequency: "day", // day, week, month, year
		interval: 2,
		end: recurringEnd2 
	},
	alarm: {
		offset: -900 // 900 seconds = 15 minutes
	}
});

This is for EventKit only.

Table of contents

Clone this wiki locally