calendar.*

Type Library
Revision 2017.3184
Keywords calendar
Platforms Android, iOS

Overview

The Calendar plugin allows listing calendars and manipulating events within them.

Syntax

local calendar = require( "plugin.calendar" )

Functions

Project Settings

To use this plugin, add the following entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings =
{
    plugins =
    {
        ["plugin.calendar"] =
        {
            publisherId = "com.coronalabs"
        },
    },
}

iOS

For iOS, you must include the following keys/descriptions in the plist table of build.settings. When the system prompts the user to allow access, the associated description is displayed as part of the alert. Note that these descriptions can be customized to your preference and they can even be localized (guide).:

settings =
{
    iphone =
    {
        plist =
        {
            NSCalendarsUsageDescription = "This app would like to access calendars from your device",
            NSRemindersUsageDescription = "This app would like to access reminders from your device",
        },
    },
}