calendar.getAllCalendars()

Type Function
Return value none
Revision Release 2024.3703
Keywords calendar, list, getAllCalendars
See also calendar.*

Overview

calendar.getAllCalendars() lists all available calendars on the device.

Syntax

calendar.getAllCalendars( listener )
listener (required)

Listener. Listener that will receive calendars event.

Example

local calendar = require( "plugin.calendar" )

local function listCalendarsListener( event )
    -- Handle result list in event.calendars
end

-- List all available calendars
calendar.getAllCalendars( listCalendarsListener )