contacts

package
v0.5.0-preview....-32e7360 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Access the user's contacts, and format and localize contact information.

Apple Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChangeHistoryAddContactEventClass = _ChangeHistoryAddContactEventClass{objc.GetClass("CNChangeHistoryAddContactEvent")}

The class instance for the ChangeHistoryAddContactEvent class.

View Source
var ChangeHistoryAddGroupEventClass = _ChangeHistoryAddGroupEventClass{objc.GetClass("CNChangeHistoryAddGroupEvent")}

The class instance for the ChangeHistoryAddGroupEvent class.

View Source
var ChangeHistoryAddMemberToGroupEventClass = _ChangeHistoryAddMemberToGroupEventClass{objc.GetClass("CNChangeHistoryAddMemberToGroupEvent")}

The class instance for the ChangeHistoryAddMemberToGroupEvent class.

View Source
var ChangeHistoryAddSubgroupToGroupEventClass = _ChangeHistoryAddSubgroupToGroupEventClass{objc.GetClass("CNChangeHistoryAddSubgroupToGroupEvent")}

The class instance for the ChangeHistoryAddSubgroupToGroupEvent class.

View Source
var ChangeHistoryDeleteContactEventClass = _ChangeHistoryDeleteContactEventClass{objc.GetClass("CNChangeHistoryDeleteContactEvent")}

The class instance for the ChangeHistoryDeleteContactEvent class.

View Source
var ChangeHistoryDeleteGroupEventClass = _ChangeHistoryDeleteGroupEventClass{objc.GetClass("CNChangeHistoryDeleteGroupEvent")}

The class instance for the ChangeHistoryDeleteGroupEvent class.

View Source
var ChangeHistoryDropEverythingEventClass = _ChangeHistoryDropEverythingEventClass{objc.GetClass("CNChangeHistoryDropEverythingEvent")}

The class instance for the ChangeHistoryDropEverythingEvent class.

View Source
var ChangeHistoryEventClass = _ChangeHistoryEventClass{objc.GetClass("CNChangeHistoryEvent")}

The class instance for the ChangeHistoryEvent class.

View Source
var ChangeHistoryFetchRequestClass = _ChangeHistoryFetchRequestClass{objc.GetClass("CNChangeHistoryFetchRequest")}

The class instance for the ChangeHistoryFetchRequest class.

View Source
var ChangeHistoryRemoveMemberFromGroupEventClass = _ChangeHistoryRemoveMemberFromGroupEventClass{objc.GetClass("CNChangeHistoryRemoveMemberFromGroupEvent")}

The class instance for the ChangeHistoryRemoveMemberFromGroupEvent class.

View Source
var ChangeHistoryRemoveSubgroupFromGroupEventClass = _ChangeHistoryRemoveSubgroupFromGroupEventClass{objc.GetClass("CNChangeHistoryRemoveSubgroupFromGroupEvent")}

The class instance for the ChangeHistoryRemoveSubgroupFromGroupEvent class.

View Source
var ChangeHistoryUpdateContactEventClass = _ChangeHistoryUpdateContactEventClass{objc.GetClass("CNChangeHistoryUpdateContactEvent")}

The class instance for the ChangeHistoryUpdateContactEvent class.

View Source
var ChangeHistoryUpdateGroupEventClass = _ChangeHistoryUpdateGroupEventClass{objc.GetClass("CNChangeHistoryUpdateGroupEvent")}

The class instance for the ChangeHistoryUpdateGroupEvent class.

View Source
var ContactClass = _ContactClass{objc.GetClass("CNContact")}

The class instance for the Contact class.

View Source
var ContactFetchRequestClass = _ContactFetchRequestClass{objc.GetClass("CNContactFetchRequest")}

The class instance for the ContactFetchRequest class.

View Source
var ContactFormatterClass = _ContactFormatterClass{objc.GetClass("CNContactFormatter")}

The class instance for the ContactFormatter class.

View Source
var ContactPropertyClass = _ContactPropertyClass{objc.GetClass("CNContactProperty")}

The class instance for the ContactProperty class.

View Source
var ContactRelationClass = _ContactRelationClass{objc.GetClass("CNContactRelation")}

The class instance for the ContactRelation class.

View Source
var ContactStoreClass = _ContactStoreClass{objc.GetClass("CNContactStore")}

The class instance for the ContactStore class.

View Source
var ContactVCardSerializationClass = _ContactVCardSerializationClass{objc.GetClass("CNContactVCardSerialization")}

The class instance for the ContactVCardSerialization class.

View Source
var ContactsUserDefaultsClass = _ContactsUserDefaultsClass{objc.GetClass("CNContactsUserDefaults")}

The class instance for the ContactsUserDefaults class.

View Source
var ContainerClass = _ContainerClass{objc.GetClass("CNContainer")}

The class instance for the Container class.

View Source
var FetchRequestClass = _FetchRequestClass{objc.GetClass("CNFetchRequest")}

The class instance for the FetchRequest class.

View Source
var FetchResultClass = _FetchResultClass{objc.GetClass("CNFetchResult")}

The class instance for the FetchResult class.

View Source
var GroupClass = _GroupClass{objc.GetClass("CNGroup")}

The class instance for the Group class.

View Source
var InstantMessageAddressClass = _InstantMessageAddressClass{objc.GetClass("CNInstantMessageAddress")}

The class instance for the InstantMessageAddress class.

View Source
var LabeledValueClass = _LabeledValueClass{objc.GetClass("CNLabeledValue")}

The class instance for the LabeledValue class.

View Source
var MutableContactClass = _MutableContactClass{objc.GetClass("CNMutableContact")}

The class instance for the MutableContact class.

View Source
var MutableGroupClass = _MutableGroupClass{objc.GetClass("CNMutableGroup")}

The class instance for the MutableGroup class.

View Source
var MutablePostalAddressClass = _MutablePostalAddressClass{objc.GetClass("CNMutablePostalAddress")}

The class instance for the MutablePostalAddress class.

View Source
var PhoneNumberClass = _PhoneNumberClass{objc.GetClass("CNPhoneNumber")}

The class instance for the PhoneNumber class.

View Source
var PostalAddressClass = _PostalAddressClass{objc.GetClass("CNPostalAddress")}

The class instance for the PostalAddress class.

View Source
var PostalAddressFormatterClass = _PostalAddressFormatterClass{objc.GetClass("CNPostalAddressFormatter")}

The class instance for the PostalAddressFormatter class.

View Source
var SaveRequestClass = _SaveRequestClass{objc.GetClass("CNSaveRequest")}

The class instance for the SaveRequest class.

View Source
var SocialProfileClass = _SocialProfileClass{objc.GetClass("CNSocialProfile")}

The class instance for the SocialProfile class.

Functions

func ContactFormatter_AttributedStringFromContactStyleDefaultAttributes

func ContactFormatter_AttributedStringFromContactStyleDefaultAttributes(contact IContact, style ContactFormatterStyle, attributes foundation.Dictionary) foundation.AttributedString

Formats the contact name as an attributed string. Full Topic

func ContactFormatter_DelimiterForContact

func ContactFormatter_DelimiterForContact(contact IContact) string

Returns the delimiter to use between name components. Full Topic

func ContactFormatter_DescriptorForRequiredKeysForDelimiter

func ContactFormatter_DescriptorForRequiredKeysForDelimiter() objc.Object
[Full Topic]

func ContactFormatter_DescriptorForRequiredKeysForNameOrder

func ContactFormatter_DescriptorForRequiredKeysForNameOrder() objc.Object
[Full Topic]

func ContactFormatter_DescriptorForRequiredKeysForStyle

func ContactFormatter_DescriptorForRequiredKeysForStyle(style ContactFormatterStyle) objc.Object

Returns the required key descriptor for the specified formatting style of the contact. Full Topic

func ContactFormatter_StringFromContactStyle

func ContactFormatter_StringFromContactStyle(contact IContact, style ContactFormatterStyle) string

Returns the contact name, formatted with the specified formatter. Full Topic

func ContactVCardSerialization_DataWithContactsError

func ContactVCardSerialization_DataWithContactsError(contacts []IContact, error foundation.IError) []byte

Returns the vCard representation of the specified contacts. Full Topic

func ContactVCardSerialization_DescriptorForRequiredKeys

func ContactVCardSerialization_DescriptorForRequiredKeys() objc.Object

Use to fetch all contact keys required to create vCard data from a contact. Full Topic

func Contact_ComparatorForNameSortOrder

func Contact_ComparatorForNameSortOrder(sortOrder ContactSortOrder) foundation.Comparator

Returns a comparator to sort contacts with the specified order. Full Topic

func Contact_DescriptorForAllComparatorKeys

func Contact_DescriptorForAllComparatorKeys() objc.Object

Fetches all the keys required for the contact sort comparator. Full Topic

func Contact_LocalizedStringForKey

func Contact_LocalizedStringForKey(key string) string

Returns a string containing the localized contact property name. Full Topic

func Contact_PredicateForContactsInContainerWithIdentifier

func Contact_PredicateForContactsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate

Returns a predicate to find the contacts in the specified container. Full Topic

func Contact_PredicateForContactsInGroupWithIdentifier

func Contact_PredicateForContactsInGroupWithIdentifier(groupIdentifier string) foundation.Predicate

Returns a predicate to find the contacts that are members in the specified group. Full Topic

func Contact_PredicateForContactsMatchingEmailAddress

func Contact_PredicateForContactsMatchingEmailAddress(emailAddress string) foundation.Predicate

Returns a predicate to find the contacts whose email address matches the specified value. Full Topic

func Contact_PredicateForContactsMatchingName

func Contact_PredicateForContactsMatchingName(name string) foundation.Predicate

Returns a predicate to find the contacts matching the specified name. Full Topic

func Contact_PredicateForContactsMatchingPhoneNumber

func Contact_PredicateForContactsMatchingPhoneNumber(phoneNumber IPhoneNumber) foundation.Predicate

Returns a predicate to find the contacts whose phone number matches the specified value. Full Topic

func Contact_PredicateForContactsWithIdentifiers

