# Titanium.Calendar.Calendar
An object that represents a single calendar.
# Properties
# hidden READONLY
Indicates whether this calendar can be edited or deleted.
This property is true
when this calendar is editable.
# selected READONLY
Indicates whether the calendar is selected.
Set to true
when this calendar is selected.
See Titanium.Calendar for examples.
# Methods
# createEvent
Creates an event in this calendar.
Parameters
Name | Type | Description |
---|---|---|
properties | Dictionary<Titanium.Calendar.Event> | Properties of the event |
Returns
# getEventById
Gets the event with the specified identifier.
Parameters
Name | Type | Description |
---|---|---|
id | String | Identifier of the event. |
Returns
# getEventsBetweenDates
Gets events that occur between two dates.
Parameters
Name | Type | Description |
---|---|---|
date1 | Date | String | Start date. |
date2 | Date | String | End date. |
Returns
- Type
- Array<Titanium.Calendar.Event>
# getEventsInDate DEPRECATED
DEPRECATED SINCE 7.0.0
Use getEventsBetweenDates instead.
Gets events that occur on a specified date.
Parameters
Name | Type | Description |
---|---|---|
year | Number | Year of the events. |
month | Number | Month of the events, as a zero-based integer with January at 0 and December at 11. |
day | Number | Day of the month of the events. |
Returns
- Type
- Array<Titanium.Calendar.Event>
# getEventsInMonth DEPRECATED
DEPRECATED SINCE 7.0.0
Use getEventsBetweenDates instead.
Gets events that occur during a specified month.
Parameters
Name | Type | Description |
---|---|---|
year | Number | Year of the events. |
month | Number | Month of the events, as a zero-based integer with January at 0 and December at 11. |
Returns
- Type
- Array<Titanium.Calendar.Event>
# getEventsInYear DEPRECATED
DEPRECATED SINCE 7.0.0
Use getEventsBetweenDates instead.
Gets all events that occur during a specified year.
Parameters
Name | Type | Description |
---|---|---|
year | Number | Year of the events. |
Returns
- Type
- Array<Titanium.Calendar.Event>