Messaging events

ContactManager automatically generates certain events, called standard events, for most top-level objects. In general, events are generated for any addition, modification, removal, or retirement of a top-level entity.

For example, ContactManager automatically generates the following events on the ABContact object:

  • ABContactAdded
  • ABContactChanged
  • ABContactRemoved
  • ABContactResync
  • ABContactPendingChangeRejected

It is also possible to create a custom event on an entity by using the addEvent method. This method takes a single parameter, eventName, which is a String value that sets the name of the event:

entity.addEvent(eventName)

See also