func Contact_PredicateForContactsWithIdentifiers(identifiers []string) foundation.Predicate

Returns a predicate to find the contacts matching the specified identifiers. Full Topic

func Container_PredicateForContainerOfContactWithIdentifier

func Container_PredicateForContainerOfContactWithIdentifier(contactIdentifier string) foundation.Predicate

Returns a predicate to find the container of the specified contact. Full Topic

func Container_PredicateForContainerOfGroupWithIdentifier

func Container_PredicateForContainerOfGroupWithIdentifier(groupIdentifier string) foundation.Predicate

Returns a predicate to find the container of the specified group. Full Topic

func Container_PredicateForContainersWithIdentifiers

func Container_PredicateForContainersWithIdentifiers(identifiers []string) foundation.Predicate

Returns a predicate to find the containers with the specified identifiers. Full Topic

func Group_PredicateForGroupsInContainerWithIdentifier

func Group_PredicateForGroupsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate

Returns a predicate to find groups in the specified container. Full Topic

func Group_PredicateForGroupsWithIdentifiers

func Group_PredicateForGroupsWithIdentifiers(identifiers []string) foundation.Predicate

Returns a predicate to find groups with the specified identifiers. Full Topic

func Group_PredicateForSubgroupsInGroupWithIdentifier

func Group_PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier string) foundation.Predicate

Returns a predicate to find subgroups in the specified parent group. Full Topic

func InstantMessageAddress_LocalizedStringForKey

func InstantMessageAddress_LocalizedStringForKey(key string) string

Returns a string containing the localized property name. Full Topic

func InstantMessageAddress_LocalizedStringForService

func InstantMessageAddress_LocalizedStringForService(service string) string

Returns a string containing the localized name of the specified service. Full Topic

func LabeledValue_LocalizedStringForLabel

func LabeledValue_LocalizedStringForLabel(label string) string

Returns a localized string for the specified label. Full Topic

func PostalAddressFormatter_AttributedStringFromPostalAddressStyleWithDefaultAttributes

func PostalAddressFormatter_AttributedStringFromPostalAddressStyleWithDefaultAttributes(postalAddress IPostalAddress, style PostalAddressFormatterStyle, attributes foundation.Dictionary) foundation.AttributedString

Returns a postal address as an attributed string and formatted for the specified style. Full Topic

func PostalAddressFormatter_StringFromPostalAddressStyle

func PostalAddressFormatter_StringFromPostalAddressStyle(postalAddress IPostalAddress, style PostalAddressFormatterStyle) string

Returns a postal address as a string and formatted for the specified style. Full Topic

func PostalAddress_LocalizedStringForKey

func PostalAddress_LocalizedStringForKey(key string) string

Returns the localized name for the property associated with the specified key. Full Topic

func SocialProfile_LocalizedStringForKey

func SocialProfile_LocalizedStringForKey(key string) string

Returns the localized name of the property for the specified key. Full Topic

func SocialProfile_LocalizedStringForService

func SocialProfile_LocalizedStringForService(service string) string

Returns the localized name of the specified service. Full Topic

Types

type AuthorizationStatus

type AuthorizationStatus int

An authorization status the user can grant for an app to access the specified entity type. Full Topic

const (
	AuthorizationStatusAuthorized    AuthorizationStatus = 3
	AuthorizationStatusDenied        AuthorizationStatus = 2
	AuthorizationStatusNotDetermined AuthorizationStatus = 0
	AuthorizationStatusRestricted    AuthorizationStatus = 1
)

func ContactStore_AuthorizationStatusForEntityType

func ContactStore_AuthorizationStatusForEntityType(entityType EntityType) AuthorizationStatus

Returns the current authorization status to access the contact data. Full Topic

type ChangeHistoryAddContactEvent

type ChangeHistoryAddContactEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryAddContactEventFrom

func ChangeHistoryAddContactEventFrom(ptr unsafe.Pointer) ChangeHistoryAddContactEvent

func NewChangeHistoryAddContactEvent

func NewChangeHistoryAddContactEvent() ChangeHistoryAddContactEvent

func (ChangeHistoryAddContactEvent) Contact

[Full Topic]

func (ChangeHistoryAddContactEvent) ContainerIdentifier

func (c_ ChangeHistoryAddContactEvent) ContainerIdentifier() string
[Full Topic]

func (ChangeHistoryAddContactEvent) Init

type ChangeHistoryAddGroupEvent

type ChangeHistoryAddGroupEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryAddGroupEventFrom

func ChangeHistoryAddGroupEventFrom(ptr unsafe.Pointer) ChangeHistoryAddGroupEvent

func NewChangeHistoryAddGroupEvent

func NewChangeHistoryAddGroupEvent() ChangeHistoryAddGroupEvent

func (ChangeHistoryAddGroupEvent) ContainerIdentifier

func (c_ ChangeHistoryAddGroupEvent) ContainerIdentifier() string
[Full Topic]

func (ChangeHistoryAddGroupEvent) Group

func (c_ ChangeHistoryAddGroupEvent) Group() Group
[Full Topic]

func (ChangeHistoryAddGroupEvent) Init

type ChangeHistoryAddMemberToGroupEvent

type ChangeHistoryAddMemberToGroupEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryAddMemberToGroupEventFrom

func ChangeHistoryAddMemberToGroupEventFrom(ptr unsafe.Pointer) ChangeHistoryAddMemberToGroupEvent

func NewChangeHistoryAddMemberToGroupEvent

func NewChangeHistoryAddMemberToGroupEvent() ChangeHistoryAddMemberToGroupEvent

func (ChangeHistoryAddMemberToGroupEvent) Group

[Full Topic]

func (ChangeHistoryAddMemberToGroupEvent) Init

func (ChangeHistoryAddMemberToGroupEvent) Member

[Full Topic]

type ChangeHistoryAddSubgroupToGroupEvent

type ChangeHistoryAddSubgroupToGroupEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryAddSubgroupToGroupEventFrom

func ChangeHistoryAddSubgroupToGroupEventFrom(ptr unsafe.Pointer) ChangeHistoryAddSubgroupToGroupEvent

func NewChangeHistoryAddSubgroupToGroupEvent

func NewChangeHistoryAddSubgroupToGroupEvent() ChangeHistoryAddSubgroupToGroupEvent

func (ChangeHistoryAddSubgroupToGroupEvent) Group

[Full Topic]

func (ChangeHistoryAddSubgroupToGroupEvent) Init

func (ChangeHistoryAddSubgroupToGroupEvent) Subgroup

[Full Topic]

type ChangeHistoryDeleteContactEvent

type ChangeHistoryDeleteContactEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryDeleteContactEventFrom

func ChangeHistoryDeleteContactEventFrom(ptr unsafe.Pointer) ChangeHistoryDeleteContactEvent

func NewChangeHistoryDeleteContactEvent

func NewChangeHistoryDeleteContactEvent() ChangeHistoryDeleteContactEvent

func (ChangeHistoryDeleteContactEvent) ContactIdentifier

func (c_ ChangeHistoryDeleteContactEvent) ContactIdentifier() string
[Full Topic]

func (ChangeHistoryDeleteContactEvent) Init

type ChangeHistoryDeleteGroupEvent

type ChangeHistoryDeleteGroupEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryDeleteGroupEventFrom

func ChangeHistoryDeleteGroupEventFrom(ptr unsafe.Pointer) ChangeHistoryDeleteGroupEvent

func NewChangeHistoryDeleteGroupEvent

func NewChangeHistoryDeleteGroupEvent() ChangeHistoryDeleteGroupEvent

func (ChangeHistoryDeleteGroupEvent) GroupIdentifier

func (c_ ChangeHistoryDeleteGroupEvent) GroupIdentifier() string
[Full Topic]

func (ChangeHistoryDeleteGroupEvent) Init

type ChangeHistoryDropEverythingEvent

type ChangeHistoryDropEverythingEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryDropEverythingEventFrom

func ChangeHistoryDropEverythingEventFrom(ptr unsafe.Pointer) ChangeHistoryDropEverythingEvent

func NewChangeHistoryDropEverythingEvent

func NewChangeHistoryDropEverythingEvent() ChangeHistoryDropEverythingEvent

func (ChangeHistoryDropEverythingEvent) Init

type ChangeHistoryEvent

type ChangeHistoryEvent struct {
	objc.Object
}
[Full Topic]

func ChangeHistoryEventFrom

func ChangeHistoryEventFrom(ptr unsafe.Pointer) ChangeHistoryEvent

func NewChangeHistoryEvent

func NewChangeHistoryEvent() ChangeHistoryEvent

func (ChangeHistoryEvent) AcceptEventVisitor

func (c_ ChangeHistoryEvent) AcceptEventVisitor(visitor PChangeHistoryEventVisitor)
[Full Topic]

func (ChangeHistoryEvent) AcceptEventVisitorObject

func (c_ ChangeHistoryEvent) AcceptEventVisitorObject(visitorObject objc.IObject)
[Full Topic]

func (ChangeHistoryEvent) Init

type ChangeHistoryEventVisitorObject

type ChangeHistoryEventVisitorObject struct {
	objc.Object
}

A concrete type for the PChangeHistoryEventVisitor protocol.

func (ChangeHistoryEventVisitorObject) HasVisitAddContactEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitAddContactEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitAddGroupEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitAddGroupEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitAddMemberToGroupEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitAddMemberToGroupEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitAddSubgroupToGroupEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitAddSubgroupToGroupEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitDeleteContactEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitDeleteContactEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitDeleteGroupEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitDeleteGroupEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitDropEverythingEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitDropEverythingEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitRemoveMemberFromGroupEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitRemoveMemberFromGroupEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitRemoveSubgroupFromGroupEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitRemoveSubgroupFromGroupEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitUpdateContactEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitUpdateContactEvent() bool

func (ChangeHistoryEventVisitorObject) HasVisitUpdateGroupEvent

func (c_ ChangeHistoryEventVisitorObject) HasVisitUpdateGroupEvent() bool

func (ChangeHistoryEventVisitorObject) VisitAddContactEvent

