Package org.robovm.apple.addressbook
Class ABPerson
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.addressbook.ABRecord
-
- org.robovm.apple.addressbook.ABPerson
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ABPerson extends ABRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ABPerson.AsListMarshaler
-
Nested classes/interfaces inherited from class org.robovm.apple.addressbook.ABRecord
ABRecord.Marshaler, ABRecord.NoRetainMarshaler
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.CFTypePtr
-
-
Constructor Summary
Constructors Constructor Description ABPerson()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
addAddress(ABPersonAddress address)
int
addEmailAddress(ABPersonEmailAddress emailAddress)
int
addInstantMessageAccount(ABPersonInstantMessageAccount instantMessageAccount)
int
addPhoneNumber(ABPersonPhoneNumber phoneNumber)
int
addRelatedName(ABPersonRelatedName relatedName)
int
addSocialProfile(ABPersonSocialProfile socialProfile)
int
addURL(ABPersonURL url)
CFComparisonResult
compareTo(ABRecord person2, ABPersonSortOrdering ordering)
Deprecated.Deprecated in iOS 9.0. use [CNContact comparatorForNameSortOrder:]static ABPerson
create()
Deprecated.Deprecated in iOS 9.0. use [[CNMutableContact alloc] init]static ABPerson
create(ABSource source)
Deprecated.Deprecated in iOS 9.0. use [[CNMutableContact alloc] init] and [CNSaveRequest addContact:toContainerWithIdentifier:]static java.util.List<ABPerson>
createPeopleWithVCardRepresentation(ABSource source, NSData vCardData)
Deprecated.Deprecated in iOS 9.0. use [CNContactVCardSerialization contactsWithData:error:]static NSData
createVCardRepresentationWithPeople(java.util.List<ABPerson> people)
Deprecated.Deprecated in iOS 9.0. use [CNContactVCardSerialization dataWithContacts:error:]java.util.List<ABPersonAddress>
getAddresses()
java.util.List<ABPerson>
getAllLinkedPeople()
Deprecated.Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsLinkedToContact:] and unifyResults = NOABPersonAlternateBirthday
getAlternateBirthday()
NSDate
getBirthday()
java.lang.String
getCompositeNameDelimiter()
Deprecated.Deprecated in iOS 9.0.ABPersonCompositeNameFormat
getCompositeNameFormat()
Deprecated.Deprecated in iOS 9.0.static ABPersonCompositeNameFormat
getConstantCompositeNameFormat()
Deprecated.Deprecated in iOS 9.0.NSDate
getCreationDate()
java.util.List<ABPersonDate>
getDates()
java.lang.String
getDepartment()
java.util.List<ABPersonEmailAddress>
getEmailAddresses()
java.lang.String
getFirstName()
java.lang.String
getFirstNamePhonetic()
NSData
getImageData()
Deprecated.Deprecated in iOS 9.0. use CNContact.imageDataNSData
getImageData(ABPersonImageFormat format)
Deprecated.Deprecated in iOS 9.0. use CNContact.imageData or CNContact.thumbnailImageDatajava.util.List<ABPersonInstantMessageAccount>
getInstantMessageAccounts()
java.lang.String
getJobTitle()
ABPersonKind
getKind()
java.lang.String
getLastName()
java.lang.String
getLastNamePhonetic()
java.lang.String
getMiddleName()
java.lang.String
getMiddleNamePhonetic()
NSDate
getModificationDate()
java.lang.String
getNickname()
java.lang.String
getNote()
java.lang.String
getOrganization()
java.util.List<ABPersonPhoneNumber>
getPhoneNumbers()
java.lang.String
getPrefix()
java.util.List<ABPersonRelatedName>
getRelatedNames()
java.util.List<ABPersonSocialProfile>
getSocialProfiles()
static ABPersonSortOrdering
getSortOrdering()
Deprecated.Deprecated in iOS 9.0. use [[CNContactsUserDefaults sharedDefaults] sortOrder]ABSource
getSource()
Deprecated.Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:[CNContainer predicateForContainerOfContactWithIdentifier:] error:]java.lang.String
getSuffix()
java.util.List<ABPersonURL>
getURLs()
boolean
hasImageData()
Deprecated.Deprecated in iOS 9.0.boolean
removeAddress(int id)
boolean
removeEmailAddress(int id)
boolean
removeImageData()
Deprecated.Deprecated in iOS 9.0. use CNMutableContact.imageData = nilboolean
removeInstantMessageAccount(int id)
boolean
removePhoneNumber(int id)
boolean
removeRelatedName(int id)
boolean
removeSocialProfile(int id)
boolean
removeURL(int id)
ABPerson
setAddresses(java.util.List<ABPersonAddress> addresses)
ABPerson
setAlternateBirthday(ABPersonAlternateBirthday alternateBirthday)
ABPerson
setBirthday(NSDate birthday)
ABPerson
setCreationDate(NSDate creationDate)
ABPerson
setDates(java.util.List<ABPersonDate> dates)
ABPerson
setDepartment(java.lang.String department)
ABPerson
setEmailAddresses(java.util.List<ABPersonEmailAddress> emailAddresses)
ABPerson
setFirstName(java.lang.String firstName)
ABPerson
setFirstNamePhonetic(java.lang.String firstNamePhonetic)
boolean
setImageData(NSData imageData)
Deprecated.Deprecated in iOS 9.0. use CNMutableContact.imageDataABPerson
setInstantMessageAccounts(java.util.List<ABPersonInstantMessageAccount> instantMessageAccounts)
ABPerson
setJobTitle(java.lang.String jobTitle)
ABPerson
setKind(ABPersonKind kind)
ABPerson
setLastName(java.lang.String lastName)
ABPerson
setLastNamePhonetic(java.lang.String lastNamePhonetic)
ABPerson
setMiddleName(java.lang.String middleName)
ABPerson
setMiddleNamePhonetic(java.lang.String middleNamePhonetic)
ABPerson
setModificationDate(NSDate modificationDate)
ABPerson
setNickname(java.lang.String nickname)
ABPerson
setNote(java.lang.String note)
ABPerson
setOrganization(java.lang.String organization)
ABPerson
setPhoneNumbers(java.util.List<ABPersonPhoneNumber> phoneNumbers)
ABPerson
setPrefix(java.lang.String prefix)
ABPerson
setRelatedNames(java.util.List<ABPersonRelatedName> relatedNames)
ABPerson
setSocialProfiles(java.util.List<ABPersonSocialProfile> socialProfiles)
ABPerson
setSuffix(java.lang.String suffix)
ABPerson
setURLs(java.util.List<ABPersonURL> urls)
-
Methods inherited from class org.robovm.apple.addressbook.ABRecord
getCompositeName, getRecordID, getRecordType, getValue, getValue, removeValue, setValue
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
getFirstName
public java.lang.String getFirstName()
-
setFirstName
public ABPerson setFirstName(java.lang.String firstName) throws NSErrorException
- Throws:
NSErrorException
-
getLastName
public java.lang.String getLastName()
-
setLastName
public ABPerson setLastName(java.lang.String lastName) throws NSErrorException
- Throws:
NSErrorException
-
getMiddleName
public java.lang.String getMiddleName()
-
setMiddleName
public ABPerson setMiddleName(java.lang.String middleName) throws NSErrorException
- Throws:
NSErrorException
-
getPrefix
public java.lang.String getPrefix()
-
setPrefix
public ABPerson setPrefix(java.lang.String prefix) throws NSErrorException
- Throws:
NSErrorException
-
getSuffix
public java.lang.String getSuffix()
-
setSuffix
public ABPerson setSuffix(java.lang.String suffix) throws NSErrorException
- Throws:
NSErrorException
-
getNickname
public java.lang.String getNickname()
-
setNickname
public ABPerson setNickname(java.lang.String nickname) throws NSErrorException
- Throws:
NSErrorException
-
getFirstNamePhonetic
public java.lang.String getFirstNamePhonetic()
-
setFirstNamePhonetic
public ABPerson setFirstNamePhonetic(java.lang.String firstNamePhonetic) throws NSErrorException
- Throws:
NSErrorException
-
getLastNamePhonetic
public java.lang.String getLastNamePhonetic()
-
setLastNamePhonetic
public ABPerson setLastNamePhonetic(java.lang.String lastNamePhonetic) throws NSErrorException
- Throws:
NSErrorException
-
getMiddleNamePhonetic
public java.lang.String getMiddleNamePhonetic()
-
setMiddleNamePhonetic
public ABPerson setMiddleNamePhonetic(java.lang.String middleNamePhonetic) throws NSErrorException
- Throws:
NSErrorException
-
getOrganization
public java.lang.String getOrganization()
-
setOrganization
public ABPerson setOrganization(java.lang.String organization) throws NSErrorException
- Throws:
NSErrorException
-
getJobTitle
public java.lang.String getJobTitle()
-
setJobTitle
public ABPerson setJobTitle(java.lang.String jobTitle) throws NSErrorException
- Throws:
NSErrorException
-
getDepartment
public java.lang.String getDepartment()
-
setDepartment
public ABPerson setDepartment(java.lang.String department) throws NSErrorException
- Throws:
NSErrorException
-
getEmailAddresses
public java.util.List<ABPersonEmailAddress> getEmailAddresses()
-
setEmailAddresses
public ABPerson setEmailAddresses(java.util.List<ABPersonEmailAddress> emailAddresses) throws NSErrorException
- Throws:
NSErrorException
-
addEmailAddress
public int addEmailAddress(ABPersonEmailAddress emailAddress) throws NSErrorException
- Throws:
NSErrorException
-
removeEmailAddress
public boolean removeEmailAddress(int id) throws NSErrorException
- Throws:
NSErrorException
-
getBirthday
public NSDate getBirthday()
-
setBirthday
public ABPerson setBirthday(NSDate birthday) throws NSErrorException
- Throws:
NSErrorException
-
getNote
public java.lang.String getNote()
-
setNote
public ABPerson setNote(java.lang.String note) throws NSErrorException
- Throws:
NSErrorException
-
getCreationDate
public NSDate getCreationDate()
-
setCreationDate
public ABPerson setCreationDate(NSDate creationDate) throws NSErrorException
- Throws:
NSErrorException
-
getModificationDate
public NSDate getModificationDate()
-
setModificationDate
public ABPerson setModificationDate(NSDate modificationDate) throws NSErrorException
- Throws:
NSErrorException
-
getAddresses
public java.util.List<ABPersonAddress> getAddresses()
-
setAddresses
public ABPerson setAddresses(java.util.List<ABPersonAddress> addresses) throws NSErrorException
- Throws:
NSErrorException
-
addAddress
public int addAddress(ABPersonAddress address) throws NSErrorException
- Throws:
NSErrorException
-
removeAddress
public boolean removeAddress(int id) throws NSErrorException
- Throws:
NSErrorException
-
getDates
public java.util.List<ABPersonDate> getDates()
-
setDates
public ABPerson setDates(java.util.List<ABPersonDate> dates) throws NSErrorException
- Throws:
NSErrorException
-
getKind
public ABPersonKind getKind()
-
setKind
public ABPerson setKind(ABPersonKind kind) throws NSErrorException
- Throws:
NSErrorException
-
getPhoneNumbers
public java.util.List<ABPersonPhoneNumber> getPhoneNumbers()
-
setPhoneNumbers
public ABPerson setPhoneNumbers(java.util.List<ABPersonPhoneNumber> phoneNumbers) throws NSErrorException
- Throws:
NSErrorException
-
addPhoneNumber
public int addPhoneNumber(ABPersonPhoneNumber phoneNumber) throws NSErrorException
- Throws:
NSErrorException
-
removePhoneNumber
public boolean removePhoneNumber(int id) throws NSErrorException
- Throws:
NSErrorException
-
getInstantMessageAccounts
public java.util.List<ABPersonInstantMessageAccount> getInstantMessageAccounts()
-
setInstantMessageAccounts
public ABPerson setInstantMessageAccounts(java.util.List<ABPersonInstantMessageAccount> instantMessageAccounts) throws NSErrorException
- Throws:
NSErrorException
-
addInstantMessageAccount
public int addInstantMessageAccount(ABPersonInstantMessageAccount instantMessageAccount) throws NSErrorException
- Throws:
NSErrorException
-
removeInstantMessageAccount
public boolean removeInstantMessageAccount(int id) throws NSErrorException
- Throws:
NSErrorException
-
getSocialProfiles
public java.util.List<ABPersonSocialProfile> getSocialProfiles()
-
setSocialProfiles
public ABPerson setSocialProfiles(java.util.List<ABPersonSocialProfile> socialProfiles) throws NSErrorException
- Throws:
NSErrorException
-
addSocialProfile
public int addSocialProfile(ABPersonSocialProfile socialProfile) throws NSErrorException
- Throws:
NSErrorException
-
removeSocialProfile
public boolean removeSocialProfile(int id) throws NSErrorException
- Throws:
NSErrorException
-
getURLs
public java.util.List<ABPersonURL> getURLs()
-
setURLs
public ABPerson setURLs(java.util.List<ABPersonURL> urls) throws NSErrorException
- Throws:
NSErrorException
-
addURL
public int addURL(ABPersonURL url) throws NSErrorException
- Throws:
NSErrorException
-
removeURL
public boolean removeURL(int id) throws NSErrorException
- Throws:
NSErrorException
-
getRelatedNames
public java.util.List<ABPersonRelatedName> getRelatedNames()
-
setRelatedNames
public ABPerson setRelatedNames(java.util.List<ABPersonRelatedName> relatedNames) throws NSErrorException
- Throws:
NSErrorException
-
addRelatedName
public int addRelatedName(ABPersonRelatedName relatedName) throws NSErrorException
- Throws:
NSErrorException
-
removeRelatedName
public boolean removeRelatedName(int id) throws NSErrorException
- Throws:
NSErrorException
-
getAlternateBirthday
public ABPersonAlternateBirthday getAlternateBirthday()
-
setAlternateBirthday
public ABPerson setAlternateBirthday(ABPersonAlternateBirthday alternateBirthday) throws NSErrorException
- Throws:
NSErrorException
-
create
@Deprecated public static ABPerson create()
Deprecated.Deprecated in iOS 9.0. use [[CNMutableContact alloc] init]- Since:
- Available in iOS 2.0 and later.
-
create
@Deprecated public static ABPerson create(ABSource source)
Deprecated.Deprecated in iOS 9.0. use [[CNMutableContact alloc] init] and [CNSaveRequest addContact:toContainerWithIdentifier:]- Since:
- Available in iOS 2.0 and later.
-
getSource
@Deprecated public ABSource getSource()
Deprecated.Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:[CNContainer predicateForContainerOfContactWithIdentifier:] error:]- Since:
- Available in iOS 2.0 and later.
-
getAllLinkedPeople
@Deprecated public java.util.List<ABPerson> getAllLinkedPeople()
Deprecated.Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsLinkedToContact:] and unifyResults = NO- Since:
- Available in iOS 2.0 and later.
-
getSortOrdering
@Deprecated public static ABPersonSortOrdering getSortOrdering()
Deprecated.Deprecated in iOS 9.0. use [[CNContactsUserDefaults sharedDefaults] sortOrder]- Since:
- Available in iOS 2.0 and later.
-
getConstantCompositeNameFormat
@Deprecated public static ABPersonCompositeNameFormat getConstantCompositeNameFormat()
Deprecated.Deprecated in iOS 9.0.- Since:
- Available in iOS 2.0 and later.
-
getCompositeNameFormat
@Deprecated public ABPersonCompositeNameFormat getCompositeNameFormat()
Deprecated.Deprecated in iOS 9.0.- Since:
- Available in iOS 2.0 and later.
-
getCompositeNameDelimiter
@Deprecated public java.lang.String getCompositeNameDelimiter()
Deprecated.Deprecated in iOS 9.0.- Since:
- Available in iOS 2.0 and later.
-
setImageData
@Deprecated public boolean setImageData(NSData imageData) throws NSErrorException
Deprecated.Deprecated in iOS 9.0. use CNMutableContact.imageData- Throws:
NSErrorException
- Since:
- Available in iOS 2.0 and later.
-
getImageData
@Deprecated public NSData getImageData()
Deprecated.Deprecated in iOS 9.0. use CNContact.imageData- Since:
- Available in iOS 2.0 and later.
-
getImageData
@Deprecated public NSData getImageData(ABPersonImageFormat format)
Deprecated.Deprecated in iOS 9.0. use CNContact.imageData or CNContact.thumbnailImageData- Since:
- Available in iOS 2.0 and later.
-
hasImageData
@Deprecated public boolean hasImageData()
Deprecated.Deprecated in iOS 9.0.- Since:
- Available in iOS 2.0 and later.
-
removeImageData
@Deprecated public boolean removeImageData() throws NSErrorException
Deprecated.Deprecated in iOS 9.0. use CNMutableContact.imageData = nil- Throws:
NSErrorException
- Since:
- Available in iOS 2.0 and later.
-
compareTo
@Deprecated public CFComparisonResult compareTo(ABRecord person2, ABPersonSortOrdering ordering)
Deprecated.Deprecated in iOS 9.0. use [CNContact comparatorForNameSortOrder:]- Since:
- Available in iOS 2.0 and later.
-
createPeopleWithVCardRepresentation
@Deprecated public static java.util.List<ABPerson> createPeopleWithVCardRepresentation(ABSource source, NSData vCardData)
Deprecated.Deprecated in iOS 9.0. use [CNContactVCardSerialization contactsWithData:error:]- Since:
- Available in iOS 2.0 and later.
-
-