Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

MBS Xojo Addressbook Kit

ABPersonMB class:

Class ABPersonMB Inherits ABRecordMB
ComputedProperty Addresses As ABMultiValueMB
Sub Set()
convenience property for Address
Sub Get()
convenience property for Address
ComputedProperty Birthday As date
Sub Set()
convenience property for Birthday
Sub Get()
convenience property for Birthday
ComputedProperty Dates As ABMultiValueMB
Sub Set()
convenience property for Dates
Sub Get()
convenience property for Dates
ComputedProperty Department As Text
Sub Set()
convenience property for Department
Sub Get()
convenience property for Department
ComputedProperty Emails As ABMultiValueMB
Sub Set()
convenience property for Email
Sub Get()
convenience property for Email
ComputedProperty FirstName As Text
Sub Set()
convenience property for FirstName
Sub Get()
convenience property for FirstName
ComputedProperty FirstNamePhonetic As Text
Sub Set()
convenience property for FirstNamePhonetic
Sub Get()
convenience property for FirstNamePhonetic
ComputedProperty HasImageData As Boolean
Sub Get()
Indicates whether a person has a picture.
ComputedProperty Image As iOSImage
Sub Set()
convenience function to set
Sub Get()
ComputedProperty InstantMessages As ABMultiValueMB
Sub Set()
convenience property for InstantMessage
Sub Get()
convenience property for InstantMessage
ComputedProperty JobTitle As Text
Sub Set()
convenience property for JobTitle
Sub Get()
convenience property for JobTitle
ComputedProperty Kind As Integer
Sub Set()
convenience property for Kind setting
Sub Get()
convenience property for Kind
ComputedProperty LastName As Text
Sub Set()
convenience property for LastName
Sub Get()
convenience property for LastName
ComputedProperty LastNamePhonetic As Text
Sub Set()
convenience property for LastNamePhonetic
Sub Get()
convenience property for LastNamePhonetic
ComputedProperty MiddleName As Text
Sub Set()
convenience property for MiddleName
Sub Get()
convenience property for MiddleName
ComputedProperty MiddleNamePhonetic As Text
Sub Set()
convenience property for LastNamePhonetic
Sub Get()
convenience property for LastNamePhonetic
ComputedProperty Nickname As Text
Sub Set()
convenience property for Nickname
Sub Get()
convenience property for Nickname
ComputedProperty Note As Text
Sub Set()
convenience property for Note
Sub Get()
convenience property for Note
ComputedProperty Organization As Text
Sub Set()
convenience property for Organization
Sub Get()
convenience property for Organization
ComputedProperty Phones As ABMultiValueMB
Sub Set()
convenience property for phone
Sub Get()
convenience property for phone
ComputedProperty RelatedNames As ABMultiValueMB
Sub Set()
convenience property for RelatedNames
Sub Get()
convenience property for RelatedNames
ComputedProperty SocialProfiles As ABMultiValueMB
Sub Set()
convenience property for SocialProfile
Sub Get()
convenience property for SocialProfile
ComputedProperty Source As ABSourceMB
Sub Get()
Returns the source that the person record is from.
ComputedProperty Thumbnail As iOSImage
Sub Get()
ComputedProperty URLs As ABMultiValueMB
Sub Set()
convenience property for URLs
Sub Get()
convenience property for URLs
ComputedProperty VCardRepresentation As MemoryBlock
Sub Get()
convenience function to get VCard for this person
ComputedProperty isOrganization As Boolean
Sub Get()
convenience property for Kind
ComputedProperty isPerson As Boolean
Sub Get()
convenience property for Kind
Const kABPersonCompositeNameFormatFirstNameFirst = 0
Const kABPersonCompositeNameFormatLastNameFirst = 1
Const kABPersonImageFormatOriginalSize = 2
Const kABPersonImageFormatThumbnail = 0
Const kABPersonSortByFirstName = 0
Const kABPersonSortByLastName = 1
Const kCFCompareEqualTo = 0
Const kCFCompareGreaterThan = 0
Const kCFCompareLessThan = -1
Function AllLinkedPeople() As ABPersonMB()
Returns an array of all the linked people, including the person passed in. If the person is not linked, returns an array with the person passed in.
Shared Function CFArrayToPeople(ArrayRef as integer) As ABPersonMB()
Function ComparePeopleByName(Other as ABPersonMB, SortOrdering as Integer) As Integer
Indicates how two person records get sorted.
Sub Constructor()
Creates a new person record in the default source. To add the newly created person record to the Address Book database, use ABAddressBookMB.AddRecord.
Sub Constructor(source as ABSourceMB)
Creates a new person record in a particular source.
Sub Constructor(H as Integer, Retain as Boolean)
Create from Handle
Shared Function CreatePeopleInSourceWithVCardRepresentation(data as MemoryBlock) As ABPersonMB()
Creates an array of people from a vcard representation. Source is optional. The people will be created in thedefault source.
Function ImageData() As MemoryBlock
Returns the picture for a person record.
Function ImageData(Format as Integer) As MemoryBlock
Returns the picture for a person record in the given format. Format: kABPersonImageFormatThumbnail or kABPersonImageFormatOriginalSize
Function RemoveImageData(byref error as CFErrorMB) As Boolean
Removes a person’s picture.
Function SetImageData(data as memoryblock, byref error as CFErrorMB) As Boolean
Sets a person’s picture.
Shared Function SortOrdering() As integer
Returns the user’s sort-ordering preference for lists of persons.
Shared Function TypeOfProperty(propertyID as integer) As integer
Returns the type of a person property.
Shared Function VCardRepresentationWithPeople(people() as ABPersonMB) As MemoryBlock
Creates a vCard representation of the people passed in.
Note "About"
Person records are represented by instances of the ABRecordRef opaque type, whose record type is kABPersonType. Person records store information about a person, such as first name, last name, address, email, and phone number. Person records don’t necessarily have to be stored in the Address Book database. You can use person records as a way to group contact information in memory and present it to the user through, for example, a person view controller (ABPersonViewController).
End Class




Links
MBS Xojo Plugins