Skip to content

Adds the ability to create and edit events in the calendar for PhoneGap apps.

License

Notifications You must be signed in to change notification settings

yimingkuan/CalendarPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CalendarPlugin

Adds the ability to create and edit events in the calendar for PhoneGap apps.

Follows the Cordova Plugin spec, so that it works with Plugman, or you can install it manually below.

var calendar = cordova.require("cordova/plugin/Calendar");

/*
    Adds an event to the calendar. This is done silently in the background on iOS.
    On Android, it brings the user to the calendar's add event form, prefilled with parameter data.
     
    @param title           the event's title
    @param description     the event's description (called Notes on iOS)
    @param location        the event's location
    @param startDate       a Javascript Date var for the event's start time and date
    @param endDate         a Javascript Date var for the event's start time and date
    @param successCallback returns the value as the argument to the callback when successful
    @param failureCallback returns the error string as the argument to the callback, for a failure
*/
calendar.addEvent(title, description, location, startDate, endDate, successCallback, errorCallback)

Currently tested working on iOS 5 / Android 4.x devices on Cordova 3.0.0.

About

Adds the ability to create and edit events in the calendar for PhoneGap apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published