func (c_ ChangeHistoryEventVisitorObject) VisitAddContactEvent(event ChangeHistoryAddContactEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitAddGroupEvent

func (c_ ChangeHistoryEventVisitorObject) VisitAddGroupEvent(event ChangeHistoryAddGroupEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitAddMemberToGroupEvent

func (c_ ChangeHistoryEventVisitorObject) VisitAddMemberToGroupEvent(event ChangeHistoryAddMemberToGroupEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitAddSubgroupToGroupEvent

func (c_ ChangeHistoryEventVisitorObject) VisitAddSubgroupToGroupEvent(event ChangeHistoryAddSubgroupToGroupEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitDeleteContactEvent

func (c_ ChangeHistoryEventVisitorObject) VisitDeleteContactEvent(event ChangeHistoryDeleteContactEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitDeleteGroupEvent

func (c_ ChangeHistoryEventVisitorObject) VisitDeleteGroupEvent(event ChangeHistoryDeleteGroupEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitDropEverythingEvent

func (c_ ChangeHistoryEventVisitorObject) VisitDropEverythingEvent(event ChangeHistoryDropEverythingEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitRemoveMemberFromGroupEvent

func (c_ ChangeHistoryEventVisitorObject) VisitRemoveMemberFromGroupEvent(event ChangeHistoryRemoveMemberFromGroupEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitRemoveSubgroupFromGroupEvent

func (c_ ChangeHistoryEventVisitorObject) VisitRemoveSubgroupFromGroupEvent(event ChangeHistoryRemoveSubgroupFromGroupEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitUpdateContactEvent

func (c_ ChangeHistoryEventVisitorObject) VisitUpdateContactEvent(event ChangeHistoryUpdateContactEvent)
[Full Topic]

func (ChangeHistoryEventVisitorObject) VisitUpdateGroupEvent

func (c_ ChangeHistoryEventVisitorObject) VisitUpdateGroupEvent(event ChangeHistoryUpdateGroupEvent)
[Full Topic]

type ChangeHistoryFetchRequest

type ChangeHistoryFetchRequest struct {
	FetchRequest
}
[Full Topic]

func ChangeHistoryFetchRequestFrom

func ChangeHistoryFetchRequestFrom(ptr unsafe.Pointer) ChangeHistoryFetchRequest

func NewChangeHistoryFetchRequest

func NewChangeHistoryFetchRequest() ChangeHistoryFetchRequest

func (ChangeHistoryFetchRequest) AdditionalContactKeyDescriptors

func (c_ ChangeHistoryFetchRequest) AdditionalContactKeyDescriptors() []objc.Object
[Full Topic]

func (ChangeHistoryFetchRequest) ExcludedTransactionAuthors

func (c_ ChangeHistoryFetchRequest) ExcludedTransactionAuthors() []string
[Full Topic]

func (ChangeHistoryFetchRequest) IncludeGroupChanges

func (c_ ChangeHistoryFetchRequest) IncludeGroupChanges() bool
[Full Topic]

func (ChangeHistoryFetchRequest) Init

func (ChangeHistoryFetchRequest) MutableObjects

func (c_ ChangeHistoryFetchRequest) MutableObjects() bool
[Full Topic]

func (ChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors

func (c_ ChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors(value []objc.IObject)
[Full Topic]

func (ChangeHistoryFetchRequest) SetExcludedTransactionAuthors

func (c_ ChangeHistoryFetchRequest) SetExcludedTransactionAuthors(value []string)
[Full Topic]

func (ChangeHistoryFetchRequest) SetIncludeGroupChanges

func (c_ ChangeHistoryFetchRequest) SetIncludeGroupChanges(value bool)
[Full Topic]

func (ChangeHistoryFetchRequest) SetMutableObjects

func (c_ ChangeHistoryFetchRequest) SetMutableObjects(value bool)
[Full Topic]

func (ChangeHistoryFetchRequest) SetShouldUnifyResults

func (c_ ChangeHistoryFetchRequest) SetShouldUnifyResults(value bool)
[Full Topic]

func (ChangeHistoryFetchRequest) SetStartingToken

func (c_ ChangeHistoryFetchRequest) SetStartingToken(value []byte)
[Full Topic]

func (ChangeHistoryFetchRequest) ShouldUnifyResults

func (c_ ChangeHistoryFetchRequest) ShouldUnifyResults() bool
[Full Topic]

func (ChangeHistoryFetchRequest) StartingToken

func (c_ ChangeHistoryFetchRequest) StartingToken() []byte
[Full Topic]

type ChangeHistoryRemoveMemberFromGroupEvent

type ChangeHistoryRemoveMemberFromGroupEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryRemoveMemberFromGroupEventFrom

func ChangeHistoryRemoveMemberFromGroupEventFrom(ptr unsafe.Pointer) ChangeHistoryRemoveMemberFromGroupEvent

func NewChangeHistoryRemoveMemberFromGroupEvent

func NewChangeHistoryRemoveMemberFromGroupEvent() ChangeHistoryRemoveMemberFromGroupEvent

func (ChangeHistoryRemoveMemberFromGroupEvent) Group

[Full Topic]

func (ChangeHistoryRemoveMemberFromGroupEvent) Init

func (ChangeHistoryRemoveMemberFromGroupEvent) Member

[Full Topic]

type ChangeHistoryRemoveSubgroupFromGroupEvent

type ChangeHistoryRemoveSubgroupFromGroupEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func NewChangeHistoryRemoveSubgroupFromGroupEvent

func NewChangeHistoryRemoveSubgroupFromGroupEvent() ChangeHistoryRemoveSubgroupFromGroupEvent

func (ChangeHistoryRemoveSubgroupFromGroupEvent) Group

[Full Topic]

func (ChangeHistoryRemoveSubgroupFromGroupEvent) Init

func (ChangeHistoryRemoveSubgroupFromGroupEvent) Subgroup

[Full Topic]

type ChangeHistoryUpdateContactEvent

type ChangeHistoryUpdateContactEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryUpdateContactEventFrom

func ChangeHistoryUpdateContactEventFrom(ptr unsafe.Pointer) ChangeHistoryUpdateContactEvent

func NewChangeHistoryUpdateContactEvent

func NewChangeHistoryUpdateContactEvent() ChangeHistoryUpdateContactEvent

func (ChangeHistoryUpdateContactEvent) Contact

[Full Topic]

func (ChangeHistoryUpdateContactEvent) Init

type ChangeHistoryUpdateGroupEvent

type ChangeHistoryUpdateGroupEvent struct {
	ChangeHistoryEvent
}
[Full Topic]

func ChangeHistoryUpdateGroupEventFrom

func ChangeHistoryUpdateGroupEventFrom(ptr unsafe.Pointer) ChangeHistoryUpdateGroupEvent

func NewChangeHistoryUpdateGroupEvent

func NewChangeHistoryUpdateGroupEvent() ChangeHistoryUpdateGroupEvent

func (ChangeHistoryUpdateGroupEvent) Group

[Full Topic]

func (ChangeHistoryUpdateGroupEvent) Init

type Contact

type Contact struct {
	objc.Object
}

An immutable object that stores information about a single contact, such as the contact's first name, phone numbers, and addresses. Full Topic

func ContactFrom

func ContactFrom(ptr unsafe.Pointer) Contact

func ContactVCardSerialization_ContactsWithDataError

func ContactVCardSerialization_ContactsWithDataError(data []byte, error foundation.IError) []Contact

Returns the contacts from the vCard data. Full Topic

func NewContact

func NewContact() Contact

func (Contact) AreKeysAvailable

func (c_ Contact) AreKeysAvailable(keyDescriptors []objc.IObject) bool

Determines whether all contact property values for the specified keys are fetched. Full Topic

func (Contact) Birthday

func (c_ Contact) Birthday() foundation.DateComponents

A date component for the Gregorian birthday of the contact. Full Topic

func (Contact) ContactRelations

func (c_ Contact) ContactRelations() []LabeledValue

An array of labeled relations for the contact. Full Topic

func (Contact) ContactType

func (c_ Contact) ContactType() ContactType

An enum identifying the contact type. Full Topic

func (Contact) Dates

func (c_ Contact) Dates() []LabeledValue

An array containing labeled Gregorian dates. Full Topic

func (Contact) DepartmentName

func (c_ Contact) DepartmentName() string

The name of the department associated with the contact. Full Topic

func (Contact) EmailAddresses

func (c_ Contact) EmailAddresses() []LabeledValue

An array of labeled email addresses for the contact. Full Topic

func (Contact) FamilyName

func (c_ Contact) FamilyName() string

The family name of the contact. Full Topic

func (Contact) GivenName

func (c_ Contact) GivenName() string

The given name of the contact. Full Topic

func (Contact) Identifier

func (c_ Contact) Identifier() string

A value that uniquely identifies a contact on the device. Full Topic

func (Contact) ImageData

func (c_ Contact) ImageData() []byte

The profile picture of a contact. Full Topic

func (Contact) ImageDataAvailable

func (c_ Contact) ImageDataAvailable() bool

A Boolean indicating whether a contact has a profile picture. Full Topic

func (Contact) Init

func (c_ Contact) Init() Contact

func (Contact) InstantMessageAddresses

func (c_ Contact) InstantMessageAddresses() []LabeledValue

An array of labeled IM addresses for the contact. Full Topic

func (Contact) IsKeyAvailable

func (c_ Contact) IsKeyAvailable(key string) bool

Determines whether the contact property value for the specified key is fetched. Full Topic

func (Contact) IsUnifiedWithContactWithIdentifier

func (c_ Contact) IsUnifiedWithContactWithIdentifier(contactIdentifier string) bool

Returns a Boolean indicating whether the current contact is a unified contact and includes a contact with the specified identifier. Full Topic

func (Contact) JobTitle

func (c_ Contact) JobTitle() string

The contact’s job title. Full Topic

func (Contact) MiddleName

func (c_ Contact) MiddleName() string

The middle name of the contact. Full Topic

func (Contact) NamePrefix

func (c_ Contact) NamePrefix() string

The name prefix of the contact. Full Topic

func (Contact) NameSuffix

func (c_ Contact) NameSuffix() string

The name suffix of the contact. Full Topic

func (Contact) Nickname

func (c_ Contact) Nickname() string

The nickname of the contact. Full Topic

func (Contact) NonGregorianBirthday

func (c_ Contact) NonGregorianBirthday() foundation.DateComponents

A date component for the non-Gregorian birthday of the contact. Full Topic

func (Contact) Note

func (c_ Contact) Note() string

A string containing notes for the contact. Full Topic

func (Contact) OrganizationName

func (c_ Contact) OrganizationName() string

The name of the organization associated with the contact. Full Topic

func (Contact) PhoneNumbers

func (c_ Contact) PhoneNumbers() []LabeledValue

An array of labeled phone numbers for a contact. Full Topic

func (Contact) PhoneticFamilyName

func (c_ Contact) PhoneticFamilyName() string

A string for the phonetic family name of the contact. Full Topic

func (Contact) PhoneticGivenName

func (c_ Contact) PhoneticGivenName() string

The phonetic given name of the contact. Full Topic

func (Contact) PhoneticMiddleName

func (c_ Contact) PhoneticMiddleName() string

The phonetic middle name of the contact. Full Topic

func (Contact) PhoneticOrganizationName

func (c_ Contact) PhoneticOrganizationName() string

The phonetic name of the organization associated with the contact. Full Topic

func (Contact) PostalAddresses

func (c_ Contact) PostalAddresses() []LabeledValue

An array of labeled postal addresses for a contact. Full Topic

func (Contact) PreviousFamilyName

func (c_ Contact) PreviousFamilyName() string

A string for the previous family name of the contact. Full Topic

func (Contact) SocialProfiles

func (c_ Contact) SocialProfiles() []LabeledValue

An array of labeled social profiles for a contact. Full Topic

func (Contact) ThumbnailImageData

func (c_ Contact) ThumbnailImageData() []byte

The thumbnail version of the contact’s profile picture. Full Topic

func (Contact) UrlAddresses

func (c_ Contact) UrlAddresses() []LabeledValue

An array of labeled URL addresses for a contact. Full Topic

type ContactDisplayNameOrder

type ContactDisplayNameOrder int

The formatting orders for contact names component. Full Topic

const (
	ContactDisplayNameOrderFamilyNameFirst ContactDisplayNameOrder = 2
	ContactDisplayNameOrderGivenNameFirst  ContactDisplayNameOrder = 1
	ContactDisplayNameOrderUserDefault     ContactDisplayNameOrder = 0
)

func ContactFormatter_NameOrderForContact

func ContactFormatter_NameOrderForContact(contact IContact) ContactDisplayNameOrder

Returns the display name order. Full Topic

type ContactFetchRequest

type ContactFetchRequest struct {
	FetchRequest
}

An object that defines the options to use when fetching contacts. Full Topic

func ContactFetchRequestFrom

func ContactFetchRequestFrom(ptr unsafe.Pointer) ContactFetchRequest

func NewContactFetchRequest

func NewContactFetchRequest() ContactFetchRequest

func NewContactFetchRequestWithKeysToFetch

func NewContactFetchRequestWithKeysToFetch(keysToFetch []objc.IObject) ContactFetchRequest

Creates a fetch request for the specified keys. Full Topic

func (ContactFetchRequest) Init

func (ContactFetchRequest) InitWithKeysToFetch

func (c_ ContactFetchRequest) InitWithKeysToFetch(keysToFetch []objc.IObject) ContactFetchRequest

func (ContactFetchRequest) KeysToFetch

func (c_ ContactFetchRequest) KeysToFetch() []objc.Object

The properties to fetch in the returned contacts. Full Topic

func (ContactFetchRequest) MutableObjects

func (c_ ContactFetchRequest) MutableObjects() bool

A Boolean value that indicates whether to return mutable contacts. Full Topic

func (ContactFetchRequest) Predicate

func (c_ ContactFetchRequest) Predicate() foundation.Predicate

The predicate to match contacts against. Full Topic

func (ContactFetchRequest) SetKeysToFetch

func (c_ ContactFetchRequest) SetKeysToFetch(value []objc.IObject)

The properties to fetch in the returned contacts. Full Topic

func (ContactFetchRequest) SetMutableObjects

func (c_ ContactFetchRequest) SetMutableObjects(value bool)

A Boolean value that indicates whether to return mutable contacts. Full Topic

func (ContactFetchRequest) SetPredicate

func (c_ ContactFetchRequest) SetPredicate(value foundation.IPredicate)

The predicate to match contacts against. Full Topic

func (ContactFetchRequest) SetSortOrder

func (c_ ContactFetchRequest) SetSortOrder(value ContactSortOrder)

The sort order for contacts. Full Topic

func (ContactFetchRequest) SetUnifyResults

func (c_ ContactFetchRequest) SetUnifyResults(value bool)

A Boolean value that indicates whether to return linked contacts as unified contacts. Full Topic

func (ContactFetchRequest) SortOrder

func (c_ ContactFetchRequest) SortOrder() ContactSortOrder

The sort order for contacts. Full Topic

func (ContactFetchRequest) UnifyResults

func (c_ ContactFetchRequest) UnifyResults() bool

A Boolean value that indicates whether to return linked contacts as unified contacts. Full Topic

type ContactFormatter

type ContactFormatter struct {
	foundation.Formatter
}

An object that you use to format contact information before displaying it to the user. Full Topic

func ContactFormatterFrom

func ContactFormatterFrom(ptr unsafe.Pointer) ContactFormatter

func NewContactFormatter

func NewContactFormatter() ContactFormatter

func (ContactFormatter) AttributedStringFromContactDefaultAttributes

func (c_ ContactFormatter) AttributedStringFromContactDefaultAttributes(contact IContact, attributes foundation.Dictionary) foundation.AttributedString

Formats the contact name as an attributed string. Full Topic

func (ContactFormatter) Init

func (ContactFormatter) SetStyle

func (c_ ContactFormatter) SetStyle(value ContactFormatterStyle)

The formatting style for the contact name. Full Topic

func (ContactFormatter) StringFromContact

func (c_ ContactFormatter) StringFromContact(contact IContact) string

Formats the contact name. Full Topic

func (ContactFormatter) Style

The formatting style for the contact name. Full Topic

type ContactFormatterStyle

type ContactFormatterStyle int

The formatting styles for contact names. Full Topic

const (
	ContactFormatterStyleFullName         ContactFormatterStyle = 0
	ContactFormatterStylePhoneticFullName ContactFormatterStyle = 1
)

type ContactProperty

type ContactProperty struct {
	objc.Object
}

An object that represents a property of a contact. Full Topic

func ContactPropertyFrom

func ContactPropertyFrom(ptr unsafe.Pointer) ContactProperty

func NewContactProperty

func NewContactProperty() ContactProperty

func (ContactProperty) Contact

func (c_ ContactProperty) Contact() Contact

The associated contact. Full Topic

func (ContactProperty) Identifier

func (c_ ContactProperty) Identifier() string

The identifier of the labeled value in the array of labeled. Full Topic

func (ContactProperty) Init

func (c_ ContactProperty) Init() ContactProperty

func (ContactProperty) Key

func (c_ ContactProperty) Key() string

The key of the contact property. Full Topic

func (ContactProperty) Label

func (c_ ContactProperty) Label() string

The label of the labeled value of the property array. Full Topic

func (ContactProperty) Value

func (c_ ContactProperty) Value() objc.Object

The value of the property. Full Topic

type ContactRelation

type ContactRelation struct {
	objc.Object
}

An immutable object that represents the relationship between one contact to another. Full Topic

func ContactRelationFrom

func ContactRelationFrom(ptr unsafe.Pointer) ContactRelation

func ContactRelation_ContactRelationWithName

func ContactRelation_ContactRelationWithName(name string) ContactRelation

Instantiate a class instance with the name of the related contact. Full Topic

func NewContactRelation

func NewContactRelation() ContactRelation

func NewContactRelationWithName

func NewContactRelationWithName(name string) ContactRelation

Creates an object with the name of the related contact. Full Topic

func (ContactRelation) Init

func (c_ ContactRelation) Init() ContactRelation

func (ContactRelation) InitWithName

func (c_ ContactRelation) InitWithName(name string) ContactRelation

func (ContactRelation) Name

func (c_ ContactRelation) Name() string

The name of the related contact. Full Topic

type ContactSortOrder

type ContactSortOrder int

Indicates the sorting order for contacts. Full Topic

const (
	ContactSortOrderFamilyName  ContactSortOrder = 3
	ContactSortOrderGivenName   ContactSortOrder = 2
	ContactSortOrderNone        ContactSortOrder = 0
	ContactSortOrderUserDefault ContactSortOrder = 1
)

type ContactStore

type ContactStore struct {
	objc.Object
}

The object that fetches and saves contacts, groups, and containers from the user's Contacts database. Full Topic

func ContactStoreFrom

func ContactStoreFrom(ptr unsafe.Pointer) ContactStore

func NewContactStore

func NewContactStore() ContactStore

func (ContactStore) ContainersMatchingPredicateError

func (c_ ContactStore) ContainersMatchingPredicateError(predicate foundation.IPredicate, error foundation.IError) []Container

Fetches all containers matching the specified predicate. Full Topic

func (ContactStore) CurrentHistoryToken

func (c_ ContactStore) CurrentHistoryToken() []byte

The current history token. Full Topic

func (ContactStore) DefaultContainerIdentifier

func (c_ ContactStore) DefaultContainerIdentifier() string

Returns the identifier of the default container. Full Topic

func (ContactStore) EnumerateContactsWithFetchRequestErrorUsingBlock

func (c_ ContactStore) EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error foundation.IError, block func(contact Contact, stop *bool)) bool

Returns a Boolean value that indicates whether the enumeration of all contacts matching a contact fetch request executes successfully. Full Topic

func (ContactStore) EnumeratorForChangeHistoryFetchRequestError

func (c_ ContactStore) EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error foundation.IError) FetchResult

Enumerates a change history fetch request. Full Topic

func (ContactStore) EnumeratorForContactFetchRequestError

func (c_ ContactStore) EnumeratorForContactFetchRequestError(request IContactFetchRequest, error foundation.IError) FetchResult

Enumerates a contact fetch request. Full Topic

func (ContactStore) ExecuteSaveRequestError

func (c_ ContactStore) ExecuteSaveRequestError(saveRequest ISaveRequest, error foundation.IError) bool

Executes a save request and returns success or failure. Full Topic

func (ContactStore) GroupsMatchingPredicateError

func (c_ ContactStore) GroupsMatchingPredicateError(predicate foundation.IPredicate, error foundation.IError) []Group

Fetches all groups matching the specified predicate. Full Topic

func (ContactStore) Init

func (c_ ContactStore) Init() ContactStore

func (ContactStore) RequestAccessForEntityTypeCompletionHandler

func (c_ ContactStore) RequestAccessForEntityTypeCompletionHandler(entityType EntityType, completionHandler func(granted bool, error foundation.Error))

Requests access to the user's contacts. Full Topic

func (ContactStore) UnifiedContactWithIdentifierKeysToFetchError

func (c_ ContactStore) UnifiedContactWithIdentifierKeysToFetchError(identifier string, keys []objc.IObject, error foundation.IError) Contact

Fetches a unified contact for the specified contact identifier. Full Topic

func (ContactStore) UnifiedContactsMatchingPredicateKeysToFetchError

func (c_ ContactStore) UnifiedContactsMatchingPredicateKeysToFetchError(predicate foundation.IPredicate, keys []objc.IObject, error foundation.IError) []Contact

Fetches all unified contacts matching the specified predicate. Full Topic

func (ContactStore) UnifiedMeContactWithKeysToFetchError

func (c_ ContactStore) UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error foundation.IError) Contact

Fetches the unified contact that’s the me card. Full Topic

type ContactType

type ContactType int

The types a contact can be. Full Topic

const (
	ContactTypeOrganization ContactType = 1
	ContactTypePerson       ContactType = 0
)

type ContactVCardSerialization

type ContactVCardSerialization struct {
	objc.Object
}

An object you use to convert to and from a vCard representation of the user's contacts. Full Topic

func ContactVCardSerializationFrom

func ContactVCardSerializationFrom(ptr unsafe.Pointer) ContactVCardSerialization

func NewContactVCardSerialization

func NewContactVCardSerialization() ContactVCardSerialization

func (ContactVCardSerialization) Init

type ContactsUserDefaults

type ContactsUserDefaults struct {
	objc.Object
}

An object that defines the default options to use when displaying contacts. Full Topic

func ContactsUserDefaultsFrom

func ContactsUserDefaultsFrom(ptr unsafe.Pointer) ContactsUserDefaults

func ContactsUserDefaults_SharedDefaults

func ContactsUserDefaults_SharedDefaults() ContactsUserDefaults

The singleton contacts user defaults object. Full Topic

func NewContactsUserDefaults

func NewContactsUserDefaults() ContactsUserDefaults

func (ContactsUserDefaults) CountryCode

func (c_ ContactsUserDefaults) CountryCode() string

An ISO country code. Full Topic

func (ContactsUserDefaults) Init

func (ContactsUserDefaults) SortOrder

func (c_ ContactsUserDefaults) SortOrder() ContactSortOrder

Default sorting order by name. Full Topic

type Container

type Container struct {
	objc.Object
}

An immutable object that represents a collection of contacts. Full Topic

func ContainerFrom

func ContainerFrom(ptr unsafe.Pointer) Container

func NewContainer

func NewContainer() Container

func (Container) Identifier

func (c_ Container) Identifier() string

The unique identifier for a contacts container on the device. Full Topic

func (Container) Init

func (c_ Container) Init() Container

func (Container) Name

func (c_ Container) Name() string

The name of the container. Full Topic

func (Container) Type

func (c_ Container) Type() ContainerType

The type of the container. Full Topic

type ContainerType

type ContainerType int

The container may be local on the device or associated with a server account that has contacts. Full Topic

const (
	ContainerTypeCardDAV    ContainerType = 3
	ContainerTypeExchange   ContainerType = 2
	ContainerTypeLocal      ContainerType = 1
	ContainerTypeUnassigned ContainerType = 0
)

type EntityType

type EntityType int

The entities the user can grant access to. Full Topic

const (
	EntityTypeContacts EntityType = 0
)

type ErrorCode

type ErrorCode int

Error codes that may be returned when using the methods of the Contacts framework. Full Topic

const (
	ErrorCodeAuthorizationDenied              ErrorCode = 100
	ErrorCodeChangeHistoryExpired             ErrorCode = 603
	ErrorCodeChangeHistoryInvalidAnchor       ErrorCode = 604
	ErrorCodeChangeHistoryInvalidFetchRequest ErrorCode = 605
	ErrorCodeClientIdentifierCollision        ErrorCode = 602
	ErrorCodeClientIdentifierDoesNotExist     ErrorCode = 601
	ErrorCodeClientIdentifierInvalid          ErrorCode = 600
	ErrorCodeCommunicationError               ErrorCode = 1
	ErrorCodeContainmentCycle                 ErrorCode = 202
	ErrorCodeContainmentScope                 ErrorCode = 203
	ErrorCodeDataAccessError                  ErrorCode = 2
	ErrorCodeFeatureDisabledByUser            ErrorCode = 103
	ErrorCodeInsertedRecordAlreadyExists      ErrorCode = 201
	ErrorCodeNoAccessableWritableContainers   ErrorCode = 101
	ErrorCodeParentContainerNotWritable       ErrorCode = 207
	ErrorCodeParentRecordDoesNotExist         ErrorCode = 204
	ErrorCodePolicyViolation                  ErrorCode = 500
	ErrorCodePredicateInvalid                 ErrorCode = 400
	ErrorCodeRecordDoesNotExist               ErrorCode = 200
	ErrorCodeRecordIdentifierInvalid          ErrorCode = 205
	ErrorCodeRecordNotWritable                ErrorCode = 206
	ErrorCodeUnauthorizedKeys                 ErrorCode = 102
	ErrorCodeVCardMalformed                   ErrorCode = 700
	ErrorCodeVCardSummarizationError          ErrorCode = 701
	ErrorCodeValidationConfigurationError     ErrorCode = 302
	ErrorCodeValidationMultipleErrors         ErrorCode = 300
	ErrorCodeValidationTypeMismatch           ErrorCode = 301
)

type FetchRequest

type FetchRequest struct {
	objc.Object
}
[Full Topic]

func FetchRequestFrom

func FetchRequestFrom(ptr unsafe.Pointer) FetchRequest

func NewFetchRequest

func NewFetchRequest() FetchRequest

func (FetchRequest) Init

func (f_ FetchRequest) Init() FetchRequest

type FetchResult

type FetchResult struct {
	objc.Object
}
[Full Topic]

func FetchResultFrom

func FetchResultFrom(ptr unsafe.Pointer) FetchResult

func NewFetchResult

func NewFetchResult() FetchResult

func (FetchResult) CurrentHistoryToken

func (f_ FetchResult) CurrentHistoryToken() []byte
[Full Topic]

func (FetchResult) Init

func (f_ FetchResult) Init() FetchResult

func (FetchResult) Value

func (f_ FetchResult) Value() objc.Object
[Full Topic]

type Group

type Group struct {
	objc.Object
}

An immutable object that represents a group of contacts. Full Topic

func GroupFrom

func GroupFrom(ptr unsafe.Pointer) Group

func NewGroup

func NewGroup() Group

func (Group) Identifier

func (g_ Group) Identifier() string

The unique identifier for a group on the device. Full Topic

func (Group) Init

func (g_ Group) Init() Group

func (Group) Name

func (g_ Group) Name() string

The name of the group. Full Topic

type IChangeHistoryAddContactEvent

type IChangeHistoryAddContactEvent interface {
	IChangeHistoryEvent
	ContainerIdentifier() string
	Contact() Contact
}

An interface definition for the ChangeHistoryAddContactEvent class.

type IChangeHistoryAddGroupEvent

type IChangeHistoryAddGroupEvent interface {
	IChangeHistoryEvent
	ContainerIdentifier() string
	Group() Group
}

An interface definition for the ChangeHistoryAddGroupEvent class.

type IChangeHistoryAddMemberToGroupEvent

type IChangeHistoryAddMemberToGroupEvent interface {
	IChangeHistoryEvent
	Group() Group
	Member() Contact
}

An interface definition for the ChangeHistoryAddMemberToGroupEvent class.

type IChangeHistoryAddSubgroupToGroupEvent

type IChangeHistoryAddSubgroupToGroupEvent interface {
	IChangeHistoryEvent
	Subgroup() Group
	Group() Group
}

An interface definition for the ChangeHistoryAddSubgroupToGroupEvent class.

type IChangeHistoryDeleteContactEvent

type IChangeHistoryDeleteContactEvent interface {
	IChangeHistoryEvent
	ContactIdentifier() string
}

An interface definition for the ChangeHistoryDeleteContactEvent class.

type IChangeHistoryDeleteGroupEvent

type IChangeHistoryDeleteGroupEvent interface {
	IChangeHistoryEvent
	GroupIdentifier() string
}

An interface definition for the ChangeHistoryDeleteGroupEvent class.

type IChangeHistoryDropEverythingEvent

type IChangeHistoryDropEverythingEvent interface {
	IChangeHistoryEvent
}

An interface definition for the ChangeHistoryDropEverythingEvent class.

type IChangeHistoryEvent

type IChangeHistoryEvent interface {
	objc.IObject
	AcceptEventVisitor(visitor PChangeHistoryEventVisitor)
	AcceptEventVisitorObject(visitorObject objc.IObject)
}

An interface definition for the ChangeHistoryEvent class.

type IChangeHistoryFetchRequest

type IChangeHistoryFetchRequest interface {
	IFetchRequest
	MutableObjects() bool
	SetMutableObjects(value bool)
	ShouldUnifyResults() bool
	SetShouldUnifyResults(value bool)
	IncludeGroupChanges() bool
	SetIncludeGroupChanges(value bool)
	AdditionalContactKeyDescriptors() []objc.Object
	SetAdditionalContactKeyDescriptors(value []objc.IObject)
	ExcludedTransactionAuthors() []string
	SetExcludedTransactionAuthors(value []string)
	StartingToken() []byte
	SetStartingToken(value []byte)
}

An interface definition for the ChangeHistoryFetchRequest class.

type IChangeHistoryRemoveMemberFromGroupEvent

type IChangeHistoryRemoveMemberFromGroupEvent interface {
	IChangeHistoryEvent
	Group() Group
	Member() Contact
}

An interface definition for the ChangeHistoryRemoveMemberFromGroupEvent class.

type IChangeHistoryRemoveSubgroupFromGroupEvent

type IChangeHistoryRemoveSubgroupFromGroupEvent interface {
	IChangeHistoryEvent
	Subgroup() Group
	Group() Group
}

An interface definition for the ChangeHistoryRemoveSubgroupFromGroupEvent class.

type IChangeHistoryUpdateContactEvent

type IChangeHistoryUpdateContactEvent interface {
	IChangeHistoryEvent
	Contact() Contact
}

An interface definition for the ChangeHistoryUpdateContactEvent class.

type IChangeHistoryUpdateGroupEvent

type IChangeHistoryUpdateGroupEvent interface {
	IChangeHistoryEvent
	Group() Group
}

An interface definition for the ChangeHistoryUpdateGroupEvent class.

type IContact

type IContact interface {
	objc.IObject
	IsUnifiedWithContactWithIdentifier(contactIdentifier string) bool
	AreKeysAvailable(keyDescriptors []objc.IObject) bool
	IsKeyAvailable(key string) bool
	DepartmentName() string
	PostalAddresses() []LabeledValue
	ThumbnailImageData() []byte
	PhoneNumbers() []LabeledValue
	NameSuffix() string
	PhoneticFamilyName() string
	ImageData() []byte
	PhoneticGivenName() string
	NamePrefix() string
	Birthday() foundation.DateComponents
	JobTitle() string
	PreviousFamilyName() string
	ImageDataAvailable() bool
	UrlAddresses() []LabeledValue
	NonGregorianBirthday() foundation.DateComponents
	Nickname() string
	PhoneticOrganizationName() string
	ContactRelations() []LabeledValue
	Note() string
	MiddleName() string
	ContactType() ContactType
	GivenName() string
	SocialProfiles() []LabeledValue
	PhoneticMiddleName() string
	Identifier() string
	InstantMessageAddresses() []LabeledValue
	FamilyName() string
	EmailAddresses() []LabeledValue
	OrganizationName() string
	Dates() []LabeledValue
}

An interface definition for the Contact class.

type IContactFetchRequest

type IContactFetchRequest interface {
	IFetchRequest
	UnifyResults() bool
	SetUnifyResults(value bool)
	SortOrder() ContactSortOrder
	SetSortOrder(value ContactSortOrder)
	Predicate() foundation.Predicate
	SetPredicate(value foundation.IPredicate)
	KeysToFetch() []objc.Object
	SetKeysToFetch(value []objc.IObject)
	MutableObjects() bool
	SetMutableObjects(value bool)
}

An interface definition for the ContactFetchRequest class.

type IContactFormatter

type IContactFormatter interface {
	foundation.IFormatter
	StringFromContact(contact IContact) string
	AttributedStringFromContactDefaultAttributes(contact IContact, attributes foundation.Dictionary) foundation.AttributedString
	Style() ContactFormatterStyle
	SetStyle(value ContactFormatterStyle)
}

An interface definition for the ContactFormatter class.

type IContactProperty

type IContactProperty interface {
	objc.IObject
	Key() string
	Value() objc.Object
	Identifier() string
	Label() string
	Contact() Contact
}

An interface definition for the ContactProperty class.

type IContactRelation

type IContactRelation interface {
	objc.IObject
	Name() string
}

An interface definition for the ContactRelation class.

type IContactStore

type IContactStore interface {
	objc.IObject
	UnifiedContactWithIdentifierKeysToFetchError(identifier string, keys []objc.IObject, error foundation.IError) Contact
	RequestAccessForEntityTypeCompletionHandler(entityType EntityType, completionHandler func(granted bool, error foundation.Error))
	ExecuteSaveRequestError(saveRequest ISaveRequest, error foundation.IError) bool
	DefaultContainerIdentifier() string
	EnumeratorForContactFetchRequestError(request IContactFetchRequest, error foundation.IError) FetchResult
	ContainersMatchingPredicateError(predicate foundation.IPredicate, error foundation.IError) []Container
	EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error foundation.IError, block func(contact Contact, stop *bool)) bool
	UnifiedContactsMatchingPredicateKeysToFetchError(predicate foundation.IPredicate, keys []objc.IObject, error foundation.IError) []Contact
	UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error foundation.IError) Contact
	GroupsMatchingPredicateError(predicate foundation.IPredicate, error foundation.IError) []Group
	EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error foundation.IError) FetchResult
	CurrentHistoryToken() []byte
}

An interface definition for the ContactStore class.

type IContactVCardSerialization

type IContactVCardSerialization interface {
	objc.IObject
}

An interface definition for the ContactVCardSerialization class.

type IContactsUserDefaults

type IContactsUserDefaults interface {
	objc.IObject
	CountryCode() string
	SortOrder() ContactSortOrder
}

An interface definition for the ContactsUserDefaults class.

type IContainer

type IContainer interface {
	objc.IObject
	Type() ContainerType
	Identifier() string
	Name() string
}

An interface definition for the Container class.

type IFetchRequest

type IFetchRequest interface {
	objc.IObject
}

An interface definition for the FetchRequest class.

type IFetchResult

type IFetchResult interface {
	objc.IObject
	CurrentHistoryToken() []byte
	Value() objc.Object
}

An interface definition for the FetchResult class.

type IGroup

type IGroup interface {
	objc.IObject
	Identifier() string
	Name() string
}

An interface definition for the Group class.

type IInstantMessageAddress

type IInstantMessageAddress interface {
	objc.IObject
	Service() string
	Username() string
}

An interface definition for the InstantMessageAddress class.

type ILabeledValue

type ILabeledValue interface {
	objc.IObject
	Identifier() string
	Label() string
	Value() objc.Object
}

An interface definition for the LabeledValue class.

type IMutableContact

type IMutableContact interface {
	IContact
	SetNickname(value string)
	SetPreviousFamilyName(value string)
	SetPhoneticMiddleName(value string)
	SetJobTitle(value string)
	SetGivenName(value string)
	SetFamilyName(value string)
	SetPhoneticFamilyName(value string)
	SetSocialProfiles(value []ILabeledValue)
	SetBirthday(value foundation.IDateComponents)
	SetNameSuffix(value string)
	SetMiddleName(value string)
	SetContactRelations(value []ILabeledValue)
	SetPhoneNumbers(value []ILabeledValue)
	SetPhoneticOrganizationName(value string)
	SetOrganizationName(value string)
	SetPostalAddresses(value []ILabeledValue)
	SetImageData(value []byte)
	SetEmailAddresses(value []ILabeledValue)
	SetContactType(value ContactType)
	SetNote(value string)
	SetInstantMessageAddresses(value []ILabeledValue)
	SetDates(value []ILabeledValue)
	SetNonGregorianBirthday(value foundation.IDateComponents)
	SetDepartmentName(value string)
	SetUrlAddresses(value []ILabeledValue)
	SetNamePrefix(value string)
	SetPhoneticGivenName(value string)
}

An interface definition for the MutableContact class.

type IMutableGroup

type IMutableGroup interface {
	IGroup
	SetName(value string)
}

An interface definition for the MutableGroup class.

type IMutablePostalAddress

type IMutablePostalAddress interface {
	IPostalAddress
	SetState(value string)
	SetCountry(value string)
	SetCity(value string)
	SetStreet(value string)
	SetPostalCode(value string)
	SetSubLocality(value string)
	SetSubAdministrativeArea(value string)
	SetISOCountryCode(value string)
}

An interface definition for the MutablePostalAddress class.

type IPhoneNumber

type IPhoneNumber interface {
	objc.IObject
	StringValue() string
}

An interface definition for the PhoneNumber class.

type IPostalAddress

type IPostalAddress interface {
	objc.IObject
	SubLocality() string
	State() string
	SubAdministrativeArea() string
	Country() string
	ISOCountryCode() string
	City() string
	Street() string
	PostalCode() string
}

An interface definition for the PostalAddress class.

type IPostalAddressFormatter

type IPostalAddressFormatter interface {
	foundation.IFormatter
	AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress IPostalAddress, attributes foundation.Dictionary) foundation.AttributedString
	StringFromPostalAddress(postalAddress IPostalAddress) string
	Style() PostalAddressFormatterStyle
	SetStyle(value PostalAddressFormatterStyle)
}

An interface definition for the PostalAddressFormatter class.

type ISaveRequest

type ISaveRequest interface {
	objc.IObject
	DeleteContact(contact IMutableContact)
	DeleteGroup(group IMutableGroup)
	AddGroupToContainerWithIdentifier(group IMutableGroup, identifier string)
	AddMemberToGroup(contact IContact, group IGroup)
	UpdateGroup(group IMutableGroup)
	RemoveMemberFromGroup(contact IContact, group IGroup)
	AddContactToContainerWithIdentifier(contact IMutableContact, identifier string)
	AddSubgroupToGroup(subgroup IGroup, group IGroup)
	RemoveSubgroupFromGroup(subgroup IGroup, group IGroup)
	UpdateContact(contact IMutableContact)
	TransactionAuthor() string
	SetTransactionAuthor(value string)
	ShouldRefetchContacts() bool
	SetShouldRefetchContacts(value bool)
}

An interface definition for the SaveRequest class.

type ISocialProfile

type ISocialProfile interface {
	objc.IObject
	UrlString() string
	Service() string
	Username() string
	UserIdentifier() string
}

An interface definition for the SocialProfile class.

type InstantMessageAddress

type InstantMessageAddress struct {
	objc.Object
}

An immutable object representing an instant message address for the contact. Full Topic

func InstantMessageAddressFrom

func InstantMessageAddressFrom(ptr unsafe.Pointer) InstantMessageAddress

func NewInstantMessageAddress

func NewInstantMessageAddress() InstantMessageAddress

func NewInstantMessageAddressWithUsernameService

func NewInstantMessageAddressWithUsernameService(username string, service string) InstantMessageAddress

Returns a CNInstantMessageAddress object initialized with the specified user name and service. Full Topic

func (InstantMessageAddress) Init

func (InstantMessageAddress) InitWithUsernameService

func (i_ InstantMessageAddress) InitWithUsernameService(username string, service string) InstantMessageAddress

func (InstantMessageAddress) Service

func (i_ InstantMessageAddress) Service() string

The name of the instant message address service. Full Topic

func (InstantMessageAddress) Username

func (i_ InstantMessageAddress) Username() string

The user name for instant message service address. Full Topic

type LabeledValue

type LabeledValue struct {
	objc.Object
}

An immutable object that combines a contact property value with a label that describes that property. Full Topic

func LabeledValueFrom

func LabeledValueFrom(ptr unsafe.Pointer) LabeledValue

func LabeledValue_LabeledValueBySettingLabel

func LabeledValue_LabeledValueBySettingLabel(label string) LabeledValue

Returns a labeled value object with an existing value and identifier. Full Topic

func LabeledValue_LabeledValueBySettingLabelValue

func LabeledValue_LabeledValueBySettingLabelValue(label string, value objc.IObject) LabeledValue

Returns a labeled value object with the specified label and value with the existing identifier. Full Topic

func LabeledValue_LabeledValueBySettingValue

func LabeledValue_LabeledValueBySettingValue(value objc.IObject) LabeledValue

Returns a new value for an existing label and identifier. Full Topic

func LabeledValue_LabeledValueWithLabelValue

func LabeledValue_LabeledValueWithLabelValue(label string, value objc.IObject) LabeledValue

Returns a new labeled value identifier. Full Topic

func NewLabeledValue

func NewLabeledValue() LabeledValue

func NewLabeledValueWithLabelValue

func NewLabeledValueWithLabelValue(label string, value objc.IObject) LabeledValue

Returns a new labeled value identifier. Full Topic

func (LabeledValue) Identifier

func (l_ LabeledValue) Identifier() string

A unique identifier for the labeled value object. Full Topic

func (LabeledValue) Init

func (l_ LabeledValue) Init() LabeledValue

func (LabeledValue) InitWithLabelValue

func (l_ LabeledValue) InitWithLabelValue(label string, value objc.IObject) LabeledValue

func (LabeledValue) Label

func (l_ LabeledValue) Label() string

The label for a contact property value. Full Topic

func (LabeledValue) LabeledValueBySettingLabel

func (l_ LabeledValue) LabeledValueBySettingLabel(label string) LabeledValue

func (LabeledValue) LabeledValueBySettingLabelValue

func (l_ LabeledValue) LabeledValueBySettingLabelValue(label string, value objc.IObject) LabeledValue

func (LabeledValue) LabeledValueBySettingValue

func (l_ LabeledValue) LabeledValueBySettingValue(value objc.IObject) LabeledValue

func (LabeledValue) Value

func (l_ LabeledValue) Value() objc.Object

A contact property value. Full Topic

type MutableContact

type MutableContact struct {
	Contact
}

A mutable object that stores information about a single contact, such as the contact's first name, phone numbers, and addresses. Full Topic

func MutableContactFrom

func MutableContactFrom(ptr unsafe.Pointer) MutableContact

func NewMutableContact

func NewMutableContact() MutableContact

func (MutableContact) Init

func (m_ MutableContact) Init() MutableContact

func (MutableContact) SetBirthday

func (m_ MutableContact) SetBirthday(value foundation.IDateComponents)

A date component for the Gregorian birthday of the contact. Full Topic

func (MutableContact) SetContactRelations

func (m_ MutableContact) SetContactRelations(value []ILabeledValue)

An array of labeled contact relations for the contact. Full Topic

func (MutableContact) SetContactType

func (m_ MutableContact) SetContactType(value ContactType)

An enum identifying the contact type. Full Topic

func (MutableContact) SetDates

func (m_ MutableContact) SetDates(value []ILabeledValue)

An array containing labeled Gregorian dates. Full Topic

func (MutableContact) SetDepartmentName

func (m_ MutableContact) SetDepartmentName(value string)

The name of the department associated with the contact. Full Topic

func (MutableContact) SetEmailAddresses

func (m_ MutableContact) SetEmailAddresses(value []ILabeledValue)

An array of labeled email addresses for the contact. Full Topic

func (MutableContact) SetFamilyName

func (m_ MutableContact) SetFamilyName(value string)

The family name of the contact. Full Topic

func (MutableContact) SetGivenName

func (m_ MutableContact) SetGivenName(value string)

The given name of the contact. Full Topic

func (MutableContact) SetImageData

func (m_ MutableContact) SetImageData(value []byte)

The profile picture of a contact. Full Topic

func (MutableContact) SetInstantMessageAddresses

func (m_ MutableContact) SetInstantMessageAddresses(value []ILabeledValue)

An array of labeled IM addresses for the contact. Full Topic

func (MutableContact) SetJobTitle

func (m_ MutableContact) SetJobTitle(value string)

The contact’s job title. Full Topic

func (MutableContact) SetMiddleName

func (m_ MutableContact) SetMiddleName(value string)

The middle name of the contact. Full Topic

func (MutableContact) SetNamePrefix

func (m_ MutableContact) SetNamePrefix(value string)

The name prefix of the contact. Full Topic

func (MutableContact) SetNameSuffix

func (m_ MutableContact) SetNameSuffix(value string)

The name suffix of the contact. Full Topic

func (MutableContact) SetNickname

func (m_ MutableContact) SetNickname(value string)

The nickname of the contact. Full Topic

func (MutableContact) SetNonGregorianBirthday

func (m_ MutableContact) SetNonGregorianBirthday(value foundation.IDateComponents)

A date component for the non-Gregorian birthday of the contact. Full Topic

func (MutableContact) SetNote

func (m_ MutableContact) SetNote(value string)

A string containing notes for the contact. Full Topic

func (MutableContact) SetOrganizationName

func (m_ MutableContact) SetOrganizationName(value string)

The name of the organization associated with the contact. Full Topic

func (MutableContact) SetPhoneNumbers

func (m_ MutableContact) SetPhoneNumbers(value []ILabeledValue)

An array of labeled phone numbers for a contact. Full Topic

func (MutableContact) SetPhoneticFamilyName

func (m_ MutableContact) SetPhoneticFamilyName(value string)

The phonetic family name of the contact. Full Topic

func (MutableContact) SetPhoneticGivenName

func (m_ MutableContact) SetPhoneticGivenName(value string)

The phonetic given name of the contact. Full Topic

func (MutableContact) SetPhoneticMiddleName

func (m_ MutableContact) SetPhoneticMiddleName(value string)

The phonetic middle name of the contact. Full Topic

func (MutableContact) SetPhoneticOrganizationName

func (m_ MutableContact) SetPhoneticOrganizationName(value string)

The phonetic name of the organization associated with the contact. Full Topic

func (MutableContact) SetPostalAddresses

func (m_ MutableContact) SetPostalAddresses(value []ILabeledValue)

An array of labeled postal addresses for a contact. Full Topic

func (MutableContact) SetPreviousFamilyName

func (m_ MutableContact) SetPreviousFamilyName(value string)

The previous family name of the contact. Full Topic

func (MutableContact) SetSocialProfiles

func (m_ MutableContact) SetSocialProfiles(value []ILabeledValue)

An array of labeled social profiles for a contact. Full Topic

func (MutableContact) SetUrlAddresses

func (m_ MutableContact) SetUrlAddresses(value []ILabeledValue)

An array of labeled URL addresses for a contact. Full Topic

type MutableGroup

type MutableGroup struct {
	Group
}

A mutable object that represents a group of contacts. Full Topic

func MutableGroupFrom

func MutableGroupFrom(ptr unsafe.Pointer) MutableGroup

func NewMutableGroup

func NewMutableGroup() MutableGroup

func (MutableGroup) Init

func (m_ MutableGroup) Init() MutableGroup

func (MutableGroup) SetName

func (m_ MutableGroup) SetName(value string)

The name of the group. Full Topic

type MutablePostalAddress

type MutablePostalAddress struct {
	PostalAddress
}

A mutable representation of the postal address for a contact. Full Topic

func MutablePostalAddressFrom

func MutablePostalAddressFrom(ptr unsafe.Pointer) MutablePostalAddress

func NewMutablePostalAddress

func NewMutablePostalAddress() MutablePostalAddress

func (MutablePostalAddress) Init

func (MutablePostalAddress) SetCity

func (m_ MutablePostalAddress) SetCity(value string)

The city name of the address. Full Topic

func (MutablePostalAddress) SetCountry

func (m_ MutablePostalAddress) SetCountry(value string)

The country or region name of the address. Full Topic

func (MutablePostalAddress) SetISOCountryCode

func (m_ MutablePostalAddress) SetISOCountryCode(value string)

The ISO country code, using the ISO 3166-1 alpha-2 standard. Full Topic

func (MutablePostalAddress) SetPostalCode

func (m_ MutablePostalAddress) SetPostalCode(value string)

The postal code of the address. Full Topic

func (MutablePostalAddress) SetState

func (m_ MutablePostalAddress) SetState(value string)

The state name of the address. Full Topic

func (MutablePostalAddress) SetStreet

func (m_ MutablePostalAddress) SetStreet(value string)

The street name of the address. Full Topic

func (MutablePostalAddress) SetSubAdministrativeArea

func (m_ MutablePostalAddress) SetSubAdministrativeArea(value string)

The subadministrative area (such as a county or other region) in a postal address. Full Topic

func (MutablePostalAddress) SetSubLocality

func (m_ MutablePostalAddress) SetSubLocality(value string)

Additional information associated with the location, typically defined at the city or town level, in a postal address. Full Topic

type PChangeHistoryEventVisitor

type PChangeHistoryEventVisitor interface {
	// optional
	VisitDropEverythingEvent(event ChangeHistoryDropEverythingEvent)
	HasVisitDropEverythingEvent() bool

	// optional
	VisitAddMemberToGroupEvent(event ChangeHistoryAddMemberToGroupEvent)
	HasVisitAddMemberToGroupEvent() bool

	// optional
	VisitRemoveSubgroupFromGroupEvent(event ChangeHistoryRemoveSubgroupFromGroupEvent)
	HasVisitRemoveSubgroupFromGroupEvent() bool

	// optional
	VisitDeleteContactEvent(event ChangeHistoryDeleteContactEvent)
	HasVisitDeleteContactEvent() bool

	// optional
	VisitAddSubgroupToGroupEvent(event ChangeHistoryAddSubgroupToGroupEvent)
	HasVisitAddSubgroupToGroupEvent() bool

	// optional
	VisitUpdateGroupEvent(event ChangeHistoryUpdateGroupEvent)
	HasVisitUpdateGroupEvent() bool

	// optional
	VisitUpdateContactEvent(event ChangeHistoryUpdateContactEvent)
	HasVisitUpdateContactEvent() bool

	// optional
	VisitRemoveMemberFromGroupEvent(event ChangeHistoryRemoveMemberFromGroupEvent)
	HasVisitRemoveMemberFromGroupEvent() bool

	// optional
	VisitAddContactEvent(event ChangeHistoryAddContactEvent)
	HasVisitAddContactEvent() bool

	// optional
	VisitDeleteGroupEvent(event ChangeHistoryDeleteGroupEvent)
	HasVisitDeleteGroupEvent() bool

	// optional
	VisitAddGroupEvent(event ChangeHistoryAddGroupEvent)
	HasVisitAddGroupEvent() bool
}
[Full Topic]

type PhoneNumber

type PhoneNumber struct {
	objc.Object
}

An immutable object representing a phone number for a contact. Full Topic

func NewPhoneNumber

func NewPhoneNumber() PhoneNumber

func NewPhoneNumberWithStringValue

func NewPhoneNumberWithStringValue(string_ string) PhoneNumber

Returns a new phone number object initialized with the specified phone number string. Full Topic

func PhoneNumberFrom

func PhoneNumberFrom(ptr unsafe.Pointer) PhoneNumber

func PhoneNumber_PhoneNumberWithStringValue

func PhoneNumber_PhoneNumberWithStringValue(stringValue string) PhoneNumber

Returns a new phone number object initialized with the specified phone number string. Full Topic

func (PhoneNumber) Init

func (p_ PhoneNumber) Init() PhoneNumber

func (PhoneNumber) InitWithStringValue

func (p_ PhoneNumber) InitWithStringValue(string_ string) PhoneNumber

func (PhoneNumber) StringValue

func (p_ PhoneNumber) StringValue() string

The string value of the phone number. Full Topic

type PostalAddress

type PostalAddress struct {
	objc.Object
}

An immutable representation of the postal address for a contact. Full Topic

func NewPostalAddress

func NewPostalAddress() PostalAddress

func PostalAddressFrom

func PostalAddressFrom(ptr unsafe.Pointer) PostalAddress

func (PostalAddress) City

func (p_ PostalAddress) City() string

The city name in a postal address. Full Topic

func (PostalAddress) Country

func (p_ PostalAddress) Country() string

The country or region name in a postal address. Full Topic

func (PostalAddress) ISOCountryCode

func (p_ PostalAddress) ISOCountryCode() string

The ISO country code for the country or region in a postal address, using the ISO 3166-1 alpha-2 standard. Full Topic

func (PostalAddress) Init

func (p_ PostalAddress) Init() PostalAddress

func (PostalAddress) PostalCode

func (p_ PostalAddress) PostalCode() string

The postal code in a postal address. Full Topic

func (PostalAddress) State

func (p_ PostalAddress) State() string

The state name in a postal address. Full Topic

func (PostalAddress) Street

func (p_ PostalAddress) Street() string

The street name in a postal address. Full Topic

func (PostalAddress) SubAdministrativeArea

func (p_ PostalAddress) SubAdministrativeArea() string

The subadministrative area (such as a county or other region) in a postal address. Full Topic

func (PostalAddress) SubLocality

func (p_ PostalAddress) SubLocality() string

Additional information associated with the location, typically defined at the city or town level, in a postal address. Full Topic

type PostalAddressFormatter

type PostalAddressFormatter struct {
	foundation.Formatter
}

An object that you use to format a contact's postal addresses. Full Topic

func NewPostalAddressFormatter

func NewPostalAddressFormatter() PostalAddressFormatter

func PostalAddressFormatterFrom

func PostalAddressFormatterFrom(ptr unsafe.Pointer) PostalAddressFormatter

func (PostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes

func (p_ PostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress IPostalAddress, attributes foundation.Dictionary) foundation.AttributedString

Returns a formatted postal address as an attributed string. Full Topic

func (PostalAddressFormatter) Init

func (PostalAddressFormatter) SetStyle

The style to apply when formatting strings. Full Topic

func (PostalAddressFormatter) StringFromPostalAddress

func (p_ PostalAddressFormatter) StringFromPostalAddress(postalAddress IPostalAddress) string

Returns a formatted postal address. Full Topic

func (PostalAddressFormatter) Style

The style to apply when formatting strings. Full Topic

type PostalAddressFormatterStyle

type PostalAddressFormatterStyle int

Constants for postal formatting styles. Full Topic

const (
	PostalAddressFormatterStyleMailingAddress PostalAddressFormatterStyle = 0
)

type SaveRequest

type SaveRequest struct {
	objc.Object
}

An object that collects the changes you want to save to the user's contacts database. Full Topic

func NewSaveRequest

func NewSaveRequest() SaveRequest

func SaveRequestFrom

func SaveRequestFrom(ptr unsafe.Pointer) SaveRequest

func (SaveRequest) AddContactToContainerWithIdentifier

func (s_ SaveRequest) AddContactToContainerWithIdentifier(contact IMutableContact, identifier string)

Adds the specified contact to the contact store. Full Topic

func (SaveRequest) AddGroupToContainerWithIdentifier

func (s_ SaveRequest) AddGroupToContainerWithIdentifier(group IMutableGroup, identifier string)

Adds a group to the contact store. Full Topic

func (SaveRequest) AddMemberToGroup

func (s_ SaveRequest) AddMemberToGroup(contact IContact, group IGroup)

Adds a contact as a member of a group. Full Topic

func (SaveRequest) AddSubgroupToGroup

func (s_ SaveRequest) AddSubgroupToGroup(subgroup IGroup, group IGroup)

Add the specified group to a parent group. Full Topic

func (SaveRequest) DeleteContact

func (s_ SaveRequest) DeleteContact(contact IMutableContact)

Deletes a contact from the contact store. Full Topic

func (SaveRequest) DeleteGroup

func (s_ SaveRequest) DeleteGroup(group IMutableGroup)

Deletes a group from the contact store. Full Topic

func (SaveRequest) Init

func (s_ SaveRequest) Init() SaveRequest

func (SaveRequest) RemoveMemberFromGroup

func (s_ SaveRequest) RemoveMemberFromGroup(contact IContact, group IGroup)

Removes a contact as a member of a group. Full Topic

func (SaveRequest) RemoveSubgroupFromGroup

func (s_ SaveRequest) RemoveSubgroupFromGroup(subgroup IGroup, group IGroup)

Remove a subgroup from the specified parent group. Full Topic

func (SaveRequest) SetShouldRefetchContacts

func (s_ SaveRequest) SetShouldRefetchContacts(value bool)
[Full Topic]

func (SaveRequest) SetTransactionAuthor

func (s_ SaveRequest) SetTransactionAuthor(value string)
[Full Topic]

func (SaveRequest) ShouldRefetchContacts

func (s_ SaveRequest) ShouldRefetchContacts() bool
[Full Topic]

func (SaveRequest) TransactionAuthor

func (s_ SaveRequest) TransactionAuthor() string
[Full Topic]

func (SaveRequest) UpdateContact

func (s_ SaveRequest) UpdateContact(contact IMutableContact)

Updates an existing contact in the contact store. Full Topic

func (SaveRequest) UpdateGroup

func (s_ SaveRequest) UpdateGroup(group IMutableGroup)

Updates an existing group in the contact store. Full Topic

type SocialProfile

type SocialProfile struct {
	objc.Object
}

An immutable object that represents one of the user's social profiles. Full Topic

func NewSocialProfile

func NewSocialProfile() SocialProfile

func NewSocialProfileWithUrlStringUsernameUserIdentifierService

func NewSocialProfileWithUrlStringUsernameUserIdentifierService(urlString string, username string, userIdentifier string, service string) SocialProfile

Initializes a new social profile object with the specified URL. Full Topic

func SocialProfileFrom

func SocialProfileFrom(ptr unsafe.Pointer) SocialProfile

func (SocialProfile) Init

func (s_ SocialProfile) Init() SocialProfile

func (SocialProfile) InitWithUrlStringUsernameUserIdentifierService

func (s_ SocialProfile) InitWithUrlStringUsernameUserIdentifierService(urlString string, username string, userIdentifier string, service string) SocialProfile

func (SocialProfile) Service

func (s_ SocialProfile) Service() string

The social profile’s service name. Full Topic

func (SocialProfile) UrlString

func (s_ SocialProfile) UrlString() string

The URL associated with the social profile. Full Topic

func (SocialProfile) UserIdentifier

func (s_ SocialProfile) UserIdentifier() string

The service’s user identifier associated with the social profile. Full Topic

func (SocialProfile) Username

func (s_ SocialProfile) Username() string

The user name for the social profile. Full Topic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL