An object that represents a single event in a calendar.
The API supports retrieving information about existing events and creating new events.
Be aware that modifying or deleting existing events and creating recurring rules for events
are only supported on iOS.
See Titanium.Calendar for examples of retrieving event information and creating events.
Alarms associated with the calendar item, as an array of Titanium.Calendar.Alert objects.
Alarms associated with the calendar item, as an array of Titanium.Calendar.Alert objects.
This property is read-only on Android.
Indicates whether this event is all day.
This property is read-only on Android.
Default: false
The name of the API that this proxy corresponds to.
The name of the API that this proxy corresponds to.
The value of this property is the fully qualified name of the API. For example, Button
returns Ti.UI.Button
.
The list of event attendees. This list will be empty if the event has no attendees.
Availability of this event.
This API can be assigned the following constants:
Start date/time of this event.
Start date/time of this event.
This property is read-only on Android.
Indicates if the proxy will bubble an event to its parent.
Some proxies (most commonly views) have a relationship to other proxies, often established by the add() method. For example, for a button added to a window, a click event on the button would bubble up to the window. Other common parents are table sections to their rows, table views to their sections, and scrollable views to their views. Set this property to false to disable the bubbling to the proxy's parent.
Default: true
End date/time of this event.
End date/time of this event.
This property is read-only on Android.
Extended properties of this event.
Extended properties of this event.
Indicates whether an alarm is scheduled for this event.
Indicates whether an alarm is scheduled for this event.
Boolean value that indicates whether an event is a detached instance of a repeating event.
Boolean value that indicates whether an event is a detached instance of a repeating event.
This value is YES
if and only if the event is part of a repeating event
and one or more of its attributes have been modified from the repeating event's
default attributes.
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
If this property is set to a Window or TabGroup, then the corresponding Activity lifecycle event callbacks will also be called on the proxy. Proxies that require the activity lifecycle will need this property set to the appropriate containing Window or TabGroup.
Location of this event.
Location of this event.
This property is read-only on Android.
Recurrence rule associated with the event. (Available in iOS 4.0 through iOS 5.1.)
This property has been removed
3.2.0
Requires: iOS 5.0 and earlier
The recurrence rules for the calendar item. (Available in iOS 5.1 and above.)
Requires: iOS 5.0 and later
On Android, only the first element of the recurrenceRules is taken into account due to the way it handles conditions for recurrence rules.
Existing reminders for this event.
Existing reminders for this event.
Status of this event.
This API can be assigned the following constants:
Visibility of this event.
This API can be assigned the following constants:
Adds the specified callback as an event listener for the named event.
Name of the event.
Callback function to invoke when the event is fired.
Adds a recurrence rule to the recurrence rule array.
Requires: iOS 5.0 and later
The recurrence rule to be added.
Applies the properties to the proxy.
Properties are supplied as a dictionary. Each key-value pair in the object is applied to the proxy such that myproxy[key] = value.
A dictionary of properties to apply.
Creates an alert for this event.
Properties for the alert.
Creates an recurrence pattern for a recurring event. All of the properties for the recurrence rule must be set during creation. The recurrence rule properties cannot be modified.
Properties for the recurrence rule.
Creates a reminder for this event.
Properties for the reminder.
Fires a synthesized event to any registered listeners.
Name of the event.
A dictionary of keys and values to add to the Titanium.Event object sent to the listeners.
Gets the value of the specified extended property.
Name of an existing extended property.
Gets the value of the recurrenceRule property.
This method has been removed since 3.2.0
Updates the event's data with the current information in the Calendar database.
This method should be only used on events that your application is editing, and only when your application receives the change notification. If this method returns NO, the event has been deleted or otherwise invalidated, and you should not continue to use it.
Removes an event from the event store.
This method raises an exception if it is passed an event from another event store.
The span to use. Indicates whether to remove future instances of the event in the case of a recurring event.
This API can be assigned the following constants:
Removes the specified callback as an event listener for the named event.
Multiple listeners can be registered for the same event, so the
callback
parameter is used to determine which listener to remove.
When adding a listener, you must save a reference to the callback function in order to remove the listener later:
var listener = function() { Ti.API.info("Event listener called."); }
window.addEventListener('click', listener);
To remove the listener, pass in a reference to the callback function:
window.removeEventListener('click', listener);
Name of the event.
Callback function to remove. Must be the same function passed to addEventListener
.
Removes a recurrence rule to the recurrence rule array.
Requires: iOS 5.0 and later
The recurrence rule to be removed.
Saves changes to an event permanently.
This method raises an exception if it is passed an event from another event store.
When an event is saved, it is updated in the Calendar database. Any fields you did not modify are updated to reflect the most recent value in the database. If the event has been deleted from the database, it is re-created as a new event.
The span to use. Indicates whether the save affects future instances of the event in the case of a recurring event.
This API can be assigned the following constants:
Sets the value of the alerts property.
New value for the property.
Sets the value of the allDay property.
New value for the property.
Sets the value of the bubbleParent property.
New value for the property.
Sets the value of the specified extended property.
Property name.
Property value.
Sets the value of the lifecycleContainer property.
New value for the property.
Sets the value of the location property.
New value for the property.
Sets the value of the notes property.
New value for the property.
Sets the value of the recurrenceRule property.
This method has been removed since 3.2.0
New value for the property.
Sets the value of the recurrenceRules property.
New value for the property.