|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
The Apple Address Book Java API provides classes which let you
access Apple's Address Book data. The central class of the API is NativeAddressBook
. It offers a singleton instance
accessed by a call to NativeAddressBook.instance()
. It
automatically fetches the data from Apple's Address Book and also keeps
it up-to-date by watching for external changes.
Apple's Address Book contains two types of information, contacts
and groups. Contacts are modeled by the Contact
class, groups by the Group
class. These classes also offer setter
methods, which automatically commit the changes to Apple's Address Book.
If you want to monitor the Address Book for changes, you can add
an AddressBookChangeListener
by
calling NativeAddressBook.addAddressBookChangeListener()
.
This API also provides searching functionalities. You can create
your own filters or use predefined filters. Predefined filters can be
found in the NativeAddressBook class. There are some filters declared as
constants as well as some search methods. To create your own filters,
refer to the Filter
class.
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |