Documentation
¶
Overview ¶
Package contacts provides a fluent Go API over the macOS Contacts framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Errors ¶
Failing calls return errors carrying the Objective-C error domain and code. Match them against this package's Err… sentinel values with errors.Is, or inspect domain, code, and Apple's prose via errors.As with *errkit.Error.
Types ¶
Each base type below lists the concrete types you construct and pass where the base is accepted:
- ChangeHistoryEvent: ChangeHistoryAddContactEvent, ChangeHistoryAddGroupEvent, ChangeHistoryAddMemberToGroupEvent, ChangeHistoryAddSubgroupToGroupEvent, ChangeHistoryDeleteContactEvent, ChangeHistoryDeleteGroupEvent, ChangeHistoryDropEverythingEvent, ChangeHistoryRemoveMemberFromGroupEvent, ChangeHistoryRemoveSubgroupFromGroupEvent, ChangeHistoryUpdateContactEvent, ChangeHistoryUpdateGroupEvent
- Contact: MutableContact
- FetchRequest: ChangeHistoryFetchRequest, ContactFetchRequest
- Group: MutableGroup
- PostalAddress: MutablePostalAddress
Index ¶
- Variables
- func AttributedStringFromContactStyleDefaultAttributes(contact *Contact, style ContactFormatterStyle, attributes obj.Object) *foundation.AttributedString
- func AttributedStringFromPostalAddressStyleWithDefaultAttributes(postalAddress *PostalAddress, style PostalAddressFormatterStyle, ...) *foundation.AttributedString
- func CNContactBirthdayKey() obj.Object
- func CNContactDatesKey() obj.Object
- func CNContactDepartmentNameKey() obj.Object
- func CNContactEmailAddressesKey() obj.Object
- func CNContactFamilyNameKey() obj.Object
- func CNContactGivenNameKey() obj.Object
- func CNContactIdentifierKey() obj.Object
- func CNContactImageDataAvailableKey() obj.Object
- func CNContactImageDataKey() obj.Object
- func CNContactInstantMessageAddressesKey() obj.Object
- func CNContactJobTitleKey() obj.Object
- func CNContactMiddleNameKey() obj.Object
- func CNContactNamePrefixKey() obj.Object
- func CNContactNameSuffixKey() obj.Object
- func CNContactNicknameKey() obj.Object
- func CNContactNonGregorianBirthdayKey() obj.Object
- func CNContactNoteKey() obj.Object
- func CNContactOrganizationNameKey() obj.Object
- func CNContactPhoneNumbersKey() obj.Object
- func CNContactPhoneticFamilyNameKey() obj.Object
- func CNContactPhoneticGivenNameKey() obj.Object
- func CNContactPhoneticMiddleNameKey() obj.Object
- func CNContactPhoneticOrganizationNameKey() obj.Object
- func CNContactPostalAddressesKey() obj.Object
- func CNContactPreviousFamilyNameKey() obj.Object
- func CNContactPropertyAttribute() obj.Object
- func CNContactPropertyNotFetchedExceptionName() obj.Object
- func CNContactRelationsKey() obj.Object
- func CNContactSocialProfilesKey() obj.Object
- func CNContactStoreDidChangeNotification() obj.Object
- func CNContactThumbnailImageDataKey() obj.Object
- func CNContactTypeKey() obj.Object
- func CNContactUrlAddressesKey() obj.Object
- func CNContainerIdentifierKey() obj.Object
- func CNContainerNameKey() obj.Object
- func CNContainerTypeKey() obj.Object
- func CNErrorDomain() obj.Object
- func CNErrorUserInfoAffectedRecordIdentifiersKey() obj.Object
- func CNErrorUserInfoAffectedRecordsKey() obj.Object
- func CNErrorUserInfoKeyPathsKey() obj.Object
- func CNErrorUserInfoValidationErrorsKey() obj.Object
- func CNGroupIdentifierKey() obj.Object
- func CNGroupNameKey() obj.Object
- func CNInstantMessageAddressLocalizedStringForKey(key string) string
- func CNInstantMessageAddressServiceKey() obj.Object
- func CNInstantMessageAddressUsernameKey() obj.Object
- func CNInstantMessageServiceAIM() obj.Object
- func CNInstantMessageServiceFacebook() obj.Object
- func CNInstantMessageServiceGaduGadu() obj.Object
- func CNInstantMessageServiceGoogleTalk() obj.Object
- func CNInstantMessageServiceICQ() obj.Object
- func CNInstantMessageServiceJabber() obj.Object
- func CNInstantMessageServiceMSN() obj.Object
- func CNInstantMessageServiceQQ() obj.Object
- func CNInstantMessageServiceSkype() obj.Object
- func CNInstantMessageServiceYahoo() obj.Object
- func CNLabelContactRelationAssistant() obj.Object
- func CNLabelContactRelationAunt() obj.Object
- func CNLabelContactRelationAuntFathersBrothersWife() obj.Object
- func CNLabelContactRelationAuntFathersElderBrothersWife() obj.Object
- func CNLabelContactRelationAuntFathersElderSister() obj.Object
- func CNLabelContactRelationAuntFathersSister() obj.Object
- func CNLabelContactRelationAuntFathersYoungerBrothersWife() obj.Object
- func CNLabelContactRelationAuntFathersYoungerSister() obj.Object
- func CNLabelContactRelationAuntMothersBrothersWife() obj.Object
- func CNLabelContactRelationAuntMothersElderSister() obj.Object
- func CNLabelContactRelationAuntMothersSister() obj.Object
- func CNLabelContactRelationAuntMothersYoungerSister() obj.Object
- func CNLabelContactRelationAuntParentsElderSister() obj.Object
- func CNLabelContactRelationAuntParentsSister() obj.Object
- func CNLabelContactRelationAuntParentsYoungerSister() obj.Object
- func CNLabelContactRelationBoyfriend() obj.Object
- func CNLabelContactRelationBrother() obj.Object
- func CNLabelContactRelationBrotherInLaw() obj.Object
- func CNLabelContactRelationBrotherInLawElderSistersHusband() obj.Object
- func CNLabelContactRelationBrotherInLawHusbandsBrother() obj.Object
- func CNLabelContactRelationBrotherInLawHusbandsSistersHusband() obj.Object
- func CNLabelContactRelationBrotherInLawSistersHusband() obj.Object
- func CNLabelContactRelationBrotherInLawSpousesBrother() obj.Object
- func CNLabelContactRelationBrotherInLawWifesBrother() obj.Object
- func CNLabelContactRelationBrotherInLawWifesSistersHusband() obj.Object
- func CNLabelContactRelationBrotherInLawYoungerSistersHusband() obj.Object
- func CNLabelContactRelationChild() obj.Object
- func CNLabelContactRelationChildInLaw() obj.Object
- func CNLabelContactRelationCoBrotherInLaw() obj.Object
- func CNLabelContactRelationCoFatherInLaw() obj.Object
- func CNLabelContactRelationCoMotherInLaw() obj.Object
- func CNLabelContactRelationCoParentInLaw() obj.Object
- func CNLabelContactRelationCoSiblingInLaw() obj.Object
- func CNLabelContactRelationCoSisterInLaw() obj.Object
- func CNLabelContactRelationColleague() obj.Object
- func CNLabelContactRelationCousin() obj.Object
- func CNLabelContactRelationCousinFathersBrothersDaughter() obj.Object
- func CNLabelContactRelationCousinFathersBrothersSon() obj.Object
- func CNLabelContactRelationCousinFathersSistersDaughter() obj.Object
- func CNLabelContactRelationCousinFathersSistersSon() obj.Object
- func CNLabelContactRelationCousinGrandparentsSiblingsChild() obj.Object
- func CNLabelContactRelationCousinGrandparentsSiblingsDaughter() obj.Object
- func CNLabelContactRelationCousinGrandparentsSiblingsSon() obj.Object
- func CNLabelContactRelationCousinMothersBrothersDaughter() obj.Object
- func CNLabelContactRelationCousinMothersBrothersSon() obj.Object
- func CNLabelContactRelationCousinMothersSistersDaughter() obj.Object
- func CNLabelContactRelationCousinMothersSistersSon() obj.Object
- func CNLabelContactRelationCousinOrSiblingsChild() obj.Object
- func CNLabelContactRelationCousinParentsSiblingsChild() obj.Object
- func CNLabelContactRelationCousinParentsSiblingsDaughter() obj.Object
- func CNLabelContactRelationCousinParentsSiblingsSon() obj.Object
- func CNLabelContactRelationDaughter() obj.Object
- func CNLabelContactRelationDaughterInLaw() obj.Object
- func CNLabelContactRelationDaughterInLawOrSisterInLaw() obj.Object
- func CNLabelContactRelationDaughterInLawOrStepdaughter() obj.Object
- func CNLabelContactRelationElderBrother() obj.Object
- func CNLabelContactRelationElderBrotherInLaw() obj.Object
- func CNLabelContactRelationElderCousin() obj.Object
- func CNLabelContactRelationElderCousinFathersBrothersDaughter() obj.Object
- func CNLabelContactRelationElderCousinFathersBrothersSon() obj.Object
- func CNLabelContactRelationElderCousinFathersSistersDaughter() obj.Object
- func CNLabelContactRelationElderCousinFathersSistersSon() obj.Object
- func CNLabelContactRelationElderCousinMothersBrothersDaughter() obj.Object
- func CNLabelContactRelationElderCousinMothersBrothersSon() obj.Object
- func CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter() obj.Object
- func CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon() obj.Object
- func CNLabelContactRelationElderCousinMothersSistersDaughter() obj.Object
- func CNLabelContactRelationElderCousinMothersSistersSon() obj.Object
- func CNLabelContactRelationElderCousinParentsSiblingsDaughter() obj.Object
- func CNLabelContactRelationElderCousinParentsSiblingsSon() obj.Object
- func CNLabelContactRelationElderSibling() obj.Object
- func CNLabelContactRelationElderSiblingInLaw() obj.Object
- func CNLabelContactRelationElderSister() obj.Object
- func CNLabelContactRelationElderSisterInLaw() obj.Object
- func CNLabelContactRelationEldestBrother() obj.Object
- func CNLabelContactRelationEldestSister() obj.Object
- func CNLabelContactRelationFather() obj.Object
- func CNLabelContactRelationFatherInLaw() obj.Object
- func CNLabelContactRelationFatherInLawHusbandsFather() obj.Object
- func CNLabelContactRelationFatherInLawOrStepfather() obj.Object
- func CNLabelContactRelationFatherInLawWifesFather() obj.Object
- func CNLabelContactRelationFemaleCousin() obj.Object
- func CNLabelContactRelationFemaleFriend() obj.Object
- func CNLabelContactRelationFemalePartner() obj.Object
- func CNLabelContactRelationFriend() obj.Object
- func CNLabelContactRelationGirlfriend() obj.Object
- func CNLabelContactRelationGirlfriendOrBoyfriend() obj.Object
- func CNLabelContactRelationGrandaunt() obj.Object
- func CNLabelContactRelationGrandchild() obj.Object
- func CNLabelContactRelationGrandchildOrSiblingsChild() obj.Object
- func CNLabelContactRelationGranddaughter() obj.Object
- func CNLabelContactRelationGranddaughterDaughtersDaughter() obj.Object
- func CNLabelContactRelationGranddaughterOrNiece() obj.Object
- func CNLabelContactRelationGranddaughterSonsDaughter() obj.Object
- func CNLabelContactRelationGrandfather() obj.Object
- func CNLabelContactRelationGrandfatherFathersFather() obj.Object
- func CNLabelContactRelationGrandfatherMothersFather() obj.Object
- func CNLabelContactRelationGrandmother() obj.Object
- func CNLabelContactRelationGrandmotherFathersMother() obj.Object
- func CNLabelContactRelationGrandmotherMothersMother() obj.Object
- func CNLabelContactRelationGrandnephew() obj.Object
- func CNLabelContactRelationGrandnephewBrothersGrandson() obj.Object
- func CNLabelContactRelationGrandnephewSistersGrandson() obj.Object
- func CNLabelContactRelationGrandniece() obj.Object
- func CNLabelContactRelationGrandnieceBrothersGranddaughter() obj.Object
- func CNLabelContactRelationGrandnieceSistersGranddaughter() obj.Object
- func CNLabelContactRelationGrandparent() obj.Object
- func CNLabelContactRelationGrandson() obj.Object
- func CNLabelContactRelationGrandsonDaughtersSon() obj.Object
- func CNLabelContactRelationGrandsonOrNephew() obj.Object
- func CNLabelContactRelationGrandsonSonsSon() obj.Object
- func CNLabelContactRelationGranduncle() obj.Object
- func CNLabelContactRelationGreatGrandchild() obj.Object
- func CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild() obj.Object
- func CNLabelContactRelationGreatGranddaughter() obj.Object
- func CNLabelContactRelationGreatGrandfather() obj.Object
- func CNLabelContactRelationGreatGrandmother() obj.Object
- func CNLabelContactRelationGreatGrandparent() obj.Object
- func CNLabelContactRelationGreatGrandson() obj.Object
- func CNLabelContactRelationHusband() obj.Object
- func CNLabelContactRelationMaleCousin() obj.Object
- func CNLabelContactRelationMaleFriend() obj.Object
- func CNLabelContactRelationMalePartner() obj.Object
- func CNLabelContactRelationManager() obj.Object
- func CNLabelContactRelationMother() obj.Object
- func CNLabelContactRelationMotherInLaw() obj.Object
- func CNLabelContactRelationMotherInLawHusbandsMother() obj.Object
- func CNLabelContactRelationMotherInLawOrStepmother() obj.Object
- func CNLabelContactRelationMotherInLawWifesMother() obj.Object
- func CNLabelContactRelationNephew() obj.Object
- func CNLabelContactRelationNephewBrothersSon() obj.Object
- func CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon() obj.Object
- func CNLabelContactRelationNephewOrCousin() obj.Object
- func CNLabelContactRelationNephewSistersSon() obj.Object
- func CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon() obj.Object
- func CNLabelContactRelationNiece() obj.Object
- func CNLabelContactRelationNieceBrothersDaughter() obj.Object
- func CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter() obj.Object
- func CNLabelContactRelationNieceOrCousin() obj.Object
- func CNLabelContactRelationNieceSistersDaughter() obj.Object
- func CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter() obj.Object
- func CNLabelContactRelationParent() obj.Object
- func CNLabelContactRelationParentInLaw() obj.Object
- func CNLabelContactRelationParentsElderSibling() obj.Object
- func CNLabelContactRelationParentsSibling() obj.Object
- func CNLabelContactRelationParentsSiblingFathersElderSibling() obj.Object
- func CNLabelContactRelationParentsSiblingFathersSibling() obj.Object
- func CNLabelContactRelationParentsSiblingFathersYoungerSibling() obj.Object
- func CNLabelContactRelationParentsSiblingMothersElderSibling() obj.Object
- func CNLabelContactRelationParentsSiblingMothersSibling() obj.Object
- func CNLabelContactRelationParentsSiblingMothersYoungerSibling() obj.Object
- func CNLabelContactRelationParentsYoungerSibling() obj.Object
- func CNLabelContactRelationPartner() obj.Object
- func CNLabelContactRelationSibling() obj.Object
- func CNLabelContactRelationSiblingInLaw() obj.Object
- func CNLabelContactRelationSiblingsChild() obj.Object
- func CNLabelContactRelationSister() obj.Object
- func CNLabelContactRelationSisterInLaw() obj.Object
- func CNLabelContactRelationSisterInLawBrothersWife() obj.Object
- func CNLabelContactRelationSisterInLawElderBrothersWife() obj.Object
- func CNLabelContactRelationSisterInLawHusbandsBrothersWife() obj.Object
- func CNLabelContactRelationSisterInLawHusbandsSister() obj.Object
- func CNLabelContactRelationSisterInLawSpousesSister() obj.Object
- func CNLabelContactRelationSisterInLawWifesBrothersWife() obj.Object
- func CNLabelContactRelationSisterInLawWifesSister() obj.Object
- func CNLabelContactRelationSisterInLawYoungerBrothersWife() obj.Object
- func CNLabelContactRelationSon() obj.Object
- func CNLabelContactRelationSonInLaw() obj.Object
- func CNLabelContactRelationSonInLawOrBrotherInLaw() obj.Object
- func CNLabelContactRelationSonInLawOrStepson() obj.Object
- func CNLabelContactRelationSpouse() obj.Object
- func CNLabelContactRelationStepbrother() obj.Object
- func CNLabelContactRelationStepchild() obj.Object
- func CNLabelContactRelationStepdaughter() obj.Object
- func CNLabelContactRelationStepfather() obj.Object
- func CNLabelContactRelationStepmother() obj.Object
- func CNLabelContactRelationStepparent() obj.Object
- func CNLabelContactRelationStepsister() obj.Object
- func CNLabelContactRelationStepson() obj.Object
- func CNLabelContactRelationTeacher() obj.Object
- func CNLabelContactRelationUncle() obj.Object
- func CNLabelContactRelationUncleFathersBrother() obj.Object
- func CNLabelContactRelationUncleFathersElderBrother() obj.Object
- func CNLabelContactRelationUncleFathersElderSistersHusband() obj.Object
- func CNLabelContactRelationUncleFathersSistersHusband() obj.Object
- func CNLabelContactRelationUncleFathersYoungerBrother() obj.Object
- func CNLabelContactRelationUncleFathersYoungerSistersHusband() obj.Object
- func CNLabelContactRelationUncleMothersBrother() obj.Object
- func CNLabelContactRelationUncleMothersElderBrother() obj.Object
- func CNLabelContactRelationUncleMothersSistersHusband() obj.Object
- func CNLabelContactRelationUncleMothersYoungerBrother() obj.Object
- func CNLabelContactRelationUncleParentsBrother() obj.Object
- func CNLabelContactRelationUncleParentsElderBrother() obj.Object
- func CNLabelContactRelationUncleParentsYoungerBrother() obj.Object
- func CNLabelContactRelationWife() obj.Object
- func CNLabelContactRelationYoungerBrother() obj.Object
- func CNLabelContactRelationYoungerBrotherInLaw() obj.Object
- func CNLabelContactRelationYoungerCousin() obj.Object
- func CNLabelContactRelationYoungerCousinFathersBrothersDaughter() obj.Object
- func CNLabelContactRelationYoungerCousinFathersBrothersSon() obj.Object
- func CNLabelContactRelationYoungerCousinFathersSistersDaughter() obj.Object
- func CNLabelContactRelationYoungerCousinFathersSistersSon() obj.Object
- func CNLabelContactRelationYoungerCousinMothersBrothersDaughter() obj.Object
- func CNLabelContactRelationYoungerCousinMothersBrothersSon() obj.Object
- func CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter() obj.Object
- func CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon() obj.Object
- func CNLabelContactRelationYoungerCousinMothersSistersDaughter() obj.Object
- func CNLabelContactRelationYoungerCousinMothersSistersSon() obj.Object
- func CNLabelContactRelationYoungerCousinParentsSiblingsDaughter() obj.Object
- func CNLabelContactRelationYoungerCousinParentsSiblingsSon() obj.Object
- func CNLabelContactRelationYoungerSibling() obj.Object
- func CNLabelContactRelationYoungerSiblingInLaw() obj.Object
- func CNLabelContactRelationYoungerSister() obj.Object
- func CNLabelContactRelationYoungerSisterInLaw() obj.Object
- func CNLabelContactRelationYoungestBrother() obj.Object
- func CNLabelContactRelationYoungestSister() obj.Object
- func CNLabelDateAnniversary() obj.Object
- func CNLabelEmailiCloud() obj.Object
- func CNLabelHome() obj.Object
- func CNLabelOther() obj.Object
- func CNLabelPhoneNumberAppleWatch() obj.Object
- func CNLabelPhoneNumberHomeFax() obj.Object
- func CNLabelPhoneNumberMain() obj.Object
- func CNLabelPhoneNumberMobile() obj.Object
- func CNLabelPhoneNumberOtherFax() obj.Object
- func CNLabelPhoneNumberPager() obj.Object
- func CNLabelPhoneNumberWorkFax() obj.Object
- func CNLabelPhoneNumberiPhone() obj.Object
- func CNLabelSchool() obj.Object
- func CNLabelURLAddressHomePage() obj.Object
- func CNLabelWork() obj.Object
- func CNPostalAddressCityKey() obj.Object
- func CNPostalAddressCountryKey() obj.Object
- func CNPostalAddressISOCountryCodeKey() obj.Object
- func CNPostalAddressLocalizedPropertyNameAttribute() obj.Object
- func CNPostalAddressLocalizedStringForKey(key string) string
- func CNPostalAddressPostalCodeKey() obj.Object
- func CNPostalAddressPropertyAttribute() obj.Object
- func CNPostalAddressStateKey() obj.Object
- func CNPostalAddressStreetKey() obj.Object
- func CNPostalAddressSubAdministrativeAreaKey() obj.Object
- func CNPostalAddressSubLocalityKey() obj.Object
- func CNSocialProfileLocalizedStringForKey(key string) string
- func CNSocialProfileLocalizedStringForService(service string) string
- func CNSocialProfileServiceFacebook() obj.Object
- func CNSocialProfileServiceFlickr() obj.Object
- func CNSocialProfileServiceGameCenter() obj.Object
- func CNSocialProfileServiceKey() obj.Object
- func CNSocialProfileServiceLinkedIn() obj.Object
- func CNSocialProfileServiceMySpace() obj.Object
- func CNSocialProfileServiceSinaWeibo() obj.Object
- func CNSocialProfileServiceTencentWeibo() obj.Object
- func CNSocialProfileServiceTwitter() obj.Object
- func CNSocialProfileServiceYelp() obj.Object
- func CNSocialProfileURLStringKey() obj.Object
- func CNSocialProfileUserIdentifierKey() obj.Object
- func CNSocialProfileUsernameKey() obj.Object
- func DataWithContacts(contacts []*Contact) (result []byte, err error)
- func DelimiterForContact(contact *Contact) string
- func LabeledValueWithLabelValue(label string, value obj.Object) obj.Object
- func LocalizedStringForKey(key string) string
- func LocalizedStringForLabel(label string) string
- func LocalizedStringForService(service string) string
- func PredicateForContactsInContainerWithIdentifier(containerIdentifier string) *foundation.Predicate
- func PredicateForContactsInGroupWithIdentifier(groupIdentifier string) *foundation.Predicate
- func PredicateForContactsMatchingEmailAddress(emailAddress string) *foundation.Predicate
- func PredicateForContactsMatchingName(name string) *foundation.Predicate
- func PredicateForContactsMatchingPhoneNumber(phoneNumber *PhoneNumber) *foundation.Predicate
- func PredicateForContactsWithIdentifiers(identifiers []string) *foundation.Predicate
- func PredicateForContainerOfContactWithIdentifier(contactIdentifier string) *foundation.Predicate
- func PredicateForContainerOfGroupWithIdentifier(groupIdentifier string) *foundation.Predicate
- func PredicateForContainersWithIdentifiers(identifiers []string) *foundation.Predicate
- func PredicateForGroupsInContainerWithIdentifier(containerIdentifier string) *foundation.Predicate
- func PredicateForGroupsWithIdentifiers(identifiers []string) *foundation.Predicate
- func PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier string) *foundation.Predicate
- func StringFromContactStyle(contact *Contact, style ContactFormatterStyle) string
- func StringFromPostalAddressStyle(postalAddress *PostalAddress, style PostalAddressFormatterStyle) string
- type AuthorizationStatus
- type ChangeHistoryAddContactEvent
- type ChangeHistoryAddGroupEvent
- type ChangeHistoryAddMemberToGroupEvent
- type ChangeHistoryAddSubgroupToGroupEvent
- type ChangeHistoryDeleteContactEvent
- type ChangeHistoryDeleteGroupEvent
- type ChangeHistoryDropEverythingEvent
- type ChangeHistoryEvent
- type ChangeHistoryEventProvider
- type ChangeHistoryEventVisitor
- type ChangeHistoryFetchRequest
- func (chfr *ChangeHistoryFetchRequest) AdditionalContactKeyDescriptors() []obj.Object
- func (chfr *ChangeHistoryFetchRequest) ExcludedTransactionAuthors() []string
- func (chfr *ChangeHistoryFetchRequest) IncludeGroupChanges() bool
- func (chfr *ChangeHistoryFetchRequest) MutableObjects() bool
- func (chfr *ChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors(additionalContactKeyDescriptors []obj.Object)
- func (chfr *ChangeHistoryFetchRequest) ShouldUnifyResults() bool
- func (chfr *ChangeHistoryFetchRequest) StartingToken() []byte
- func (chfr *ChangeHistoryFetchRequest) WithExcludedTransactionAuthors(items ...obj.Object) *ChangeHistoryFetchRequest
- func (chfr *ChangeHistoryFetchRequest) WithIncludeGroupChanges(includeGroupChanges bool) *ChangeHistoryFetchRequest
- func (chfr *ChangeHistoryFetchRequest) WithMutableObjects(mutableObjects bool) *ChangeHistoryFetchRequest
- func (chfr *ChangeHistoryFetchRequest) WithShouldUnifyResults(shouldUnifyResults bool) *ChangeHistoryFetchRequest
- func (chfr *ChangeHistoryFetchRequest) WithStartingToken(startingToken []byte) *ChangeHistoryFetchRequest
- type ChangeHistoryRemoveMemberFromGroupEvent
- type ChangeHistoryRemoveSubgroupFromGroupEvent
- type ChangeHistoryUpdateContactEvent
- type ChangeHistoryUpdateGroupEvent
- type Clockid
- type Contact
- func (c *Contact) AreKeysAvailable(keyDescriptors []obj.Object) bool
- func (c *Contact) Birthday() *foundation.DateComponents
- func (c *Contact) ContactRelations() []obj.Object
- func (c *Contact) ContactType() ContactType
- func (c *Contact) Dates() []obj.Object
- func (c *Contact) DepartmentName() string
- func (c *Contact) Description() string
- func (c *Contact) EmailAddresses() []obj.Object
- func (c *Contact) FamilyName() string
- func (c *Contact) GivenName() string
- func (c *Contact) Identifier() string
- func (c *Contact) ImageData() []byte
- func (c *Contact) ImageDataAvailable() bool
- func (c *Contact) InstantMessageAddresses() []obj.Object
- func (c *Contact) IsEqual(other obj.Object) bool
- func (c *Contact) IsKeyAvailable(key string) bool
- func (c *Contact) IsKind(className string) bool
- func (c *Contact) IsUnifiedWithContactWithIdentifier(contactIdentifier string) bool
- func (c *Contact) JobTitle() string
- func (c *Contact) MiddleName() string
- func (c *Contact) NamePrefix() string
- func (c *Contact) NameSuffix() string
- func (c *Contact) Nickname() string
- func (c *Contact) NonGregorianBirthday() *foundation.DateComponents
- func (c *Contact) Note() string
- func (c *Contact) OrganizationName() string
- func (c *Contact) PhoneNumbers() []obj.Object
- func (c *Contact) PhoneticFamilyName() string
- func (c *Contact) PhoneticGivenName() string
- func (c *Contact) PhoneticMiddleName() string
- func (c *Contact) PhoneticOrganizationName() string
- func (c *Contact) PostalAddresses() []obj.Object
- func (c *Contact) PreviousFamilyName() string
- func (c *Contact) SocialProfiles() []obj.Object
- func (c *Contact) String() string
- func (c *Contact) ThumbnailImageData() []byte
- func (c *Contact) URLAddresses() []obj.Object
- type ContactDisplayNameOrder
- type ContactFetchRequest
- func (cfr *ContactFetchRequest) KeysToFetch() []obj.Object
- func (cfr *ContactFetchRequest) MutableObjects() bool
- func (cfr *ContactFetchRequest) Predicate() *foundation.Predicate
- func (cfr *ContactFetchRequest) SetKeysToFetch(keysToFetch []obj.Object)
- func (cfr *ContactFetchRequest) SortOrder() ContactSortOrder
- func (cfr *ContactFetchRequest) UnifyResults() bool
- func (cfr *ContactFetchRequest) WithMutableObjects(mutableObjects bool) *ContactFetchRequest
- func (cfr *ContactFetchRequest) WithPredicate(predicate obj.Object) *ContactFetchRequest
- func (cfr *ContactFetchRequest) WithSortOrder(sortOrder ContactSortOrder) *ContactFetchRequest
- func (cfr *ContactFetchRequest) WithUnifyResults(unifyResults bool) *ContactFetchRequest
- type ContactFormatter
- func (cf *ContactFormatter) AttributedStringFromContactDefaultAttributes(contact *Contact, attributes obj.Object) *foundation.AttributedString
- func (cf *ContactFormatter) Description() string
- func (cf *ContactFormatter) IsEqual(other obj.Object) bool
- func (cf *ContactFormatter) IsKind(className string) bool
- func (cf *ContactFormatter) String() string
- func (cf *ContactFormatter) StringFromContact(contact *Contact) string
- func (cf *ContactFormatter) Style() ContactFormatterStyle
- func (cf *ContactFormatter) WithStyle(style ContactFormatterStyle) *ContactFormatter
- type ContactFormatterStyle
- type ContactProperty
- func (cp *ContactProperty) Contact() *Contact
- func (cp *ContactProperty) Description() string
- func (cp *ContactProperty) Identifier() string
- func (cp *ContactProperty) IsEqual(other obj.Object) bool
- func (cp *ContactProperty) IsKind(className string) bool
- func (cp *ContactProperty) Key() string
- func (cp *ContactProperty) Label() string
- func (cp *ContactProperty) String() string
- func (cp *ContactProperty) Value() obj.Object
- type ContactProvider
- type ContactRelation
- type ContactSortOrder
- type ContactStore
- func (cs *ContactStore) ContainersMatchingPredicate(predicate obj.Object) (result []*Container, err error)
- func (cs *ContactStore) CurrentHistoryToken() []byte
- func (cs *ContactStore) DefaultContainerIdentifier() string
- func (cs *ContactStore) Description() string
- func (cs *ContactStore) EnumerateContactsWithFetchRequestErrorUsing(fetchRequest *ContactFetchRequest, err unsafe.Pointer, ...) bool
- func (cs *ContactStore) EnumeratorForChangeHistoryFetchRequest(request *ChangeHistoryFetchRequest) (result obj.Object, err error)
- func (cs *ContactStore) EnumeratorForContactFetchRequest(request *ContactFetchRequest) (result obj.Object, err error)
- func (cs *ContactStore) ExecuteSaveRequest(saveRequest *SaveRequest) error
- func (cs *ContactStore) GroupsMatchingPredicate(predicate obj.Object) (result []*Group, err error)
- func (cs *ContactStore) IsEqual(other obj.Object) bool
- func (cs *ContactStore) IsKind(className string) bool
- func (cs *ContactStore) RequestAccessForEntityTypeCompletionHandler(entityType EntityType, completionHandler func(bool, unsafe.Pointer))
- func (cs *ContactStore) String() string
- func (cs *ContactStore) UnifiedContactWithIdentifierKeysToFetch(identifier string, keys []obj.Object) (result *Contact, err error)
- func (cs *ContactStore) UnifiedContactsMatchingPredicateKeysToFetch(predicate obj.Object, keys []obj.Object) (result []*Contact, err error)
- func (cs *ContactStore) UnifiedMeContactWithKeysToFetch(keys []obj.Object) (result *Contact, err error)
- type ContactType
- type ContactVCardSerialization
- type ContactsUserDefaults
- func (cud *ContactsUserDefaults) CountryCode() string
- func (cud *ContactsUserDefaults) Description() string
- func (cud *ContactsUserDefaults) IsEqual(other obj.Object) bool
- func (cud *ContactsUserDefaults) IsKind(className string) bool
- func (cud *ContactsUserDefaults) SortOrder() ContactSortOrder
- func (cud *ContactsUserDefaults) String() string
- type Container
- type ContainerType
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntityType
- type EntryID
- type ErrorCode
- type FetchRequest
- type FetchRequestProvider
- type FetchResult
- type FilesecProperty
- type Flag
- type Group
- type GroupProvider
- type Idtype
- type InstantMessageAddress
- func (ima *InstantMessageAddress) Description() string
- func (ima *InstantMessageAddress) IsEqual(other obj.Object) bool
- func (ima *InstantMessageAddress) IsKind(className string) bool
- func (ima *InstantMessageAddress) Service() string
- func (ima *InstantMessageAddress) String() string
- func (ima *InstantMessageAddress) Username() string
- type IpcInfoObjectType
- type KeyDescriptor
- type LabeledValue
- func (lv *LabeledValue) Description() string
- func (lv *LabeledValue) Identifier() string
- func (lv *LabeledValue) IsEqual(other obj.Object) bool
- func (lv *LabeledValue) IsKind(className string) bool
- func (lv *LabeledValue) Label() string
- func (lv *LabeledValue) LabeledValueBySettingLabel(label string) obj.Object
- func (lv *LabeledValue) LabeledValueBySettingLabelValue(label string, value obj.Object) obj.Object
- func (lv *LabeledValue) LabeledValueBySettingValue(value obj.Object) obj.Object
- func (lv *LabeledValue) String() string
- func (lv *LabeledValue) Value() obj.Object
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type MutableContact
- func (mc *MutableContact) WithBirthday(birthday obj.Object) *MutableContact
- func (mc *MutableContact) WithContactRelations(items ...obj.Object) *MutableContact
- func (mc *MutableContact) WithContactType(contactType ContactType) *MutableContact
- func (mc *MutableContact) WithDates(items ...obj.Object) *MutableContact
- func (mc *MutableContact) WithDepartmentName(departmentName string) *MutableContact
- func (mc *MutableContact) WithEmailAddresses(items ...obj.Object) *MutableContact
- func (mc *MutableContact) WithFamilyName(familyName string) *MutableContact
- func (mc *MutableContact) WithGivenName(givenName string) *MutableContact
- func (mc *MutableContact) WithImageData(imageData []byte) *MutableContact
- func (mc *MutableContact) WithInstantMessageAddresses(items ...obj.Object) *MutableContact
- func (mc *MutableContact) WithJobTitle(jobTitle string) *MutableContact
- func (mc *MutableContact) WithMiddleName(middleName string) *MutableContact
- func (mc *MutableContact) WithNamePrefix(namePrefix string) *MutableContact
- func (mc *MutableContact) WithNameSuffix(nameSuffix string) *MutableContact
- func (mc *MutableContact) WithNickname(nickname string) *MutableContact
- func (mc *MutableContact) WithNonGregorianBirthday(nonGregorianBirthday obj.Object) *MutableContact
- func (mc *MutableContact) WithNote(note string) *MutableContact
- func (mc *MutableContact) WithOrganizationName(organizationName string) *MutableContact
- func (mc *MutableContact) WithPhoneNumbers(items ...obj.Object) *MutableContact
- func (mc *MutableContact) WithPhoneticFamilyName(phoneticFamilyName string) *MutableContact
- func (mc *MutableContact) WithPhoneticGivenName(phoneticGivenName string) *MutableContact
- func (mc *MutableContact) WithPhoneticMiddleName(phoneticMiddleName string) *MutableContact
- func (mc *MutableContact) WithPhoneticOrganizationName(phoneticOrganizationName string) *MutableContact
- func (mc *MutableContact) WithPostalAddresses(items ...obj.Object) *MutableContact
- func (mc *MutableContact) WithPreviousFamilyName(previousFamilyName string) *MutableContact
- func (mc *MutableContact) WithSocialProfiles(items ...obj.Object) *MutableContact
- func (mc *MutableContact) WithURLAddresses(items ...obj.Object) *MutableContact
- type MutableGroup
- type MutablePostalAddress
- func (mpa *MutablePostalAddress) WithCity(city string) *MutablePostalAddress
- func (mpa *MutablePostalAddress) WithCountry(country string) *MutablePostalAddress
- func (mpa *MutablePostalAddress) WithISOCountryCode(isoCountryCode string) *MutablePostalAddress
- func (mpa *MutablePostalAddress) WithPostalCode(postalCode string) *MutablePostalAddress
- func (mpa *MutablePostalAddress) WithState(state string) *MutablePostalAddress
- func (mpa *MutablePostalAddress) WithStreet(street string) *MutablePostalAddress
- func (mpa *MutablePostalAddress) WithSubAdministrativeArea(subAdministrativeArea string) *MutablePostalAddress
- func (mpa *MutablePostalAddress) WithSubLocality(subLocality string) *MutablePostalAddress
- type OSClockid
- type Perm
- type PhoneNumber
- type PostalAddress
- func (pa *PostalAddress) City() string
- func (pa *PostalAddress) Country() string
- func (pa *PostalAddress) Description() string
- func (pa *PostalAddress) ISOCountryCode() string
- func (pa *PostalAddress) IsEqual(other obj.Object) bool
- func (pa *PostalAddress) IsKind(className string) bool
- func (pa *PostalAddress) PostalCode() string
- func (pa *PostalAddress) State() string
- func (pa *PostalAddress) Street() string
- func (pa *PostalAddress) String() string
- func (pa *PostalAddress) SubAdministrativeArea() string
- func (pa *PostalAddress) SubLocality() string
- type PostalAddressFormatter
- func (paf *PostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress *PostalAddress, attributes obj.Object) *foundation.AttributedString
- func (paf *PostalAddressFormatter) Description() string
- func (paf *PostalAddressFormatter) IsEqual(other obj.Object) bool
- func (paf *PostalAddressFormatter) IsKind(className string) bool
- func (paf *PostalAddressFormatter) String() string
- func (paf *PostalAddressFormatter) StringFromPostalAddress(postalAddress *PostalAddress) string
- func (paf *PostalAddressFormatter) Style() PostalAddressFormatterStyle
- func (paf *PostalAddressFormatter) WithStyle(style PostalAddressFormatterStyle) *PostalAddressFormatter
- type PostalAddressFormatterStyle
- type PostalAddressProvider
- type PtrauthKey
- type QosClass
- type SaveRequest
- func (sr *SaveRequest) AddContactToContainerWithIdentifier(contact *MutableContact, identifier string)
- func (sr *SaveRequest) AddGroupToContainerWithIdentifier(group *MutableGroup, identifier string)
- func (sr *SaveRequest) AddMemberToGroup(contact *Contact, group *Group)
- func (sr *SaveRequest) AddSubgroupToGroup(subgroup *Group, group *Group)
- func (sr *SaveRequest) DeleteContact(contact *MutableContact)
- func (sr *SaveRequest) DeleteGroup(group *MutableGroup)
- func (sr *SaveRequest) Description() string
- func (sr *SaveRequest) IsEqual(other obj.Object) bool
- func (sr *SaveRequest) IsKind(className string) bool
- func (sr *SaveRequest) RemoveMemberFromGroup(contact *Contact, group *Group)
- func (sr *SaveRequest) RemoveSubgroupFromGroup(subgroup *Group, group *Group)
- func (sr *SaveRequest) ShouldRefetchContacts() bool
- func (sr *SaveRequest) String() string
- func (sr *SaveRequest) TransactionAuthor() string
- func (sr *SaveRequest) UpdateContact(contact *MutableContact)
- func (sr *SaveRequest) UpdateGroup(group *MutableGroup)
- func (sr *SaveRequest) WithShouldRefetchContacts(shouldRefetchContacts bool) *SaveRequest
- func (sr *SaveRequest) WithTransactionAuthor(transactionAuthor string) *SaveRequest
- type SocialProfile
- func (sp *SocialProfile) Description() string
- func (sp *SocialProfile) IsEqual(other obj.Object) bool
- func (sp *SocialProfile) IsKind(className string) bool
- func (sp *SocialProfile) Service() string
- func (sp *SocialProfile) String() string
- func (sp *SocialProfile) URLString() string
- func (sp *SocialProfile) UserIdentifier() string
- func (sp *SocialProfile) Username() string
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
var ErrCodeAuthorizationDenied = errkit.New("CNErrorDomain", 100)
ErrCodeAuthorizationDenied matches the Contacts error CNErrorCodeAuthorizationDenied.
var ErrCodeChangeHistoryExpired = errkit.New("CNErrorDomain", 603)
ErrCodeChangeHistoryExpired matches the Contacts error CNErrorCodeChangeHistoryExpired.
var ErrCodeChangeHistoryInvalidAnchor = errkit.New("CNErrorDomain", 604)
ErrCodeChangeHistoryInvalidAnchor matches the Contacts error CNErrorCodeChangeHistoryInvalidAnchor.
var ErrCodeChangeHistoryInvalidFetchRequest = errkit.New("CNErrorDomain", 605)
ErrCodeChangeHistoryInvalidFetchRequest matches the Contacts error CNErrorCodeChangeHistoryInvalidFetchRequest.
var ErrCodeClientIdentifierCollision = errkit.New("CNErrorDomain", 602)
ErrCodeClientIdentifierCollision matches the Contacts error CNErrorCodeClientIdentifierCollision.
var ErrCodeClientIdentifierDoesNotExist = errkit.New("CNErrorDomain", 601)
ErrCodeClientIdentifierDoesNotExist matches the Contacts error CNErrorCodeClientIdentifierDoesNotExist.
var ErrCodeClientIdentifierInvalid = errkit.New("CNErrorDomain", 600)
ErrCodeClientIdentifierInvalid matches the Contacts error CNErrorCodeClientIdentifierInvalid.
var ErrCodeCommunicationError = errkit.New("CNErrorDomain", 1)
ErrCodeCommunicationError matches the Contacts error CNErrorCodeCommunicationError.
var ErrCodeContainmentCycle = errkit.New("CNErrorDomain", 202)
ErrCodeContainmentCycle matches the Contacts error CNErrorCodeContainmentCycle.
var ErrCodeContainmentScope = errkit.New("CNErrorDomain", 203)
ErrCodeContainmentScope matches the Contacts error CNErrorCodeContainmentScope.
var ErrCodeDataAccessError = errkit.New("CNErrorDomain", 2)
ErrCodeDataAccessError matches the Contacts error CNErrorCodeDataAccessError.
var ErrCodeFeatureDisabledByUser = errkit.New("CNErrorDomain", 103)
ErrCodeFeatureDisabledByUser matches the Contacts error CNErrorCodeFeatureDisabledByUser.
var ErrCodeFeatureNotAvailable = errkit.New("CNErrorDomain", 104)
ErrCodeFeatureNotAvailable matches the Contacts error CNErrorCodeFeatureNotAvailable.
var ErrCodeInsertedRecordAlreadyExists = errkit.New("CNErrorDomain", 201)
ErrCodeInsertedRecordAlreadyExists matches the Contacts error CNErrorCodeInsertedRecordAlreadyExists.
var ErrCodeNoAccessableWritableContainers = errkit.New("CNErrorDomain", 101)
ErrCodeNoAccessableWritableContainers matches the Contacts error CNErrorCodeNoAccessableWritableContainers.
var ErrCodeParentContainerNotWritable = errkit.New("CNErrorDomain", 207)
ErrCodeParentContainerNotWritable matches the Contacts error CNErrorCodeParentContainerNotWritable.
var ErrCodeParentRecordDoesNotExist = errkit.New("CNErrorDomain", 204)
ErrCodeParentRecordDoesNotExist matches the Contacts error CNErrorCodeParentRecordDoesNotExist.
var ErrCodePolicyViolation = errkit.New("CNErrorDomain", 500)
ErrCodePolicyViolation matches the Contacts error CNErrorCodePolicyViolation.
var ErrCodePredicateInvalid = errkit.New("CNErrorDomain", 400)
ErrCodePredicateInvalid matches the Contacts error CNErrorCodePredicateInvalid.
var ErrCodeRecordDoesNotExist = errkit.New("CNErrorDomain", 200)
ErrCodeRecordDoesNotExist matches the Contacts error CNErrorCodeRecordDoesNotExist.
var ErrCodeRecordIdentifierInvalid = errkit.New("CNErrorDomain", 205)
ErrCodeRecordIdentifierInvalid matches the Contacts error CNErrorCodeRecordIdentifierInvalid.
var ErrCodeRecordNotWritable = errkit.New("CNErrorDomain", 206)
ErrCodeRecordNotWritable matches the Contacts error CNErrorCodeRecordNotWritable.
ErrCodeUnauthorizedKeys matches the Contacts error CNErrorCodeUnauthorizedKeys.
var ErrCodeVCardMalformed = errkit.New("CNErrorDomain", 700)
ErrCodeVCardMalformed matches the Contacts error CNErrorCodeVCardMalformed.
var ErrCodeVCardSummarizationError = errkit.New("CNErrorDomain", 701)
ErrCodeVCardSummarizationError matches the Contacts error CNErrorCodeVCardSummarizationError.
var ErrCodeValidationConfigurationError = errkit.New("CNErrorDomain", 302)
ErrCodeValidationConfigurationError matches the Contacts error CNErrorCodeValidationConfigurationError.
var ErrCodeValidationMultipleErrors = errkit.New("CNErrorDomain", 300)
ErrCodeValidationMultipleErrors matches the Contacts error CNErrorCodeValidationMultipleErrors.
var ErrCodeValidationTypeMismatch = errkit.New("CNErrorDomain", 301)
ErrCodeValidationTypeMismatch matches the Contacts error CNErrorCodeValidationTypeMismatch.
Functions ¶
func AttributedStringFromContactStyleDefaultAttributes ¶ added in v0.17.0
func AttributedStringFromContactStyleDefaultAttributes(contact *Contact, style ContactFormatterStyle, attributes obj.Object) *foundation.AttributedString
AttributedStringFromContactStyleDefaultAttributes formats the contact name as an attributed string.
func AttributedStringFromPostalAddressStyleWithDefaultAttributes ¶ added in v0.17.0
func AttributedStringFromPostalAddressStyleWithDefaultAttributes(postalAddress *PostalAddress, style PostalAddressFormatterStyle, attributes obj.Object) *foundation.AttributedString
AttributedStringFromPostalAddressStyleWithDefaultAttributes returns a postal address as an attributed string and formatted for the specified style.
func CNContactBirthdayKey ¶
CNContactBirthdayKey returns the string constant CNContactBirthdayKey, for use as a dictionary key or argument.
func CNContactDatesKey ¶
CNContactDatesKey returns the string constant CNContactDatesKey, for use as a dictionary key or argument.
func CNContactDepartmentNameKey ¶
CNContactDepartmentNameKey returns the string constant CNContactDepartmentNameKey, for use as a dictionary key or argument.
func CNContactEmailAddressesKey ¶
CNContactEmailAddressesKey returns the string constant CNContactEmailAddressesKey, for use as a dictionary key or argument.
func CNContactFamilyNameKey ¶
CNContactFamilyNameKey returns the string constant CNContactFamilyNameKey, for use as a dictionary key or argument.
func CNContactGivenNameKey ¶
CNContactGivenNameKey returns the string constant CNContactGivenNameKey, for use as a dictionary key or argument.
func CNContactIdentifierKey ¶
CNContactIdentifierKey returns the string constant CNContactIdentifierKey, for use as a dictionary key or argument.
func CNContactImageDataAvailableKey ¶
CNContactImageDataAvailableKey returns the string constant CNContactImageDataAvailableKey, for use as a dictionary key or argument.
func CNContactImageDataKey ¶
CNContactImageDataKey returns the string constant CNContactImageDataKey, for use as a dictionary key or argument.
func CNContactInstantMessageAddressesKey ¶
CNContactInstantMessageAddressesKey returns the string constant CNContactInstantMessageAddressesKey, for use as a dictionary key or argument.
func CNContactJobTitleKey ¶
CNContactJobTitleKey returns the string constant CNContactJobTitleKey, for use as a dictionary key or argument.
func CNContactMiddleNameKey ¶
CNContactMiddleNameKey returns the string constant CNContactMiddleNameKey, for use as a dictionary key or argument.
func CNContactNamePrefixKey ¶
CNContactNamePrefixKey returns the string constant CNContactNamePrefixKey, for use as a dictionary key or argument.
func CNContactNameSuffixKey ¶
CNContactNameSuffixKey returns the string constant CNContactNameSuffixKey, for use as a dictionary key or argument.
func CNContactNicknameKey ¶
CNContactNicknameKey returns the string constant CNContactNicknameKey, for use as a dictionary key or argument.
func CNContactNonGregorianBirthdayKey ¶
CNContactNonGregorianBirthdayKey returns the string constant CNContactNonGregorianBirthdayKey, for use as a dictionary key or argument.
func CNContactNoteKey ¶
CNContactNoteKey returns the string constant CNContactNoteKey, for use as a dictionary key or argument.
func CNContactOrganizationNameKey ¶
CNContactOrganizationNameKey returns the string constant CNContactOrganizationNameKey, for use as a dictionary key or argument.
func CNContactPhoneNumbersKey ¶
CNContactPhoneNumbersKey returns the string constant CNContactPhoneNumbersKey, for use as a dictionary key or argument.
func CNContactPhoneticFamilyNameKey ¶
CNContactPhoneticFamilyNameKey returns the string constant CNContactPhoneticFamilyNameKey, for use as a dictionary key or argument.
func CNContactPhoneticGivenNameKey ¶
CNContactPhoneticGivenNameKey returns the string constant CNContactPhoneticGivenNameKey, for use as a dictionary key or argument.
func CNContactPhoneticMiddleNameKey ¶
CNContactPhoneticMiddleNameKey returns the string constant CNContactPhoneticMiddleNameKey, for use as a dictionary key or argument.
func CNContactPhoneticOrganizationNameKey ¶
CNContactPhoneticOrganizationNameKey returns the string constant CNContactPhoneticOrganizationNameKey, for use as a dictionary key or argument.
func CNContactPostalAddressesKey ¶
CNContactPostalAddressesKey returns the string constant CNContactPostalAddressesKey, for use as a dictionary key or argument.
func CNContactPreviousFamilyNameKey ¶
CNContactPreviousFamilyNameKey returns the string constant CNContactPreviousFamilyNameKey, for use as a dictionary key or argument.
func CNContactPropertyAttribute ¶
CNContactPropertyAttribute returns the string constant CNContactPropertyAttribute, for use as a dictionary key or argument.
func CNContactPropertyNotFetchedExceptionName ¶
CNContactPropertyNotFetchedExceptionName returns the string constant CNContactPropertyNotFetchedExceptionName, for use as a dictionary key or argument.
func CNContactRelationsKey ¶
CNContactRelationsKey returns the string constant CNContactRelationsKey, for use as a dictionary key or argument.
func CNContactSocialProfilesKey ¶
CNContactSocialProfilesKey returns the string constant CNContactSocialProfilesKey, for use as a dictionary key or argument.
func CNContactStoreDidChangeNotification ¶
CNContactStoreDidChangeNotification returns the string constant CNContactStoreDidChangeNotification, for use as a dictionary key or argument.
func CNContactThumbnailImageDataKey ¶
CNContactThumbnailImageDataKey returns the string constant CNContactThumbnailImageDataKey, for use as a dictionary key or argument.
func CNContactTypeKey ¶
CNContactTypeKey returns the string constant CNContactTypeKey, for use as a dictionary key or argument.
func CNContactUrlAddressesKey ¶
CNContactUrlAddressesKey returns the string constant CNContactUrlAddressesKey, for use as a dictionary key or argument.
func CNContainerIdentifierKey ¶
CNContainerIdentifierKey returns the string constant CNContainerIdentifierKey, for use as a dictionary key or argument.
func CNContainerNameKey ¶
CNContainerNameKey returns the string constant CNContainerNameKey, for use as a dictionary key or argument.
func CNContainerTypeKey ¶
CNContainerTypeKey returns the string constant CNContainerTypeKey, for use as a dictionary key or argument.
func CNErrorDomain ¶
CNErrorDomain returns the string constant CNErrorDomain, for use as a dictionary key or argument.
func CNErrorUserInfoAffectedRecordIdentifiersKey ¶
CNErrorUserInfoAffectedRecordIdentifiersKey returns the string constant CNErrorUserInfoAffectedRecordIdentifiersKey, for use as a dictionary key or argument.
func CNErrorUserInfoAffectedRecordsKey ¶
CNErrorUserInfoAffectedRecordsKey returns the string constant CNErrorUserInfoAffectedRecordsKey, for use as a dictionary key or argument.
func CNErrorUserInfoKeyPathsKey ¶
CNErrorUserInfoKeyPathsKey returns the string constant CNErrorUserInfoKeyPathsKey, for use as a dictionary key or argument.
func CNErrorUserInfoValidationErrorsKey ¶
CNErrorUserInfoValidationErrorsKey returns the string constant CNErrorUserInfoValidationErrorsKey, for use as a dictionary key or argument.
func CNGroupIdentifierKey ¶
CNGroupIdentifierKey returns the string constant CNGroupIdentifierKey, for use as a dictionary key or argument.
func CNGroupNameKey ¶
CNGroupNameKey returns the string constant CNGroupNameKey, for use as a dictionary key or argument.
func CNInstantMessageAddressLocalizedStringForKey ¶
CNInstantMessageAddressLocalizedStringForKey returns a string containing the localized property name.
func CNInstantMessageAddressServiceKey ¶
CNInstantMessageAddressServiceKey returns the string constant CNInstantMessageAddressServiceKey, for use as a dictionary key or argument.
func CNInstantMessageAddressUsernameKey ¶
CNInstantMessageAddressUsernameKey returns the string constant CNInstantMessageAddressUsernameKey, for use as a dictionary key or argument.
func CNInstantMessageServiceAIM ¶
CNInstantMessageServiceAIM returns the string constant CNInstantMessageServiceAIM, for use as a dictionary key or argument.
func CNInstantMessageServiceFacebook ¶
CNInstantMessageServiceFacebook returns the string constant CNInstantMessageServiceFacebook, for use as a dictionary key or argument.
func CNInstantMessageServiceGaduGadu ¶
CNInstantMessageServiceGaduGadu returns the string constant CNInstantMessageServiceGaduGadu, for use as a dictionary key or argument.
func CNInstantMessageServiceGoogleTalk ¶
CNInstantMessageServiceGoogleTalk returns the string constant CNInstantMessageServiceGoogleTalk, for use as a dictionary key or argument.
func CNInstantMessageServiceICQ ¶
CNInstantMessageServiceICQ returns the string constant CNInstantMessageServiceICQ, for use as a dictionary key or argument.
func CNInstantMessageServiceJabber ¶
CNInstantMessageServiceJabber returns the string constant CNInstantMessageServiceJabber, for use as a dictionary key or argument.
func CNInstantMessageServiceMSN ¶
CNInstantMessageServiceMSN returns the string constant CNInstantMessageServiceMSN, for use as a dictionary key or argument.
func CNInstantMessageServiceQQ ¶
CNInstantMessageServiceQQ returns the string constant CNInstantMessageServiceQQ, for use as a dictionary key or argument.
func CNInstantMessageServiceSkype ¶
CNInstantMessageServiceSkype returns the string constant CNInstantMessageServiceSkype, for use as a dictionary key or argument.
func CNInstantMessageServiceYahoo ¶
CNInstantMessageServiceYahoo returns the string constant CNInstantMessageServiceYahoo, for use as a dictionary key or argument.
func CNLabelContactRelationAssistant ¶
CNLabelContactRelationAssistant returns the string constant CNLabelContactRelationAssistant, for use as a dictionary key or argument.
func CNLabelContactRelationAunt ¶
CNLabelContactRelationAunt returns the string constant CNLabelContactRelationAunt, for use as a dictionary key or argument.
func CNLabelContactRelationAuntFathersBrothersWife ¶
CNLabelContactRelationAuntFathersBrothersWife returns the string constant CNLabelContactRelationAuntFathersBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationAuntFathersElderBrothersWife ¶
CNLabelContactRelationAuntFathersElderBrothersWife returns the string constant CNLabelContactRelationAuntFathersElderBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationAuntFathersElderSister ¶
CNLabelContactRelationAuntFathersElderSister returns the string constant CNLabelContactRelationAuntFathersElderSister, for use as a dictionary key or argument.
func CNLabelContactRelationAuntFathersSister ¶
CNLabelContactRelationAuntFathersSister returns the string constant CNLabelContactRelationAuntFathersSister, for use as a dictionary key or argument.
func CNLabelContactRelationAuntFathersYoungerBrothersWife ¶
CNLabelContactRelationAuntFathersYoungerBrothersWife returns the string constant CNLabelContactRelationAuntFathersYoungerBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationAuntFathersYoungerSister ¶
CNLabelContactRelationAuntFathersYoungerSister returns the string constant CNLabelContactRelationAuntFathersYoungerSister, for use as a dictionary key or argument.
func CNLabelContactRelationAuntMothersBrothersWife ¶
CNLabelContactRelationAuntMothersBrothersWife returns the string constant CNLabelContactRelationAuntMothersBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationAuntMothersElderSister ¶
CNLabelContactRelationAuntMothersElderSister returns the string constant CNLabelContactRelationAuntMothersElderSister, for use as a dictionary key or argument.
func CNLabelContactRelationAuntMothersSister ¶
CNLabelContactRelationAuntMothersSister returns the string constant CNLabelContactRelationAuntMothersSister, for use as a dictionary key or argument.
func CNLabelContactRelationAuntMothersYoungerSister ¶
CNLabelContactRelationAuntMothersYoungerSister returns the string constant CNLabelContactRelationAuntMothersYoungerSister, for use as a dictionary key or argument.
func CNLabelContactRelationAuntParentsElderSister ¶
CNLabelContactRelationAuntParentsElderSister returns the string constant CNLabelContactRelationAuntParentsElderSister, for use as a dictionary key or argument.
func CNLabelContactRelationAuntParentsSister ¶
CNLabelContactRelationAuntParentsSister returns the string constant CNLabelContactRelationAuntParentsSister, for use as a dictionary key or argument.
func CNLabelContactRelationAuntParentsYoungerSister ¶
CNLabelContactRelationAuntParentsYoungerSister returns the string constant CNLabelContactRelationAuntParentsYoungerSister, for use as a dictionary key or argument.
func CNLabelContactRelationBoyfriend ¶
CNLabelContactRelationBoyfriend returns the string constant CNLabelContactRelationBoyfriend, for use as a dictionary key or argument.
func CNLabelContactRelationBrother ¶
CNLabelContactRelationBrother returns the string constant CNLabelContactRelationBrother, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLaw ¶
CNLabelContactRelationBrotherInLaw returns the string constant CNLabelContactRelationBrotherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLawElderSistersHusband ¶
CNLabelContactRelationBrotherInLawElderSistersHusband returns the string constant CNLabelContactRelationBrotherInLawElderSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLawHusbandsBrother ¶
CNLabelContactRelationBrotherInLawHusbandsBrother returns the string constant CNLabelContactRelationBrotherInLawHusbandsBrother, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLawHusbandsSistersHusband ¶
CNLabelContactRelationBrotherInLawHusbandsSistersHusband returns the string constant CNLabelContactRelationBrotherInLawHusbandsSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLawSistersHusband ¶
CNLabelContactRelationBrotherInLawSistersHusband returns the string constant CNLabelContactRelationBrotherInLawSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLawSpousesBrother ¶
CNLabelContactRelationBrotherInLawSpousesBrother returns the string constant CNLabelContactRelationBrotherInLawSpousesBrother, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLawWifesBrother ¶
CNLabelContactRelationBrotherInLawWifesBrother returns the string constant CNLabelContactRelationBrotherInLawWifesBrother, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLawWifesSistersHusband ¶
CNLabelContactRelationBrotherInLawWifesSistersHusband returns the string constant CNLabelContactRelationBrotherInLawWifesSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationBrotherInLawYoungerSistersHusband ¶
CNLabelContactRelationBrotherInLawYoungerSistersHusband returns the string constant CNLabelContactRelationBrotherInLawYoungerSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationChild ¶
CNLabelContactRelationChild returns the string constant CNLabelContactRelationChild, for use as a dictionary key or argument.
func CNLabelContactRelationChildInLaw ¶
CNLabelContactRelationChildInLaw returns the string constant CNLabelContactRelationChildInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationCoBrotherInLaw ¶
CNLabelContactRelationCoBrotherInLaw returns the string constant CNLabelContactRelationCoBrotherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationCoFatherInLaw ¶
CNLabelContactRelationCoFatherInLaw returns the string constant CNLabelContactRelationCoFatherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationCoMotherInLaw ¶
CNLabelContactRelationCoMotherInLaw returns the string constant CNLabelContactRelationCoMotherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationCoParentInLaw ¶
CNLabelContactRelationCoParentInLaw returns the string constant CNLabelContactRelationCoParentInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationCoSiblingInLaw ¶
CNLabelContactRelationCoSiblingInLaw returns the string constant CNLabelContactRelationCoSiblingInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationCoSisterInLaw ¶
CNLabelContactRelationCoSisterInLaw returns the string constant CNLabelContactRelationCoSisterInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationColleague ¶
CNLabelContactRelationColleague returns the string constant CNLabelContactRelationColleague, for use as a dictionary key or argument.
func CNLabelContactRelationCousin ¶
CNLabelContactRelationCousin returns the string constant CNLabelContactRelationCousin, for use as a dictionary key or argument.
func CNLabelContactRelationCousinFathersBrothersDaughter ¶
CNLabelContactRelationCousinFathersBrothersDaughter returns the string constant CNLabelContactRelationCousinFathersBrothersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationCousinFathersBrothersSon ¶
CNLabelContactRelationCousinFathersBrothersSon returns the string constant CNLabelContactRelationCousinFathersBrothersSon, for use as a dictionary key or argument.
func CNLabelContactRelationCousinFathersSistersDaughter ¶
CNLabelContactRelationCousinFathersSistersDaughter returns the string constant CNLabelContactRelationCousinFathersSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationCousinFathersSistersSon ¶
CNLabelContactRelationCousinFathersSistersSon returns the string constant CNLabelContactRelationCousinFathersSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationCousinGrandparentsSiblingsChild ¶
CNLabelContactRelationCousinGrandparentsSiblingsChild returns the string constant CNLabelContactRelationCousinGrandparentsSiblingsChild, for use as a dictionary key or argument.
func CNLabelContactRelationCousinGrandparentsSiblingsDaughter ¶
CNLabelContactRelationCousinGrandparentsSiblingsDaughter returns the string constant CNLabelContactRelationCousinGrandparentsSiblingsDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationCousinGrandparentsSiblingsSon ¶
CNLabelContactRelationCousinGrandparentsSiblingsSon returns the string constant CNLabelContactRelationCousinGrandparentsSiblingsSon, for use as a dictionary key or argument.
func CNLabelContactRelationCousinMothersBrothersDaughter ¶
CNLabelContactRelationCousinMothersBrothersDaughter returns the string constant CNLabelContactRelationCousinMothersBrothersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationCousinMothersBrothersSon ¶
CNLabelContactRelationCousinMothersBrothersSon returns the string constant CNLabelContactRelationCousinMothersBrothersSon, for use as a dictionary key or argument.
func CNLabelContactRelationCousinMothersSistersDaughter ¶
CNLabelContactRelationCousinMothersSistersDaughter returns the string constant CNLabelContactRelationCousinMothersSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationCousinMothersSistersSon ¶
CNLabelContactRelationCousinMothersSistersSon returns the string constant CNLabelContactRelationCousinMothersSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationCousinOrSiblingsChild ¶
CNLabelContactRelationCousinOrSiblingsChild returns the string constant CNLabelContactRelationCousinOrSiblingsChild, for use as a dictionary key or argument.
func CNLabelContactRelationCousinParentsSiblingsChild ¶
CNLabelContactRelationCousinParentsSiblingsChild returns the string constant CNLabelContactRelationCousinParentsSiblingsChild, for use as a dictionary key or argument.
func CNLabelContactRelationCousinParentsSiblingsDaughter ¶
CNLabelContactRelationCousinParentsSiblingsDaughter returns the string constant CNLabelContactRelationCousinParentsSiblingsDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationCousinParentsSiblingsSon ¶
CNLabelContactRelationCousinParentsSiblingsSon returns the string constant CNLabelContactRelationCousinParentsSiblingsSon, for use as a dictionary key or argument.
func CNLabelContactRelationDaughter ¶
CNLabelContactRelationDaughter returns the string constant CNLabelContactRelationDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationDaughterInLaw ¶
CNLabelContactRelationDaughterInLaw returns the string constant CNLabelContactRelationDaughterInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationDaughterInLawOrSisterInLaw ¶
CNLabelContactRelationDaughterInLawOrSisterInLaw returns the string constant CNLabelContactRelationDaughterInLawOrSisterInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationDaughterInLawOrStepdaughter ¶
CNLabelContactRelationDaughterInLawOrStepdaughter returns the string constant CNLabelContactRelationDaughterInLawOrStepdaughter, for use as a dictionary key or argument.
func CNLabelContactRelationElderBrother ¶
CNLabelContactRelationElderBrother returns the string constant CNLabelContactRelationElderBrother, for use as a dictionary key or argument.
func CNLabelContactRelationElderBrotherInLaw ¶
CNLabelContactRelationElderBrotherInLaw returns the string constant CNLabelContactRelationElderBrotherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousin ¶
CNLabelContactRelationElderCousin returns the string constant CNLabelContactRelationElderCousin, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinFathersBrothersDaughter ¶
CNLabelContactRelationElderCousinFathersBrothersDaughter returns the string constant CNLabelContactRelationElderCousinFathersBrothersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinFathersBrothersSon ¶
CNLabelContactRelationElderCousinFathersBrothersSon returns the string constant CNLabelContactRelationElderCousinFathersBrothersSon, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinFathersSistersDaughter ¶
CNLabelContactRelationElderCousinFathersSistersDaughter returns the string constant CNLabelContactRelationElderCousinFathersSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinFathersSistersSon ¶
CNLabelContactRelationElderCousinFathersSistersSon returns the string constant CNLabelContactRelationElderCousinFathersSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinMothersBrothersDaughter ¶
CNLabelContactRelationElderCousinMothersBrothersDaughter returns the string constant CNLabelContactRelationElderCousinMothersBrothersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinMothersBrothersSon ¶
CNLabelContactRelationElderCousinMothersBrothersSon returns the string constant CNLabelContactRelationElderCousinMothersBrothersSon, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter ¶
CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter returns the string constant CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon ¶
CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon returns the string constant CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinMothersSistersDaughter ¶
CNLabelContactRelationElderCousinMothersSistersDaughter returns the string constant CNLabelContactRelationElderCousinMothersSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinMothersSistersSon ¶
CNLabelContactRelationElderCousinMothersSistersSon returns the string constant CNLabelContactRelationElderCousinMothersSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinParentsSiblingsDaughter ¶
CNLabelContactRelationElderCousinParentsSiblingsDaughter returns the string constant CNLabelContactRelationElderCousinParentsSiblingsDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationElderCousinParentsSiblingsSon ¶
CNLabelContactRelationElderCousinParentsSiblingsSon returns the string constant CNLabelContactRelationElderCousinParentsSiblingsSon, for use as a dictionary key or argument.
func CNLabelContactRelationElderSibling ¶
CNLabelContactRelationElderSibling returns the string constant CNLabelContactRelationElderSibling, for use as a dictionary key or argument.
func CNLabelContactRelationElderSiblingInLaw ¶
CNLabelContactRelationElderSiblingInLaw returns the string constant CNLabelContactRelationElderSiblingInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationElderSister ¶
CNLabelContactRelationElderSister returns the string constant CNLabelContactRelationElderSister, for use as a dictionary key or argument.
func CNLabelContactRelationElderSisterInLaw ¶
CNLabelContactRelationElderSisterInLaw returns the string constant CNLabelContactRelationElderSisterInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationEldestBrother ¶
CNLabelContactRelationEldestBrother returns the string constant CNLabelContactRelationEldestBrother, for use as a dictionary key or argument.
func CNLabelContactRelationEldestSister ¶
CNLabelContactRelationEldestSister returns the string constant CNLabelContactRelationEldestSister, for use as a dictionary key or argument.
func CNLabelContactRelationFather ¶
CNLabelContactRelationFather returns the string constant CNLabelContactRelationFather, for use as a dictionary key or argument.
func CNLabelContactRelationFatherInLaw ¶
CNLabelContactRelationFatherInLaw returns the string constant CNLabelContactRelationFatherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationFatherInLawHusbandsFather ¶
CNLabelContactRelationFatherInLawHusbandsFather returns the string constant CNLabelContactRelationFatherInLawHusbandsFather, for use as a dictionary key or argument.
func CNLabelContactRelationFatherInLawOrStepfather ¶
CNLabelContactRelationFatherInLawOrStepfather returns the string constant CNLabelContactRelationFatherInLawOrStepfather, for use as a dictionary key or argument.
func CNLabelContactRelationFatherInLawWifesFather ¶
CNLabelContactRelationFatherInLawWifesFather returns the string constant CNLabelContactRelationFatherInLawWifesFather, for use as a dictionary key or argument.
func CNLabelContactRelationFemaleCousin ¶
CNLabelContactRelationFemaleCousin returns the string constant CNLabelContactRelationFemaleCousin, for use as a dictionary key or argument.
func CNLabelContactRelationFemaleFriend ¶
CNLabelContactRelationFemaleFriend returns the string constant CNLabelContactRelationFemaleFriend, for use as a dictionary key or argument.
func CNLabelContactRelationFemalePartner ¶
CNLabelContactRelationFemalePartner returns the string constant CNLabelContactRelationFemalePartner, for use as a dictionary key or argument.
func CNLabelContactRelationFriend ¶
CNLabelContactRelationFriend returns the string constant CNLabelContactRelationFriend, for use as a dictionary key or argument.
func CNLabelContactRelationGirlfriend ¶
CNLabelContactRelationGirlfriend returns the string constant CNLabelContactRelationGirlfriend, for use as a dictionary key or argument.
func CNLabelContactRelationGirlfriendOrBoyfriend ¶
CNLabelContactRelationGirlfriendOrBoyfriend returns the string constant CNLabelContactRelationGirlfriendOrBoyfriend, for use as a dictionary key or argument.
func CNLabelContactRelationGrandaunt ¶
CNLabelContactRelationGrandaunt returns the string constant CNLabelContactRelationGrandaunt, for use as a dictionary key or argument.
func CNLabelContactRelationGrandchild ¶
CNLabelContactRelationGrandchild returns the string constant CNLabelContactRelationGrandchild, for use as a dictionary key or argument.
func CNLabelContactRelationGrandchildOrSiblingsChild ¶
CNLabelContactRelationGrandchildOrSiblingsChild returns the string constant CNLabelContactRelationGrandchildOrSiblingsChild, for use as a dictionary key or argument.
func CNLabelContactRelationGranddaughter ¶
CNLabelContactRelationGranddaughter returns the string constant CNLabelContactRelationGranddaughter, for use as a dictionary key or argument.
func CNLabelContactRelationGranddaughterDaughtersDaughter ¶
CNLabelContactRelationGranddaughterDaughtersDaughter returns the string constant CNLabelContactRelationGranddaughterDaughtersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationGranddaughterOrNiece ¶
CNLabelContactRelationGranddaughterOrNiece returns the string constant CNLabelContactRelationGranddaughterOrNiece, for use as a dictionary key or argument.
func CNLabelContactRelationGranddaughterSonsDaughter ¶
CNLabelContactRelationGranddaughterSonsDaughter returns the string constant CNLabelContactRelationGranddaughterSonsDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationGrandfather ¶
CNLabelContactRelationGrandfather returns the string constant CNLabelContactRelationGrandfather, for use as a dictionary key or argument.
func CNLabelContactRelationGrandfatherFathersFather ¶
CNLabelContactRelationGrandfatherFathersFather returns the string constant CNLabelContactRelationGrandfatherFathersFather, for use as a dictionary key or argument.
func CNLabelContactRelationGrandfatherMothersFather ¶
CNLabelContactRelationGrandfatherMothersFather returns the string constant CNLabelContactRelationGrandfatherMothersFather, for use as a dictionary key or argument.
func CNLabelContactRelationGrandmother ¶
CNLabelContactRelationGrandmother returns the string constant CNLabelContactRelationGrandmother, for use as a dictionary key or argument.
func CNLabelContactRelationGrandmotherFathersMother ¶
CNLabelContactRelationGrandmotherFathersMother returns the string constant CNLabelContactRelationGrandmotherFathersMother, for use as a dictionary key or argument.
func CNLabelContactRelationGrandmotherMothersMother ¶
CNLabelContactRelationGrandmotherMothersMother returns the string constant CNLabelContactRelationGrandmotherMothersMother, for use as a dictionary key or argument.
func CNLabelContactRelationGrandnephew ¶
CNLabelContactRelationGrandnephew returns the string constant CNLabelContactRelationGrandnephew, for use as a dictionary key or argument.
func CNLabelContactRelationGrandnephewBrothersGrandson ¶
CNLabelContactRelationGrandnephewBrothersGrandson returns the string constant CNLabelContactRelationGrandnephewBrothersGrandson, for use as a dictionary key or argument.
func CNLabelContactRelationGrandnephewSistersGrandson ¶
CNLabelContactRelationGrandnephewSistersGrandson returns the string constant CNLabelContactRelationGrandnephewSistersGrandson, for use as a dictionary key or argument.
func CNLabelContactRelationGrandniece ¶
CNLabelContactRelationGrandniece returns the string constant CNLabelContactRelationGrandniece, for use as a dictionary key or argument.
func CNLabelContactRelationGrandnieceBrothersGranddaughter ¶
CNLabelContactRelationGrandnieceBrothersGranddaughter returns the string constant CNLabelContactRelationGrandnieceBrothersGranddaughter, for use as a dictionary key or argument.
func CNLabelContactRelationGrandnieceSistersGranddaughter ¶
CNLabelContactRelationGrandnieceSistersGranddaughter returns the string constant CNLabelContactRelationGrandnieceSistersGranddaughter, for use as a dictionary key or argument.
func CNLabelContactRelationGrandparent ¶
CNLabelContactRelationGrandparent returns the string constant CNLabelContactRelationGrandparent, for use as a dictionary key or argument.
func CNLabelContactRelationGrandson ¶
CNLabelContactRelationGrandson returns the string constant CNLabelContactRelationGrandson, for use as a dictionary key or argument.
func CNLabelContactRelationGrandsonDaughtersSon ¶
CNLabelContactRelationGrandsonDaughtersSon returns the string constant CNLabelContactRelationGrandsonDaughtersSon, for use as a dictionary key or argument.
func CNLabelContactRelationGrandsonOrNephew ¶
CNLabelContactRelationGrandsonOrNephew returns the string constant CNLabelContactRelationGrandsonOrNephew, for use as a dictionary key or argument.
func CNLabelContactRelationGrandsonSonsSon ¶
CNLabelContactRelationGrandsonSonsSon returns the string constant CNLabelContactRelationGrandsonSonsSon, for use as a dictionary key or argument.
func CNLabelContactRelationGranduncle ¶
CNLabelContactRelationGranduncle returns the string constant CNLabelContactRelationGranduncle, for use as a dictionary key or argument.
func CNLabelContactRelationGreatGrandchild ¶
CNLabelContactRelationGreatGrandchild returns the string constant CNLabelContactRelationGreatGrandchild, for use as a dictionary key or argument.
func CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild ¶
CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild returns the string constant CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild, for use as a dictionary key or argument.
func CNLabelContactRelationGreatGranddaughter ¶
CNLabelContactRelationGreatGranddaughter returns the string constant CNLabelContactRelationGreatGranddaughter, for use as a dictionary key or argument.
func CNLabelContactRelationGreatGrandfather ¶
CNLabelContactRelationGreatGrandfather returns the string constant CNLabelContactRelationGreatGrandfather, for use as a dictionary key or argument.
func CNLabelContactRelationGreatGrandmother ¶
CNLabelContactRelationGreatGrandmother returns the string constant CNLabelContactRelationGreatGrandmother, for use as a dictionary key or argument.
func CNLabelContactRelationGreatGrandparent ¶
CNLabelContactRelationGreatGrandparent returns the string constant CNLabelContactRelationGreatGrandparent, for use as a dictionary key or argument.
func CNLabelContactRelationGreatGrandson ¶
CNLabelContactRelationGreatGrandson returns the string constant CNLabelContactRelationGreatGrandson, for use as a dictionary key or argument.
func CNLabelContactRelationHusband ¶
CNLabelContactRelationHusband returns the string constant CNLabelContactRelationHusband, for use as a dictionary key or argument.
func CNLabelContactRelationMaleCousin ¶
CNLabelContactRelationMaleCousin returns the string constant CNLabelContactRelationMaleCousin, for use as a dictionary key or argument.
func CNLabelContactRelationMaleFriend ¶
CNLabelContactRelationMaleFriend returns the string constant CNLabelContactRelationMaleFriend, for use as a dictionary key or argument.
func CNLabelContactRelationMalePartner ¶
CNLabelContactRelationMalePartner returns the string constant CNLabelContactRelationMalePartner, for use as a dictionary key or argument.
func CNLabelContactRelationManager ¶
CNLabelContactRelationManager returns the string constant CNLabelContactRelationManager, for use as a dictionary key or argument.
func CNLabelContactRelationMother ¶
CNLabelContactRelationMother returns the string constant CNLabelContactRelationMother, for use as a dictionary key or argument.
func CNLabelContactRelationMotherInLaw ¶
CNLabelContactRelationMotherInLaw returns the string constant CNLabelContactRelationMotherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationMotherInLawHusbandsMother ¶
CNLabelContactRelationMotherInLawHusbandsMother returns the string constant CNLabelContactRelationMotherInLawHusbandsMother, for use as a dictionary key or argument.
func CNLabelContactRelationMotherInLawOrStepmother ¶
CNLabelContactRelationMotherInLawOrStepmother returns the string constant CNLabelContactRelationMotherInLawOrStepmother, for use as a dictionary key or argument.
func CNLabelContactRelationMotherInLawWifesMother ¶
CNLabelContactRelationMotherInLawWifesMother returns the string constant CNLabelContactRelationMotherInLawWifesMother, for use as a dictionary key or argument.
func CNLabelContactRelationNephew ¶
CNLabelContactRelationNephew returns the string constant CNLabelContactRelationNephew, for use as a dictionary key or argument.
func CNLabelContactRelationNephewBrothersSon ¶
CNLabelContactRelationNephewBrothersSon returns the string constant CNLabelContactRelationNephewBrothersSon, for use as a dictionary key or argument.
func CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon ¶
CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon returns the string constant CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon, for use as a dictionary key or argument.
func CNLabelContactRelationNephewOrCousin ¶
CNLabelContactRelationNephewOrCousin returns the string constant CNLabelContactRelationNephewOrCousin, for use as a dictionary key or argument.
func CNLabelContactRelationNephewSistersSon ¶
CNLabelContactRelationNephewSistersSon returns the string constant CNLabelContactRelationNephewSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon ¶
CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon returns the string constant CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon, for use as a dictionary key or argument.
func CNLabelContactRelationNiece ¶
CNLabelContactRelationNiece returns the string constant CNLabelContactRelationNiece, for use as a dictionary key or argument.
func CNLabelContactRelationNieceBrothersDaughter ¶
CNLabelContactRelationNieceBrothersDaughter returns the string constant CNLabelContactRelationNieceBrothersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter ¶
CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter returns the string constant CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationNieceOrCousin ¶
CNLabelContactRelationNieceOrCousin returns the string constant CNLabelContactRelationNieceOrCousin, for use as a dictionary key or argument.
func CNLabelContactRelationNieceSistersDaughter ¶
CNLabelContactRelationNieceSistersDaughter returns the string constant CNLabelContactRelationNieceSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter ¶
CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter returns the string constant CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationParent ¶
CNLabelContactRelationParent returns the string constant CNLabelContactRelationParent, for use as a dictionary key or argument.
func CNLabelContactRelationParentInLaw ¶
CNLabelContactRelationParentInLaw returns the string constant CNLabelContactRelationParentInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationParentsElderSibling ¶
CNLabelContactRelationParentsElderSibling returns the string constant CNLabelContactRelationParentsElderSibling, for use as a dictionary key or argument.
func CNLabelContactRelationParentsSibling ¶
CNLabelContactRelationParentsSibling returns the string constant CNLabelContactRelationParentsSibling, for use as a dictionary key or argument.
func CNLabelContactRelationParentsSiblingFathersElderSibling ¶
CNLabelContactRelationParentsSiblingFathersElderSibling returns the string constant CNLabelContactRelationParentsSiblingFathersElderSibling, for use as a dictionary key or argument.
func CNLabelContactRelationParentsSiblingFathersSibling ¶
CNLabelContactRelationParentsSiblingFathersSibling returns the string constant CNLabelContactRelationParentsSiblingFathersSibling, for use as a dictionary key or argument.
func CNLabelContactRelationParentsSiblingFathersYoungerSibling ¶
CNLabelContactRelationParentsSiblingFathersYoungerSibling returns the string constant CNLabelContactRelationParentsSiblingFathersYoungerSibling, for use as a dictionary key or argument.
func CNLabelContactRelationParentsSiblingMothersElderSibling ¶
CNLabelContactRelationParentsSiblingMothersElderSibling returns the string constant CNLabelContactRelationParentsSiblingMothersElderSibling, for use as a dictionary key or argument.
func CNLabelContactRelationParentsSiblingMothersSibling ¶
CNLabelContactRelationParentsSiblingMothersSibling returns the string constant CNLabelContactRelationParentsSiblingMothersSibling, for use as a dictionary key or argument.
func CNLabelContactRelationParentsSiblingMothersYoungerSibling ¶
CNLabelContactRelationParentsSiblingMothersYoungerSibling returns the string constant CNLabelContactRelationParentsSiblingMothersYoungerSibling, for use as a dictionary key or argument.
func CNLabelContactRelationParentsYoungerSibling ¶
CNLabelContactRelationParentsYoungerSibling returns the string constant CNLabelContactRelationParentsYoungerSibling, for use as a dictionary key or argument.
func CNLabelContactRelationPartner ¶
CNLabelContactRelationPartner returns the string constant CNLabelContactRelationPartner, for use as a dictionary key or argument.
func CNLabelContactRelationSibling ¶
CNLabelContactRelationSibling returns the string constant CNLabelContactRelationSibling, for use as a dictionary key or argument.
func CNLabelContactRelationSiblingInLaw ¶
CNLabelContactRelationSiblingInLaw returns the string constant CNLabelContactRelationSiblingInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationSiblingsChild ¶
CNLabelContactRelationSiblingsChild returns the string constant CNLabelContactRelationSiblingsChild, for use as a dictionary key or argument.
func CNLabelContactRelationSister ¶
CNLabelContactRelationSister returns the string constant CNLabelContactRelationSister, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLaw ¶
CNLabelContactRelationSisterInLaw returns the string constant CNLabelContactRelationSisterInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLawBrothersWife ¶
CNLabelContactRelationSisterInLawBrothersWife returns the string constant CNLabelContactRelationSisterInLawBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLawElderBrothersWife ¶
CNLabelContactRelationSisterInLawElderBrothersWife returns the string constant CNLabelContactRelationSisterInLawElderBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLawHusbandsBrothersWife ¶
CNLabelContactRelationSisterInLawHusbandsBrothersWife returns the string constant CNLabelContactRelationSisterInLawHusbandsBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLawHusbandsSister ¶
CNLabelContactRelationSisterInLawHusbandsSister returns the string constant CNLabelContactRelationSisterInLawHusbandsSister, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLawSpousesSister ¶
CNLabelContactRelationSisterInLawSpousesSister returns the string constant CNLabelContactRelationSisterInLawSpousesSister, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLawWifesBrothersWife ¶
CNLabelContactRelationSisterInLawWifesBrothersWife returns the string constant CNLabelContactRelationSisterInLawWifesBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLawWifesSister ¶
CNLabelContactRelationSisterInLawWifesSister returns the string constant CNLabelContactRelationSisterInLawWifesSister, for use as a dictionary key or argument.
func CNLabelContactRelationSisterInLawYoungerBrothersWife ¶
CNLabelContactRelationSisterInLawYoungerBrothersWife returns the string constant CNLabelContactRelationSisterInLawYoungerBrothersWife, for use as a dictionary key or argument.
func CNLabelContactRelationSon ¶
CNLabelContactRelationSon returns the string constant CNLabelContactRelationSon, for use as a dictionary key or argument.
func CNLabelContactRelationSonInLaw ¶
CNLabelContactRelationSonInLaw returns the string constant CNLabelContactRelationSonInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationSonInLawOrBrotherInLaw ¶
CNLabelContactRelationSonInLawOrBrotherInLaw returns the string constant CNLabelContactRelationSonInLawOrBrotherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationSonInLawOrStepson ¶
CNLabelContactRelationSonInLawOrStepson returns the string constant CNLabelContactRelationSonInLawOrStepson, for use as a dictionary key or argument.
func CNLabelContactRelationSpouse ¶
CNLabelContactRelationSpouse returns the string constant CNLabelContactRelationSpouse, for use as a dictionary key or argument.
func CNLabelContactRelationStepbrother ¶
CNLabelContactRelationStepbrother returns the string constant CNLabelContactRelationStepbrother, for use as a dictionary key or argument.
func CNLabelContactRelationStepchild ¶
CNLabelContactRelationStepchild returns the string constant CNLabelContactRelationStepchild, for use as a dictionary key or argument.
func CNLabelContactRelationStepdaughter ¶
CNLabelContactRelationStepdaughter returns the string constant CNLabelContactRelationStepdaughter, for use as a dictionary key or argument.
func CNLabelContactRelationStepfather ¶
CNLabelContactRelationStepfather returns the string constant CNLabelContactRelationStepfather, for use as a dictionary key or argument.
func CNLabelContactRelationStepmother ¶
CNLabelContactRelationStepmother returns the string constant CNLabelContactRelationStepmother, for use as a dictionary key or argument.
func CNLabelContactRelationStepparent ¶
CNLabelContactRelationStepparent returns the string constant CNLabelContactRelationStepparent, for use as a dictionary key or argument.
func CNLabelContactRelationStepsister ¶
CNLabelContactRelationStepsister returns the string constant CNLabelContactRelationStepsister, for use as a dictionary key or argument.
func CNLabelContactRelationStepson ¶
CNLabelContactRelationStepson returns the string constant CNLabelContactRelationStepson, for use as a dictionary key or argument.
func CNLabelContactRelationTeacher ¶
CNLabelContactRelationTeacher returns the string constant CNLabelContactRelationTeacher, for use as a dictionary key or argument.
func CNLabelContactRelationUncle ¶
CNLabelContactRelationUncle returns the string constant CNLabelContactRelationUncle, for use as a dictionary key or argument.
func CNLabelContactRelationUncleFathersBrother ¶
CNLabelContactRelationUncleFathersBrother returns the string constant CNLabelContactRelationUncleFathersBrother, for use as a dictionary key or argument.
func CNLabelContactRelationUncleFathersElderBrother ¶
CNLabelContactRelationUncleFathersElderBrother returns the string constant CNLabelContactRelationUncleFathersElderBrother, for use as a dictionary key or argument.
func CNLabelContactRelationUncleFathersElderSistersHusband ¶
CNLabelContactRelationUncleFathersElderSistersHusband returns the string constant CNLabelContactRelationUncleFathersElderSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationUncleFathersSistersHusband ¶
CNLabelContactRelationUncleFathersSistersHusband returns the string constant CNLabelContactRelationUncleFathersSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationUncleFathersYoungerBrother ¶
CNLabelContactRelationUncleFathersYoungerBrother returns the string constant CNLabelContactRelationUncleFathersYoungerBrother, for use as a dictionary key or argument.
func CNLabelContactRelationUncleFathersYoungerSistersHusband ¶
CNLabelContactRelationUncleFathersYoungerSistersHusband returns the string constant CNLabelContactRelationUncleFathersYoungerSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationUncleMothersBrother ¶
CNLabelContactRelationUncleMothersBrother returns the string constant CNLabelContactRelationUncleMothersBrother, for use as a dictionary key or argument.
func CNLabelContactRelationUncleMothersElderBrother ¶
CNLabelContactRelationUncleMothersElderBrother returns the string constant CNLabelContactRelationUncleMothersElderBrother, for use as a dictionary key or argument.
func CNLabelContactRelationUncleMothersSistersHusband ¶
CNLabelContactRelationUncleMothersSistersHusband returns the string constant CNLabelContactRelationUncleMothersSistersHusband, for use as a dictionary key or argument.
func CNLabelContactRelationUncleMothersYoungerBrother ¶
CNLabelContactRelationUncleMothersYoungerBrother returns the string constant CNLabelContactRelationUncleMothersYoungerBrother, for use as a dictionary key or argument.
func CNLabelContactRelationUncleParentsBrother ¶
CNLabelContactRelationUncleParentsBrother returns the string constant CNLabelContactRelationUncleParentsBrother, for use as a dictionary key or argument.
func CNLabelContactRelationUncleParentsElderBrother ¶
CNLabelContactRelationUncleParentsElderBrother returns the string constant CNLabelContactRelationUncleParentsElderBrother, for use as a dictionary key or argument.
func CNLabelContactRelationUncleParentsYoungerBrother ¶
CNLabelContactRelationUncleParentsYoungerBrother returns the string constant CNLabelContactRelationUncleParentsYoungerBrother, for use as a dictionary key or argument.
func CNLabelContactRelationWife ¶
CNLabelContactRelationWife returns the string constant CNLabelContactRelationWife, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerBrother ¶
CNLabelContactRelationYoungerBrother returns the string constant CNLabelContactRelationYoungerBrother, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerBrotherInLaw ¶
CNLabelContactRelationYoungerBrotherInLaw returns the string constant CNLabelContactRelationYoungerBrotherInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousin ¶
CNLabelContactRelationYoungerCousin returns the string constant CNLabelContactRelationYoungerCousin, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinFathersBrothersDaughter ¶
CNLabelContactRelationYoungerCousinFathersBrothersDaughter returns the string constant CNLabelContactRelationYoungerCousinFathersBrothersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinFathersBrothersSon ¶
CNLabelContactRelationYoungerCousinFathersBrothersSon returns the string constant CNLabelContactRelationYoungerCousinFathersBrothersSon, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinFathersSistersDaughter ¶
CNLabelContactRelationYoungerCousinFathersSistersDaughter returns the string constant CNLabelContactRelationYoungerCousinFathersSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinFathersSistersSon ¶
CNLabelContactRelationYoungerCousinFathersSistersSon returns the string constant CNLabelContactRelationYoungerCousinFathersSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinMothersBrothersDaughter ¶
CNLabelContactRelationYoungerCousinMothersBrothersDaughter returns the string constant CNLabelContactRelationYoungerCousinMothersBrothersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinMothersBrothersSon ¶
CNLabelContactRelationYoungerCousinMothersBrothersSon returns the string constant CNLabelContactRelationYoungerCousinMothersBrothersSon, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter ¶
func CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter() obj.Object
CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter returns the string constant CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon ¶
CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon returns the string constant CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinMothersSistersDaughter ¶
CNLabelContactRelationYoungerCousinMothersSistersDaughter returns the string constant CNLabelContactRelationYoungerCousinMothersSistersDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinMothersSistersSon ¶
CNLabelContactRelationYoungerCousinMothersSistersSon returns the string constant CNLabelContactRelationYoungerCousinMothersSistersSon, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinParentsSiblingsDaughter ¶
CNLabelContactRelationYoungerCousinParentsSiblingsDaughter returns the string constant CNLabelContactRelationYoungerCousinParentsSiblingsDaughter, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerCousinParentsSiblingsSon ¶
CNLabelContactRelationYoungerCousinParentsSiblingsSon returns the string constant CNLabelContactRelationYoungerCousinParentsSiblingsSon, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerSibling ¶
CNLabelContactRelationYoungerSibling returns the string constant CNLabelContactRelationYoungerSibling, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerSiblingInLaw ¶
CNLabelContactRelationYoungerSiblingInLaw returns the string constant CNLabelContactRelationYoungerSiblingInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerSister ¶
CNLabelContactRelationYoungerSister returns the string constant CNLabelContactRelationYoungerSister, for use as a dictionary key or argument.
func CNLabelContactRelationYoungerSisterInLaw ¶
CNLabelContactRelationYoungerSisterInLaw returns the string constant CNLabelContactRelationYoungerSisterInLaw, for use as a dictionary key or argument.
func CNLabelContactRelationYoungestBrother ¶
CNLabelContactRelationYoungestBrother returns the string constant CNLabelContactRelationYoungestBrother, for use as a dictionary key or argument.
func CNLabelContactRelationYoungestSister ¶
CNLabelContactRelationYoungestSister returns the string constant CNLabelContactRelationYoungestSister, for use as a dictionary key or argument.
func CNLabelDateAnniversary ¶
CNLabelDateAnniversary returns the string constant CNLabelDateAnniversary, for use as a dictionary key or argument.
func CNLabelEmailiCloud ¶
CNLabelEmailiCloud returns the string constant CNLabelEmailiCloud, for use as a dictionary key or argument.
func CNLabelHome ¶
CNLabelHome returns the string constant CNLabelHome, for use as a dictionary key or argument.
func CNLabelOther ¶
CNLabelOther returns the string constant CNLabelOther, for use as a dictionary key or argument.
func CNLabelPhoneNumberAppleWatch ¶
CNLabelPhoneNumberAppleWatch returns the string constant CNLabelPhoneNumberAppleWatch, for use as a dictionary key or argument.
func CNLabelPhoneNumberHomeFax ¶
CNLabelPhoneNumberHomeFax returns the string constant CNLabelPhoneNumberHomeFax, for use as a dictionary key or argument.
func CNLabelPhoneNumberMain ¶
CNLabelPhoneNumberMain returns the string constant CNLabelPhoneNumberMain, for use as a dictionary key or argument.
func CNLabelPhoneNumberMobile ¶
CNLabelPhoneNumberMobile returns the string constant CNLabelPhoneNumberMobile, for use as a dictionary key or argument.
func CNLabelPhoneNumberOtherFax ¶
CNLabelPhoneNumberOtherFax returns the string constant CNLabelPhoneNumberOtherFax, for use as a dictionary key or argument.
func CNLabelPhoneNumberPager ¶
CNLabelPhoneNumberPager returns the string constant CNLabelPhoneNumberPager, for use as a dictionary key or argument.
func CNLabelPhoneNumberWorkFax ¶
CNLabelPhoneNumberWorkFax returns the string constant CNLabelPhoneNumberWorkFax, for use as a dictionary key or argument.
func CNLabelPhoneNumberiPhone ¶
CNLabelPhoneNumberiPhone returns the string constant CNLabelPhoneNumberiPhone, for use as a dictionary key or argument.
func CNLabelSchool ¶
CNLabelSchool returns the string constant CNLabelSchool, for use as a dictionary key or argument.
func CNLabelURLAddressHomePage ¶
CNLabelURLAddressHomePage returns the string constant CNLabelURLAddressHomePage, for use as a dictionary key or argument.
func CNLabelWork ¶
CNLabelWork returns the string constant CNLabelWork, for use as a dictionary key or argument.
func CNPostalAddressCityKey ¶
CNPostalAddressCityKey returns the string constant CNPostalAddressCityKey, for use as a dictionary key or argument.
func CNPostalAddressCountryKey ¶
CNPostalAddressCountryKey returns the string constant CNPostalAddressCountryKey, for use as a dictionary key or argument.
func CNPostalAddressISOCountryCodeKey ¶
CNPostalAddressISOCountryCodeKey returns the string constant CNPostalAddressISOCountryCodeKey, for use as a dictionary key or argument.
func CNPostalAddressLocalizedPropertyNameAttribute ¶
CNPostalAddressLocalizedPropertyNameAttribute returns the string constant CNPostalAddressLocalizedPropertyNameAttribute, for use as a dictionary key or argument.
func CNPostalAddressLocalizedStringForKey ¶
CNPostalAddressLocalizedStringForKey returns the localized name for the property associated with the specified key.
func CNPostalAddressPostalCodeKey ¶
CNPostalAddressPostalCodeKey returns the string constant CNPostalAddressPostalCodeKey, for use as a dictionary key or argument.
func CNPostalAddressPropertyAttribute ¶
CNPostalAddressPropertyAttribute returns the string constant CNPostalAddressPropertyAttribute, for use as a dictionary key or argument.
func CNPostalAddressStateKey ¶
CNPostalAddressStateKey returns the string constant CNPostalAddressStateKey, for use as a dictionary key or argument.
func CNPostalAddressStreetKey ¶
CNPostalAddressStreetKey returns the string constant CNPostalAddressStreetKey, for use as a dictionary key or argument.
func CNPostalAddressSubAdministrativeAreaKey ¶
CNPostalAddressSubAdministrativeAreaKey returns the string constant CNPostalAddressSubAdministrativeAreaKey, for use as a dictionary key or argument.
func CNPostalAddressSubLocalityKey ¶
CNPostalAddressSubLocalityKey returns the string constant CNPostalAddressSubLocalityKey, for use as a dictionary key or argument.
func CNSocialProfileLocalizedStringForKey ¶
CNSocialProfileLocalizedStringForKey returns the localized name of the property for the specified key.
func CNSocialProfileLocalizedStringForService ¶
CNSocialProfileLocalizedStringForService returns the localized name of the specified service.
func CNSocialProfileServiceFacebook ¶
CNSocialProfileServiceFacebook returns the string constant CNSocialProfileServiceFacebook, for use as a dictionary key or argument.
func CNSocialProfileServiceFlickr ¶
CNSocialProfileServiceFlickr returns the string constant CNSocialProfileServiceFlickr, for use as a dictionary key or argument.
func CNSocialProfileServiceGameCenter ¶
CNSocialProfileServiceGameCenter returns the string constant CNSocialProfileServiceGameCenter, for use as a dictionary key or argument.
func CNSocialProfileServiceKey ¶
CNSocialProfileServiceKey returns the string constant CNSocialProfileServiceKey, for use as a dictionary key or argument.
func CNSocialProfileServiceLinkedIn ¶
CNSocialProfileServiceLinkedIn returns the string constant CNSocialProfileServiceLinkedIn, for use as a dictionary key or argument.
func CNSocialProfileServiceMySpace ¶
CNSocialProfileServiceMySpace returns the string constant CNSocialProfileServiceMySpace, for use as a dictionary key or argument.
func CNSocialProfileServiceSinaWeibo ¶
CNSocialProfileServiceSinaWeibo returns the string constant CNSocialProfileServiceSinaWeibo, for use as a dictionary key or argument.
func CNSocialProfileServiceTencentWeibo ¶
CNSocialProfileServiceTencentWeibo returns the string constant CNSocialProfileServiceTencentWeibo, for use as a dictionary key or argument.
func CNSocialProfileServiceTwitter ¶
CNSocialProfileServiceTwitter returns the string constant CNSocialProfileServiceTwitter, for use as a dictionary key or argument.
func CNSocialProfileServiceYelp ¶
CNSocialProfileServiceYelp returns the string constant CNSocialProfileServiceYelp, for use as a dictionary key or argument.
func CNSocialProfileURLStringKey ¶
CNSocialProfileURLStringKey returns the string constant CNSocialProfileURLStringKey, for use as a dictionary key or argument.
func CNSocialProfileUserIdentifierKey ¶
CNSocialProfileUserIdentifierKey returns the string constant CNSocialProfileUserIdentifierKey, for use as a dictionary key or argument.
func CNSocialProfileUsernameKey ¶
CNSocialProfileUsernameKey returns the string constant CNSocialProfileUsernameKey, for use as a dictionary key or argument.
func DataWithContacts ¶ added in v0.17.0
DataWithContacts returns the vCard representation of the specified contacts.
func DelimiterForContact ¶ added in v0.17.0
DelimiterForContact returns the delimiter to use between name components.
func LabeledValueWithLabelValue ¶ added in v0.17.0
LabeledValueWithLabelValue returns a new labeled value identifier.
func LocalizedStringForKey ¶ added in v0.17.0
LocalizedStringForKey returns a string containing the localized contact property name.
func LocalizedStringForLabel ¶ added in v0.17.0
LocalizedStringForLabel returns a localized string for the specified label.
func LocalizedStringForService ¶ added in v0.17.0
LocalizedStringForService returns a string containing the localized name of the specified service.
func PredicateForContactsInContainerWithIdentifier ¶ added in v0.17.0
func PredicateForContactsInContainerWithIdentifier(containerIdentifier string) *foundation.Predicate
PredicateForContactsInContainerWithIdentifier returns a predicate to find the contacts in the specified container.
func PredicateForContactsInGroupWithIdentifier ¶ added in v0.17.0
func PredicateForContactsInGroupWithIdentifier(groupIdentifier string) *foundation.Predicate
PredicateForContactsInGroupWithIdentifier returns a predicate to find the contacts that are members in the specified group.
func PredicateForContactsMatchingEmailAddress ¶ added in v0.17.0
func PredicateForContactsMatchingEmailAddress(emailAddress string) *foundation.Predicate
PredicateForContactsMatchingEmailAddress returns a predicate to find the contacts whose email address matches the specified value.
func PredicateForContactsMatchingName ¶ added in v0.17.0
func PredicateForContactsMatchingName(name string) *foundation.Predicate
PredicateForContactsMatchingName returns a predicate to find the contacts matching the specified name.
func PredicateForContactsMatchingPhoneNumber ¶ added in v0.17.0
func PredicateForContactsMatchingPhoneNumber(phoneNumber *PhoneNumber) *foundation.Predicate
PredicateForContactsMatchingPhoneNumber returns a predicate to find the contacts whose phone number matches the specified value.
func PredicateForContactsWithIdentifiers ¶ added in v0.17.0
func PredicateForContactsWithIdentifiers(identifiers []string) *foundation.Predicate
PredicateForContactsWithIdentifiers returns a predicate to find the contacts matching the specified identifiers.
func PredicateForContainerOfContactWithIdentifier ¶ added in v0.17.0
func PredicateForContainerOfContactWithIdentifier(contactIdentifier string) *foundation.Predicate
PredicateForContainerOfContactWithIdentifier returns a predicate to find the container of the specified contact.
func PredicateForContainerOfGroupWithIdentifier ¶ added in v0.17.0
func PredicateForContainerOfGroupWithIdentifier(groupIdentifier string) *foundation.Predicate
PredicateForContainerOfGroupWithIdentifier returns a predicate to find the container of the specified group.
func PredicateForContainersWithIdentifiers ¶ added in v0.17.0
func PredicateForContainersWithIdentifiers(identifiers []string) *foundation.Predicate
PredicateForContainersWithIdentifiers returns a predicate to find the containers with the specified identifiers.
func PredicateForGroupsInContainerWithIdentifier ¶ added in v0.17.0
func PredicateForGroupsInContainerWithIdentifier(containerIdentifier string) *foundation.Predicate
PredicateForGroupsInContainerWithIdentifier returns a predicate to find groups in the specified container.
func PredicateForGroupsWithIdentifiers ¶ added in v0.17.0
func PredicateForGroupsWithIdentifiers(identifiers []string) *foundation.Predicate
PredicateForGroupsWithIdentifiers returns a predicate to find groups with the specified identifiers.
func PredicateForSubgroupsInGroupWithIdentifier ¶ added in v0.17.0
func PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier string) *foundation.Predicate
PredicateForSubgroupsInGroupWithIdentifier returns a predicate to find subgroups in the specified parent group.
func StringFromContactStyle ¶ added in v0.17.0
func StringFromContactStyle(contact *Contact, style ContactFormatterStyle) string
StringFromContactStyle returns the contact name, formatted with the specified formatter.
func StringFromPostalAddressStyle ¶ added in v0.17.0
func StringFromPostalAddressStyle(postalAddress *PostalAddress, style PostalAddressFormatterStyle) string
StringFromPostalAddressStyle returns a postal address as a string and formatted for the specified style.
Types ¶
type AuthorizationStatus ¶ added in v0.17.0
type AuthorizationStatus int64
An authorization status the user can grant for an app to access the specified entity type.
const ( // The user has not yet made a choice regarding whether the application may access contact data. AuthorizationStatusNotDetermined AuthorizationStatus = 0 // The application is not authorized to access contact data. The user cannot change this application’s status, possibly due to active restrictions such as parental controls being in place. AuthorizationStatusRestricted AuthorizationStatus = 1 // The user explicitly denied access to contact data for the application. AuthorizationStatusDenied AuthorizationStatus = 2 // The application is authorized to access contact data. AuthorizationStatusAuthorized AuthorizationStatus = 3 // The app has access to a limited subset of contacts, chosen by the person using the app. AuthorizationStatusLimited AuthorizationStatus = 4 )
func AuthorizationStatusForEntityType ¶ added in v0.17.0
func AuthorizationStatusForEntityType(entityType EntityType) AuthorizationStatus
AuthorizationStatusForEntityType returns the current authorization status to access the contact data.
func (AuthorizationStatus) String ¶ added in v0.17.0
func (e AuthorizationStatus) String() string
String returns the AuthorizationStatus constant's name, or its numeric form when the value is not a known constant.
type ChangeHistoryAddContactEvent ¶ added in v0.17.0
type ChangeHistoryAddContactEvent struct {
ChangeHistoryEvent
}
ChangeHistoryAddContactEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryAddContactEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user adding a contact.
func ChangeHistoryAddContactEventFromID ¶ added in v0.17.0
func ChangeHistoryAddContactEventFromID(id objc.ID) *ChangeHistoryAddContactEvent
ChangeHistoryAddContactEventFromID adopts an existing Objective-C object as a ChangeHistoryAddContactEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryAddContactEvent ¶ added in v0.17.0
func NewChangeHistoryAddContactEvent() *ChangeHistoryAddContactEvent
NewChangeHistoryAddContactEvent creates a new ChangeHistoryAddContactEvent.
func (*ChangeHistoryAddContactEvent) Contact ¶ added in v0.17.0
func (chace *ChangeHistoryAddContactEvent) Contact() *Contact
Contact returns the contact.
func (*ChangeHistoryAddContactEvent) ContainerIdentifier ¶ added in v0.17.0
func (chace *ChangeHistoryAddContactEvent) ContainerIdentifier() string
ContainerIdentifier returns the container identifier.
type ChangeHistoryAddGroupEvent ¶ added in v0.17.0
type ChangeHistoryAddGroupEvent struct {
ChangeHistoryEvent
}
ChangeHistoryAddGroupEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryAddGroupEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user adding a group.
func ChangeHistoryAddGroupEventFromID ¶ added in v0.17.0
func ChangeHistoryAddGroupEventFromID(id objc.ID) *ChangeHistoryAddGroupEvent
ChangeHistoryAddGroupEventFromID adopts an existing Objective-C object as a ChangeHistoryAddGroupEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryAddGroupEvent ¶ added in v0.17.0
func NewChangeHistoryAddGroupEvent() *ChangeHistoryAddGroupEvent
NewChangeHistoryAddGroupEvent creates a new ChangeHistoryAddGroupEvent.
func (*ChangeHistoryAddGroupEvent) ContainerIdentifier ¶ added in v0.17.0
func (chage *ChangeHistoryAddGroupEvent) ContainerIdentifier() string
ContainerIdentifier returns the container identifier.
func (*ChangeHistoryAddGroupEvent) Group ¶ added in v0.17.0
func (chage *ChangeHistoryAddGroupEvent) Group() *Group
Group returns the group.
type ChangeHistoryAddMemberToGroupEvent ¶ added in v0.17.0
type ChangeHistoryAddMemberToGroupEvent struct {
ChangeHistoryEvent
}
ChangeHistoryAddMemberToGroupEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryAddMemberToGroupEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user adding a contact to a group.
func ChangeHistoryAddMemberToGroupEventFromID ¶ added in v0.17.0
func ChangeHistoryAddMemberToGroupEventFromID(id objc.ID) *ChangeHistoryAddMemberToGroupEvent
ChangeHistoryAddMemberToGroupEventFromID adopts an existing Objective-C object as a ChangeHistoryAddMemberToGroupEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryAddMemberToGroupEvent ¶ added in v0.17.0
func NewChangeHistoryAddMemberToGroupEvent() *ChangeHistoryAddMemberToGroupEvent
NewChangeHistoryAddMemberToGroupEvent creates a new ChangeHistoryAddMemberToGroupEvent.
func (*ChangeHistoryAddMemberToGroupEvent) Group ¶ added in v0.17.0
func (chamtge *ChangeHistoryAddMemberToGroupEvent) Group() *Group
Group returns the group.
func (*ChangeHistoryAddMemberToGroupEvent) Member ¶ added in v0.17.0
func (chamtge *ChangeHistoryAddMemberToGroupEvent) Member() *Contact
Member returns the member.
type ChangeHistoryAddSubgroupToGroupEvent ¶ added in v0.17.0
type ChangeHistoryAddSubgroupToGroupEvent struct {
ChangeHistoryEvent
}
ChangeHistoryAddSubgroupToGroupEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryAddSubgroupToGroupEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user adding a subgroup to a group.
func ChangeHistoryAddSubgroupToGroupEventFromID ¶ added in v0.17.0
func ChangeHistoryAddSubgroupToGroupEventFromID(id objc.ID) *ChangeHistoryAddSubgroupToGroupEvent
ChangeHistoryAddSubgroupToGroupEventFromID adopts an existing Objective-C object as a ChangeHistoryAddSubgroupToGroupEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryAddSubgroupToGroupEvent ¶ added in v0.17.0
func NewChangeHistoryAddSubgroupToGroupEvent() *ChangeHistoryAddSubgroupToGroupEvent
NewChangeHistoryAddSubgroupToGroupEvent creates a new ChangeHistoryAddSubgroupToGroupEvent.
func (*ChangeHistoryAddSubgroupToGroupEvent) Group ¶ added in v0.17.0
func (chastge *ChangeHistoryAddSubgroupToGroupEvent) Group() *Group
Group returns the group.
func (*ChangeHistoryAddSubgroupToGroupEvent) Subgroup ¶ added in v0.17.0
func (chastge *ChangeHistoryAddSubgroupToGroupEvent) Subgroup() *Group
Subgroup returns the subgroup.
type ChangeHistoryDeleteContactEvent ¶ added in v0.17.0
type ChangeHistoryDeleteContactEvent struct {
ChangeHistoryEvent
}
ChangeHistoryDeleteContactEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryDeleteContactEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user deleting a contact.
func ChangeHistoryDeleteContactEventFromID ¶ added in v0.17.0
func ChangeHistoryDeleteContactEventFromID(id objc.ID) *ChangeHistoryDeleteContactEvent
ChangeHistoryDeleteContactEventFromID adopts an existing Objective-C object as a ChangeHistoryDeleteContactEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryDeleteContactEvent ¶ added in v0.17.0
func NewChangeHistoryDeleteContactEvent() *ChangeHistoryDeleteContactEvent
NewChangeHistoryDeleteContactEvent creates a new ChangeHistoryDeleteContactEvent.
func (*ChangeHistoryDeleteContactEvent) ContactIdentifier ¶ added in v0.17.0
func (chdce *ChangeHistoryDeleteContactEvent) ContactIdentifier() string
ContactIdentifier returns the contact identifier.
type ChangeHistoryDeleteGroupEvent ¶ added in v0.17.0
type ChangeHistoryDeleteGroupEvent struct {
ChangeHistoryEvent
}
ChangeHistoryDeleteGroupEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryDeleteGroupEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user deleting a group.
func ChangeHistoryDeleteGroupEventFromID ¶ added in v0.17.0
func ChangeHistoryDeleteGroupEventFromID(id objc.ID) *ChangeHistoryDeleteGroupEvent
ChangeHistoryDeleteGroupEventFromID adopts an existing Objective-C object as a ChangeHistoryDeleteGroupEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryDeleteGroupEvent ¶ added in v0.17.0
func NewChangeHistoryDeleteGroupEvent() *ChangeHistoryDeleteGroupEvent
NewChangeHistoryDeleteGroupEvent creates a new ChangeHistoryDeleteGroupEvent.
func (*ChangeHistoryDeleteGroupEvent) GroupIdentifier ¶ added in v0.17.0
func (chdge *ChangeHistoryDeleteGroupEvent) GroupIdentifier() string
GroupIdentifier returns the group identifier.
type ChangeHistoryDropEverythingEvent ¶ added in v0.17.0
type ChangeHistoryDropEverythingEvent struct {
ChangeHistoryEvent
}
ChangeHistoryDropEverythingEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryDropEverythingEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that indicates the delegate should drop all contacts and groups before handling change events.
func ChangeHistoryDropEverythingEventFromID ¶ added in v0.17.0
func ChangeHistoryDropEverythingEventFromID(id objc.ID) *ChangeHistoryDropEverythingEvent
ChangeHistoryDropEverythingEventFromID adopts an existing Objective-C object as a ChangeHistoryDropEverythingEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryDropEverythingEvent ¶ added in v0.17.0
func NewChangeHistoryDropEverythingEvent() *ChangeHistoryDropEverythingEvent
NewChangeHistoryDropEverythingEvent creates a new ChangeHistoryDropEverythingEvent.
type ChangeHistoryEvent ¶ added in v0.17.0
ChangeHistoryEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryEvent.
ChangeHistoryEvent is an abstract base — you do not construct it directly. Construct one of ChangeHistoryAddContactEvent, ChangeHistoryAddGroupEvent, ChangeHistoryAddMemberToGroupEvent, ChangeHistoryAddSubgroupToGroupEvent, ChangeHistoryDeleteContactEvent, ChangeHistoryDeleteGroupEvent, ChangeHistoryDropEverythingEvent, ChangeHistoryRemoveMemberFromGroupEvent, ChangeHistoryRemoveSubgroupFromGroupEvent, ChangeHistoryUpdateContactEvent, ChangeHistoryUpdateGroupEvent and pass it where a ChangeHistoryEvent is accepted.
An object that represents the user adding, updating, or deleting a contact or group.
func ChangeHistoryEventFromID ¶ added in v0.17.0
func ChangeHistoryEventFromID(id objc.ID) *ChangeHistoryEvent
ChangeHistoryEventFromID adopts an existing Objective-C object as a ChangeHistoryEvent (nil for 0), retaining it and registering a release finalizer.
func (*ChangeHistoryEvent) Description ¶ added in v0.17.0
func (che *ChangeHistoryEvent) Description() string
Description returns the object's -description text.
func (*ChangeHistoryEvent) IsEqual ¶ added in v0.17.0
func (che *ChangeHistoryEvent) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ChangeHistoryEvent) IsKind ¶ added in v0.17.0
func (che *ChangeHistoryEvent) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ChangeHistoryEvent) String ¶ added in v0.17.0
func (che *ChangeHistoryEvent) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ChangeHistoryEventProvider ¶ added in v0.17.0
type ChangeHistoryEventProvider interface {
objref.Object
// contains filtered or unexported methods
}
ChangeHistoryEventProvider is accepted wherever a CNChangeHistoryEvent (or one of its subclasses) is expected.
type ChangeHistoryEventVisitor ¶ added in v0.17.0
type ChangeHistoryEventVisitor interface {
VisitDropEverythingEvent(event *ChangeHistoryDropEverythingEvent)
VisitAddContactEvent(event *ChangeHistoryAddContactEvent)
VisitUpdateContactEvent(event *ChangeHistoryUpdateContactEvent)
VisitDeleteContactEvent(event *ChangeHistoryDeleteContactEvent)
}
ChangeHistoryEventVisitor is the Go form of the Objective-C protocol CNChangeHistoryEventVisitor.
type ChangeHistoryFetchRequest ¶ added in v0.17.0
type ChangeHistoryFetchRequest struct {
FetchRequest
}
ChangeHistoryFetchRequest is an idiomatic wrapper over the Objective-C class CNChangeHistoryFetchRequest.
It embeds FetchRequest, promoting that type's methods.
An object that specifies the criteria for fetching change history.
func ChangeHistoryFetchRequestFromID ¶ added in v0.17.0
func ChangeHistoryFetchRequestFromID(id objc.ID) *ChangeHistoryFetchRequest
ChangeHistoryFetchRequestFromID adopts an existing Objective-C object as a ChangeHistoryFetchRequest (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryFetchRequest ¶ added in v0.17.0
func NewChangeHistoryFetchRequest() *ChangeHistoryFetchRequest
NewChangeHistoryFetchRequest creates a new ChangeHistoryFetchRequest.
func (*ChangeHistoryFetchRequest) AdditionalContactKeyDescriptors ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) AdditionalContactKeyDescriptors() []obj.Object
AdditionalContactKeyDescriptors returns additional keys to include in the fetched contacts. By default, only
func (*ChangeHistoryFetchRequest) ExcludedTransactionAuthors ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) ExcludedTransactionAuthors() []string
ExcludedTransactionAuthors returns exclude changes made by certain authors. If set, transactions made by the specified authors will be excluded from the results. Use this, in conjunction with
ExcludedTransactionAuthors returns the collection as a Go slice.
func (*ChangeHistoryFetchRequest) IncludeGroupChanges ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) IncludeGroupChanges() bool
IncludeGroupChanges reports whether set to
func (*ChangeHistoryFetchRequest) MutableObjects ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) MutableObjects() bool
MutableObjects reports whether to return mutable contacts and groups. If
func (*ChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors(additionalContactKeyDescriptors []obj.Object)
SetAdditionalContactKeyDescriptors wraps the corresponding Objective-C method.
func (*ChangeHistoryFetchRequest) ShouldUnifyResults ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) ShouldUnifyResults() bool
ShouldUnifyResults reports whether returns contact changes as unified contacts. If
func (*ChangeHistoryFetchRequest) StartingToken ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) StartingToken() []byte
StartingToken returns request changes made after a certain point. If non-nil, only changes made after this point in history will be returned. If nil, a
func (*ChangeHistoryFetchRequest) WithExcludedTransactionAuthors ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) WithExcludedTransactionAuthors(items ...obj.Object) *ChangeHistoryFetchRequest
WithExcludedTransactionAuthors sets an array of strings that identify transaction authors to exclude from the fetch results.
func (*ChangeHistoryFetchRequest) WithIncludeGroupChanges ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) WithIncludeGroupChanges(includeGroupChanges bool) *ChangeHistoryFetchRequest
WithIncludeGroupChanges sets a Boolean value that indicates whether the fetch should also return group changes.
func (*ChangeHistoryFetchRequest) WithMutableObjects ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) WithMutableObjects(mutableObjects bool) *ChangeHistoryFetchRequest
WithMutableObjects sets a Boolean value that indicates whether the fetch should return mutable contacts and groups.
func (*ChangeHistoryFetchRequest) WithShouldUnifyResults ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) WithShouldUnifyResults(shouldUnifyResults bool) *ChangeHistoryFetchRequest
WithShouldUnifyResults sets a Boolean value that indicates whether the fetch should return contact changes as unified contacts.
func (*ChangeHistoryFetchRequest) WithStartingToken ¶ added in v0.17.0
func (chfr *ChangeHistoryFetchRequest) WithStartingToken(startingToken []byte) *ChangeHistoryFetchRequest
WithStartingToken sets an opaque token that indicates a point in history in the user’s Contacts database.
type ChangeHistoryRemoveMemberFromGroupEvent ¶ added in v0.17.0
type ChangeHistoryRemoveMemberFromGroupEvent struct {
ChangeHistoryEvent
}
ChangeHistoryRemoveMemberFromGroupEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryRemoveMemberFromGroupEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user removing a contact from a group.
func ChangeHistoryRemoveMemberFromGroupEventFromID ¶ added in v0.17.0
func ChangeHistoryRemoveMemberFromGroupEventFromID(id objc.ID) *ChangeHistoryRemoveMemberFromGroupEvent
ChangeHistoryRemoveMemberFromGroupEventFromID adopts an existing Objective-C object as a ChangeHistoryRemoveMemberFromGroupEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryRemoveMemberFromGroupEvent ¶ added in v0.17.0
func NewChangeHistoryRemoveMemberFromGroupEvent() *ChangeHistoryRemoveMemberFromGroupEvent
NewChangeHistoryRemoveMemberFromGroupEvent creates a new ChangeHistoryRemoveMemberFromGroupEvent.
func (*ChangeHistoryRemoveMemberFromGroupEvent) Group ¶ added in v0.17.0
func (chrmfge *ChangeHistoryRemoveMemberFromGroupEvent) Group() *Group
Group returns the group.
func (*ChangeHistoryRemoveMemberFromGroupEvent) Member ¶ added in v0.17.0
func (chrmfge *ChangeHistoryRemoveMemberFromGroupEvent) Member() *Contact
Member returns the member.
type ChangeHistoryRemoveSubgroupFromGroupEvent ¶ added in v0.17.0
type ChangeHistoryRemoveSubgroupFromGroupEvent struct {
ChangeHistoryEvent
}
ChangeHistoryRemoveSubgroupFromGroupEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryRemoveSubgroupFromGroupEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user removing a subgroup from a group.
func ChangeHistoryRemoveSubgroupFromGroupEventFromID ¶ added in v0.17.0
func ChangeHistoryRemoveSubgroupFromGroupEventFromID(id objc.ID) *ChangeHistoryRemoveSubgroupFromGroupEvent
ChangeHistoryRemoveSubgroupFromGroupEventFromID adopts an existing Objective-C object as a ChangeHistoryRemoveSubgroupFromGroupEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryRemoveSubgroupFromGroupEvent ¶ added in v0.17.0
func NewChangeHistoryRemoveSubgroupFromGroupEvent() *ChangeHistoryRemoveSubgroupFromGroupEvent
NewChangeHistoryRemoveSubgroupFromGroupEvent creates a new ChangeHistoryRemoveSubgroupFromGroupEvent.
func (*ChangeHistoryRemoveSubgroupFromGroupEvent) Group ¶ added in v0.17.0
func (chrsfge *ChangeHistoryRemoveSubgroupFromGroupEvent) Group() *Group
Group returns the group.
func (*ChangeHistoryRemoveSubgroupFromGroupEvent) Subgroup ¶ added in v0.17.0
func (chrsfge *ChangeHistoryRemoveSubgroupFromGroupEvent) Subgroup() *Group
Subgroup returns the subgroup.
type ChangeHistoryUpdateContactEvent ¶ added in v0.17.0
type ChangeHistoryUpdateContactEvent struct {
ChangeHistoryEvent
}
ChangeHistoryUpdateContactEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryUpdateContactEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents a user updating a contact.
func ChangeHistoryUpdateContactEventFromID ¶ added in v0.17.0
func ChangeHistoryUpdateContactEventFromID(id objc.ID) *ChangeHistoryUpdateContactEvent
ChangeHistoryUpdateContactEventFromID adopts an existing Objective-C object as a ChangeHistoryUpdateContactEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryUpdateContactEvent ¶ added in v0.17.0
func NewChangeHistoryUpdateContactEvent() *ChangeHistoryUpdateContactEvent
NewChangeHistoryUpdateContactEvent creates a new ChangeHistoryUpdateContactEvent.
func (*ChangeHistoryUpdateContactEvent) Contact ¶ added in v0.17.0
func (chuce *ChangeHistoryUpdateContactEvent) Contact() *Contact
Contact returns the contact.
type ChangeHistoryUpdateGroupEvent ¶ added in v0.17.0
type ChangeHistoryUpdateGroupEvent struct {
ChangeHistoryEvent
}
ChangeHistoryUpdateGroupEvent is an idiomatic wrapper over the Objective-C class CNChangeHistoryUpdateGroupEvent.
It embeds ChangeHistoryEvent, promoting that type's methods.
An object that represents an updated group event.
func ChangeHistoryUpdateGroupEventFromID ¶ added in v0.17.0
func ChangeHistoryUpdateGroupEventFromID(id objc.ID) *ChangeHistoryUpdateGroupEvent
ChangeHistoryUpdateGroupEventFromID adopts an existing Objective-C object as a ChangeHistoryUpdateGroupEvent (nil for 0), retaining it and registering a release finalizer.
func NewChangeHistoryUpdateGroupEvent ¶ added in v0.17.0
func NewChangeHistoryUpdateGroupEvent() *ChangeHistoryUpdateGroupEvent
NewChangeHistoryUpdateGroupEvent creates a new ChangeHistoryUpdateGroupEvent.
func (*ChangeHistoryUpdateGroupEvent) Group ¶ added in v0.17.0
func (chuge *ChangeHistoryUpdateGroupEvent) Group() *Group
Group returns the group.
type Contact ¶ added in v0.17.0
Contact is an idiomatic wrapper over the Objective-C class CNContact.
Contact is an abstract base — you do not construct it directly. Construct one of MutableContact and pass it where a Contact is accepted.
An immutable object that stores information about a single contact, such as the contact’s first name, phone numbers, and addresses.
func ContactFromID ¶ added in v0.17.0
ContactFromID adopts an existing Objective-C object as a Contact (nil for 0), retaining it and registering a release finalizer.
func ContactsWithData ¶ added in v0.17.0
ContactsWithData returns the contacts from the vCard data.
func (*Contact) AreKeysAvailable ¶ added in v0.17.0
AreKeysAvailable determines whether all contact property values for the specified keys are fetched.
func (*Contact) Birthday ¶ added in v0.17.0
func (c *Contact) Birthday() *foundation.DateComponents
Birthday returns the Gregorian birthday.
func (*Contact) ContactRelations ¶ added in v0.17.0
ContactRelations returns the contact relations.
ContactRelations returns the collection as a Go slice.
func (*Contact) ContactType ¶ added in v0.17.0
func (c *Contact) ContactType() ContactType
ContactType returns the contact type.
func (*Contact) Dates ¶ added in v0.17.0
Dates returns other Gregorian dates (anniversaries, etc).
Dates returns the collection as a Go slice.
func (*Contact) DepartmentName ¶ added in v0.17.0
DepartmentName returns the department name.
func (*Contact) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Contact) EmailAddresses ¶ added in v0.17.0
EmailAddresses returns the email addresses.
EmailAddresses returns the collection as a Go slice.
func (*Contact) FamilyName ¶ added in v0.17.0
FamilyName returns the family name.
func (*Contact) Identifier ¶ added in v0.17.0
Identifier returns the identifier is unique among contacts on the device. It can be saved and used for fetching contacts next application launch.
func (*Contact) ImageDataAvailable ¶ added in v0.17.0
ImageDataAvailable wraps the corresponding Objective-C method.
func (*Contact) InstantMessageAddresses ¶ added in v0.17.0
InstantMessageAddresses returns the instant message addresses.
InstantMessageAddresses returns the collection as a Go slice.
func (*Contact) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Contact) IsKeyAvailable ¶ added in v0.17.0
IsKeyAvailable determines whether the contact property value for the specified key is fetched.
func (*Contact) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Contact) IsUnifiedWithContactWithIdentifier ¶ added in v0.17.0
IsUnifiedWithContactWithIdentifier returns a Boolean indicating whether the current contact is a unified contact and includes a contact with the specified identifier.
func (*Contact) MiddleName ¶ added in v0.17.0
MiddleName returns the middle name.
func (*Contact) NamePrefix ¶ added in v0.17.0
NamePrefix returns the name prefix.
func (*Contact) NameSuffix ¶ added in v0.17.0
NameSuffix returns the name suffix.
func (*Contact) NonGregorianBirthday ¶ added in v0.17.0
func (c *Contact) NonGregorianBirthday() *foundation.DateComponents
NonGregorianBirthday returns the alternate birthday (Lunisolar).
func (*Contact) OrganizationName ¶ added in v0.17.0
OrganizationName returns the organization name.
func (*Contact) PhoneNumbers ¶ added in v0.17.0
PhoneNumbers returns the phone numbers.
PhoneNumbers returns the collection as a Go slice.
func (*Contact) PhoneticFamilyName ¶ added in v0.17.0
PhoneticFamilyName returns the phonetic family name.
func (*Contact) PhoneticGivenName ¶ added in v0.17.0
PhoneticGivenName returns the phonetic given name.
func (*Contact) PhoneticMiddleName ¶ added in v0.17.0
PhoneticMiddleName returns the phonetic middle name.
func (*Contact) PhoneticOrganizationName ¶ added in v0.17.0
PhoneticOrganizationName returns the phonetic organization name.
func (*Contact) PostalAddresses ¶ added in v0.17.0
PostalAddresses returns the postal addresses.
PostalAddresses returns the collection as a Go slice.
func (*Contact) PreviousFamilyName ¶ added in v0.17.0
PreviousFamilyName returns the previous family name.
func (*Contact) SocialProfiles ¶ added in v0.17.0
SocialProfiles returns the social profiles.
SocialProfiles returns the collection as a Go slice.
func (*Contact) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Contact) ThumbnailImageData ¶ added in v0.17.0
ThumbnailImageData returns the thumbnail image data.
func (*Contact) URLAddresses ¶ added in v0.17.0
URLAddresses returns the URL addresses.
URLAddresses returns the collection as a Go slice.
type ContactDisplayNameOrder ¶ added in v0.17.0
type ContactDisplayNameOrder int64
The formatting orders for contact names component.
const ( // Display name order by user default. ContactDisplayNameOrderUserDefault ContactDisplayNameOrder = 0 // Display name order by given name first. ContactDisplayNameOrderGivenNameFirst ContactDisplayNameOrder = 1 // Display name order by family name first. ContactDisplayNameOrderFamilyNameFirst ContactDisplayNameOrder = 2 )
func NameOrderForContact ¶ added in v0.17.0
func NameOrderForContact(contact *Contact) ContactDisplayNameOrder
NameOrderForContact returns the display name order.
func (ContactDisplayNameOrder) String ¶ added in v0.17.0
func (e ContactDisplayNameOrder) String() string
String returns the ContactDisplayNameOrder constant's name, or its numeric form when the value is not a known constant.
type ContactFetchRequest ¶ added in v0.17.0
type ContactFetchRequest struct {
FetchRequest
}
ContactFetchRequest is an idiomatic wrapper over the Objective-C class CNContactFetchRequest.
It embeds FetchRequest, promoting that type's methods.
An object that defines the options to use when fetching contacts.
func ContactFetchRequestFromID ¶ added in v0.17.0
func ContactFetchRequestFromID(id objc.ID) *ContactFetchRequest
ContactFetchRequestFromID adopts an existing Objective-C object as a ContactFetchRequest (nil for 0), retaining it and registering a release finalizer.
func NewContactFetchRequestWithKeysToFetch ¶ added in v0.17.0
func NewContactFetchRequestWithKeysToFetch(keysToFetch []obj.Object) *ContactFetchRequest
NewContactFetchRequestWithKeysToFetch creates a fetch request for the specified keys.
func (*ContactFetchRequest) KeysToFetch ¶ added in v0.17.0
func (cfr *ContactFetchRequest) KeysToFetch() []obj.Object
KeysToFetch returns the properties to fetch in the returned contacts. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors.
func (*ContactFetchRequest) MutableObjects ¶ added in v0.17.0
func (cfr *ContactFetchRequest) MutableObjects() bool
MutableObjects reports whether to return mutable contacts. If true returns CNMutableContact objects, otherwise returns CNContact objects. Default is false.
func (*ContactFetchRequest) Predicate ¶ added in v0.17.0
func (cfr *ContactFetchRequest) Predicate() *foundation.Predicate
Predicate returns the predicate to match contacts against. Use only predicates from CNContact+Predicates.h. Compound predicates are not supported. Set to nil to match all contacts.
func (*ContactFetchRequest) SetKeysToFetch ¶ added in v0.17.0
func (cfr *ContactFetchRequest) SetKeysToFetch(keysToFetch []obj.Object)
SetKeysToFetch wraps the corresponding Objective-C method.
func (*ContactFetchRequest) SortOrder ¶ added in v0.17.0
func (cfr *ContactFetchRequest) SortOrder() ContactSortOrder
SortOrder returns to return contacts in a specific sort order. Default is CNContactSortOrderNone.
func (*ContactFetchRequest) UnifyResults ¶ added in v0.17.0
func (cfr *ContactFetchRequest) UnifyResults() bool
UnifyResults reports whether to return linked contacts as unified contacts. If true returns unified contacts, otherwise returns individual contacts. Default is true.
func (*ContactFetchRequest) WithMutableObjects ¶ added in v0.17.0
func (cfr *ContactFetchRequest) WithMutableObjects(mutableObjects bool) *ContactFetchRequest
WithMutableObjects sets a Boolean value that indicates whether to return mutable contacts.
func (*ContactFetchRequest) WithPredicate ¶ added in v0.17.0
func (cfr *ContactFetchRequest) WithPredicate(predicate obj.Object) *ContactFetchRequest
WithPredicate sets the predicate to match contacts against.
func (*ContactFetchRequest) WithSortOrder ¶ added in v0.17.0
func (cfr *ContactFetchRequest) WithSortOrder(sortOrder ContactSortOrder) *ContactFetchRequest
WithSortOrder sets the sort order for contacts.
func (*ContactFetchRequest) WithUnifyResults ¶ added in v0.17.0
func (cfr *ContactFetchRequest) WithUnifyResults(unifyResults bool) *ContactFetchRequest
WithUnifyResults sets a Boolean value that indicates whether to return linked contacts as unified contacts.
type ContactFormatter ¶ added in v0.17.0
ContactFormatter is an idiomatic wrapper over the Objective-C class CNContactFormatter.
An object that you use to format contact information before displaying it to the user.
func ContactFormatterFromID ¶ added in v0.17.0
func ContactFormatterFromID(id objc.ID) *ContactFormatter
ContactFormatterFromID adopts an existing Objective-C object as a ContactFormatter (nil for 0), retaining it and registering a release finalizer.
func NewContactFormatter ¶ added in v0.17.0
func NewContactFormatter() *ContactFormatter
NewContactFormatter creates a new ContactFormatter.
func (*ContactFormatter) AttributedStringFromContactDefaultAttributes ¶ added in v0.17.0
func (cf *ContactFormatter) AttributedStringFromContactDefaultAttributes(contact *Contact, attributes obj.Object) *foundation.AttributedString
AttributedStringFromContactDefaultAttributes formats the contact name as an attributed string.
func (*ContactFormatter) Description ¶ added in v0.17.0
func (cf *ContactFormatter) Description() string
Description returns the object's -description text.
func (*ContactFormatter) IsEqual ¶ added in v0.17.0
func (cf *ContactFormatter) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ContactFormatter) IsKind ¶ added in v0.17.0
func (cf *ContactFormatter) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ContactFormatter) String ¶ added in v0.17.0
func (cf *ContactFormatter) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ContactFormatter) StringFromContact ¶ added in v0.17.0
func (cf *ContactFormatter) StringFromContact(contact *Contact) string
StringFromContact formats the contact name.
func (*ContactFormatter) Style ¶ added in v0.17.0
func (cf *ContactFormatter) Style() ContactFormatterStyle
Style returns the style for a contact formatter instance. The default value is CNContactFormatterStyleFullName.
func (*ContactFormatter) WithStyle ¶ added in v0.17.0
func (cf *ContactFormatter) WithStyle(style ContactFormatterStyle) *ContactFormatter
WithStyle sets the formatting style for the contact name.
type ContactFormatterStyle ¶ added in v0.17.0
type ContactFormatterStyle int64
The formatting styles for contact names.
const ( // Combines the contact name components into a full name. ContactFormatterStyleFullName ContactFormatterStyle = 0 // Combines the contact phonetic name components into a phonetic full name. ContactFormatterStylePhoneticFullName ContactFormatterStyle = 1 )
func (ContactFormatterStyle) String ¶ added in v0.17.0
func (e ContactFormatterStyle) String() string
String returns the ContactFormatterStyle constant's name, or its numeric form when the value is not a known constant.
type ContactProperty ¶ added in v0.17.0
ContactProperty is an idiomatic wrapper over the Objective-C class CNContactProperty.
An object that represents a property of a contact.
func ContactPropertyFromID ¶ added in v0.17.0
func ContactPropertyFromID(id objc.ID) *ContactProperty
ContactPropertyFromID adopts an existing Objective-C object as a ContactProperty (nil for 0), retaining it and registering a release finalizer.
func NewContactProperty ¶ added in v0.17.0
func NewContactProperty() *ContactProperty
NewContactProperty creates a new ContactProperty.
func (*ContactProperty) Contact ¶ added in v0.17.0
func (cp *ContactProperty) Contact() *Contact
Contact returns the contact.
func (*ContactProperty) Description ¶ added in v0.17.0
func (cp *ContactProperty) Description() string
Description returns the object's -description text.
func (*ContactProperty) Identifier ¶ added in v0.17.0
func (cp *ContactProperty) Identifier() string
Identifier returns the identifier of the labeled value if the property is an array of labeled values, otherwise is nil.
func (*ContactProperty) IsEqual ¶ added in v0.17.0
func (cp *ContactProperty) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ContactProperty) IsKind ¶ added in v0.17.0
func (cp *ContactProperty) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ContactProperty) Key ¶ added in v0.17.0
func (cp *ContactProperty) Key() string
Key returns the key of the contact property, as defined in CNContact.h.
func (*ContactProperty) Label ¶ added in v0.17.0
func (cp *ContactProperty) Label() string
Label returns the label of the labeled value if the property is an array of labeled values, otherwise is nil.
func (*ContactProperty) String ¶ added in v0.17.0
func (cp *ContactProperty) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ContactProperty) Value ¶ added in v0.17.0
func (cp *ContactProperty) Value() obj.Object
Value returns the value of the property.
type ContactProvider ¶ added in v0.17.0
ContactProvider is accepted wherever a CNContact (or one of its subclasses) is expected.
type ContactRelation ¶ added in v0.17.0
ContactRelation is an idiomatic wrapper over the Objective-C class CNContactRelation.
An immutable object that represents the relationship between one contact to another.
func ContactRelationFromID ¶ added in v0.17.0
func ContactRelationFromID(id objc.ID) *ContactRelation
ContactRelationFromID adopts an existing Objective-C object as a ContactRelation (nil for 0), retaining it and registering a release finalizer.
func ContactRelationWithName ¶ added in v0.17.0
func ContactRelationWithName(name string) *ContactRelation
ContactRelationWithName instantiate a class instance with the name of the related contact.
func NewContactRelationWithName ¶ added in v0.17.0
func NewContactRelationWithName(name string) *ContactRelation
NewContactRelationWithName creates an object with the name of the related contact.
func (*ContactRelation) Description ¶ added in v0.17.0
func (cr *ContactRelation) Description() string
Description returns the object's -description text.
func (*ContactRelation) IsEqual ¶ added in v0.17.0
func (cr *ContactRelation) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ContactRelation) IsKind ¶ added in v0.17.0
func (cr *ContactRelation) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ContactRelation) Name ¶ added in v0.17.0
func (cr *ContactRelation) Name() string
Name returns the name.
func (*ContactRelation) String ¶ added in v0.17.0
func (cr *ContactRelation) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ContactSortOrder ¶ added in v0.17.0
type ContactSortOrder int64
Indicates the sorting order for contacts.
const ( // No sorting order. ContactSortOrderNone ContactSortOrder = 0 // The user’s default sorting order. ContactSortOrderUserDefault ContactSortOrder = 1 // Sorting contacts by given name. ContactSortOrderGivenName ContactSortOrder = 2 // Sorting contacts by family name. ContactSortOrderFamilyName ContactSortOrder = 3 )
func (ContactSortOrder) String ¶ added in v0.17.0
func (e ContactSortOrder) String() string
String returns the ContactSortOrder constant's name, or its numeric form when the value is not a known constant.
type ContactStore ¶ added in v0.17.0
ContactStore is an idiomatic wrapper over the Objective-C class CNContactStore.
The object that fetches and saves contacts, groups, and containers from the user’s Contacts database.
func ContactStoreFromID ¶ added in v0.17.0
func ContactStoreFromID(id objc.ID) *ContactStore
ContactStoreFromID adopts an existing Objective-C object as a ContactStore (nil for 0), retaining it and registering a release finalizer.
func NewContactStore ¶ added in v0.17.0
func NewContactStore() *ContactStore
NewContactStore creates a new ContactStore.
func (*ContactStore) ContainersMatchingPredicate ¶ added in v0.17.0
func (cs *ContactStore) ContainersMatchingPredicate(predicate obj.Object) (result []*Container, err error)
ContainersMatchingPredicate fetches all containers matching the specified predicate.
func (*ContactStore) CurrentHistoryToken ¶ added in v0.17.0
func (cs *ContactStore) CurrentHistoryToken() []byte
CurrentHistoryToken returns the current history token. Retrieve the current history token. If you are fetching contacts or change history events, you should use the token on the
func (*ContactStore) DefaultContainerIdentifier ¶ added in v0.17.0
func (cs *ContactStore) DefaultContainerIdentifier() string
DefaultContainerIdentifier returns the identifier of the default container.
func (*ContactStore) Description ¶ added in v0.17.0
func (cs *ContactStore) Description() string
Description returns the object's -description text.
func (*ContactStore) EnumerateContactsWithFetchRequestErrorUsing ¶ added in v0.17.0
func (cs *ContactStore) EnumerateContactsWithFetchRequestErrorUsing(fetchRequest *ContactFetchRequest, err unsafe.Pointer, block func(obj.Object, *bool)) bool
EnumerateContactsWithFetchRequestErrorUsing returns a Boolean value that indicates whether the enumeration of all contacts matching a contact fetch request executes successfully.
func (*ContactStore) EnumeratorForChangeHistoryFetchRequest ¶ added in v0.17.0
func (cs *ContactStore) EnumeratorForChangeHistoryFetchRequest(request *ChangeHistoryFetchRequest) (result obj.Object, err error)
EnumeratorForChangeHistoryFetchRequest enumerates a change history fetch request.
func (*ContactStore) EnumeratorForContactFetchRequest ¶ added in v0.17.0
func (cs *ContactStore) EnumeratorForContactFetchRequest(request *ContactFetchRequest) (result obj.Object, err error)
EnumeratorForContactFetchRequest enumerates a contact fetch request.
func (*ContactStore) ExecuteSaveRequest ¶ added in v0.17.0
func (cs *ContactStore) ExecuteSaveRequest(saveRequest *SaveRequest) error
ExecuteSaveRequest executes a save request and returns success or failure.
func (*ContactStore) GroupsMatchingPredicate ¶ added in v0.17.0
func (cs *ContactStore) GroupsMatchingPredicate(predicate obj.Object) (result []*Group, err error)
GroupsMatchingPredicate fetches all groups matching the specified predicate.
func (*ContactStore) IsEqual ¶ added in v0.17.0
func (cs *ContactStore) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ContactStore) IsKind ¶ added in v0.17.0
func (cs *ContactStore) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ContactStore) RequestAccessForEntityTypeCompletionHandler ¶ added in v0.18.0
func (cs *ContactStore) RequestAccessForEntityTypeCompletionHandler(entityType EntityType, completionHandler func(bool, unsafe.Pointer))
RequestAccessForEntityTypeCompletionHandler requests access to the user’s contacts.
func (*ContactStore) String ¶ added in v0.17.0
func (cs *ContactStore) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ContactStore) UnifiedContactWithIdentifierKeysToFetch ¶ added in v0.17.0
func (cs *ContactStore) UnifiedContactWithIdentifierKeysToFetch(identifier string, keys []obj.Object) (result *Contact, err error)
UnifiedContactWithIdentifierKeysToFetch fetches a unified contact for the specified contact identifier.
func (*ContactStore) UnifiedContactsMatchingPredicateKeysToFetch ¶ added in v0.17.0
func (cs *ContactStore) UnifiedContactsMatchingPredicateKeysToFetch(predicate obj.Object, keys []obj.Object) (result []*Contact, err error)
UnifiedContactsMatchingPredicateKeysToFetch fetches all unified contacts matching the specified predicate.
func (*ContactStore) UnifiedMeContactWithKeysToFetch ¶ added in v0.17.0
func (cs *ContactStore) UnifiedMeContactWithKeysToFetch(keys []obj.Object) (result *Contact, err error)
UnifiedMeContactWithKeysToFetch fetches the unified contact that’s the me card.
type ContactType ¶ added in v0.17.0
type ContactType int64
The types a contact can be.
const ( // The contact is a person. ContactTypePerson ContactType = 0 // The contact is an Organization. ContactTypeOrganization ContactType = 1 )
func (ContactType) String ¶ added in v0.17.0
func (e ContactType) String() string
String returns the ContactType constant's name, or its numeric form when the value is not a known constant.
type ContactVCardSerialization ¶ added in v0.17.0
ContactVCardSerialization is an idiomatic wrapper over the Objective-C class CNContactVCardSerialization.
An object you use to convert to and from a vCard representation of the user’s contacts.
func ContactVCardSerializationFromID ¶ added in v0.17.0
func ContactVCardSerializationFromID(id objc.ID) *ContactVCardSerialization
ContactVCardSerializationFromID adopts an existing Objective-C object as a ContactVCardSerialization (nil for 0), retaining it and registering a release finalizer.
func NewContactVCardSerialization ¶ added in v0.17.0
func NewContactVCardSerialization() *ContactVCardSerialization
NewContactVCardSerialization creates a new ContactVCardSerialization.
func (*ContactVCardSerialization) Description ¶ added in v0.17.0
func (cvcs *ContactVCardSerialization) Description() string
Description returns the object's -description text.
func (*ContactVCardSerialization) IsEqual ¶ added in v0.17.0
func (cvcs *ContactVCardSerialization) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ContactVCardSerialization) IsKind ¶ added in v0.17.0
func (cvcs *ContactVCardSerialization) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ContactVCardSerialization) String ¶ added in v0.17.0
func (cvcs *ContactVCardSerialization) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ContactsUserDefaults ¶ added in v0.17.0
ContactsUserDefaults is an idiomatic wrapper over the Objective-C class CNContactsUserDefaults.
An object that defines the default options to use when displaying contacts.
func ContactsUserDefaultsFromID ¶ added in v0.17.0
func ContactsUserDefaultsFromID(id objc.ID) *ContactsUserDefaults
ContactsUserDefaultsFromID adopts an existing Objective-C object as a ContactsUserDefaults (nil for 0), retaining it and registering a release finalizer.
func NewContactsUserDefaults ¶ added in v0.17.0
func NewContactsUserDefaults() *ContactsUserDefaults
NewContactsUserDefaults creates a new ContactsUserDefaults.
func SharedDefaults ¶ added in v0.17.0
func SharedDefaults() *ContactsUserDefaults
SharedDefaults returns the singleton contacts user defaults object.
func (*ContactsUserDefaults) CountryCode ¶ added in v0.17.0
func (cud *ContactsUserDefaults) CountryCode() string
CountryCode returns the country code.
func (*ContactsUserDefaults) Description ¶ added in v0.17.0
func (cud *ContactsUserDefaults) Description() string
Description returns the object's -description text.
func (*ContactsUserDefaults) IsEqual ¶ added in v0.17.0
func (cud *ContactsUserDefaults) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ContactsUserDefaults) IsKind ¶ added in v0.17.0
func (cud *ContactsUserDefaults) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ContactsUserDefaults) SortOrder ¶ added in v0.17.0
func (cud *ContactsUserDefaults) SortOrder() ContactSortOrder
SortOrder returns the sort order.
func (*ContactsUserDefaults) String ¶ added in v0.17.0
func (cud *ContactsUserDefaults) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type Container ¶ added in v0.17.0
Container is an idiomatic wrapper over the Objective-C class CNContainer.
An immutable object that represents a collection of contacts.
func ContainerFromID ¶ added in v0.17.0
ContainerFromID adopts an existing Objective-C object as a Container (nil for 0), retaining it and registering a release finalizer.
func NewContainer ¶ added in v0.17.0
func NewContainer() *Container
NewContainer creates a new Container.
func (*Container) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Container) Identifier ¶ added in v0.17.0
Identifier returns the identifier is unique among containers on the device. It can be saved and used for fetching containers next application launch.
func (*Container) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Container) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Container) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Container) Type ¶ added in v0.17.0
func (c *Container) Type() ContainerType
Type returns the type.
type ContainerType ¶ added in v0.17.0
type ContainerType int64
The container may be local on the device or associated with a server account that has contacts.
const ( // A container where the system hasn’t assigned the container type. ContainerTypeUnassigned ContainerType = 0 // A container for contacts only stored locally on the device. ContainerTypeLocal ContainerType = 1 // A container for contacts stored in an Exchange folder from an Exchange server. ContainerTypeExchange ContainerType = 2 // A container for contacts stored in an CardDAV server, such as iCloud. ContainerTypeCardDAV ContainerType = 3 )
func (ContainerType) String ¶ added in v0.17.0
func (e ContainerType) String() string
String returns the ContainerType constant's name, or its numeric form when the value is not a known constant.
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type EntityType ¶ added in v0.17.0
type EntityType int64
The entities the user can grant access to.
const ( // The user’s contacts. EntityTypeContacts EntityType = 0 )
func (EntityType) String ¶ added in v0.17.0
func (e EntityType) String() string
String returns the EntityType constant's name, or its numeric form when the value is not a known constant.
type ErrorCode ¶ added in v0.17.0
type ErrorCode int64
Error codes that the system may return when you use Contacts framework methods.
const ( ErrorCodeCommunicationError ErrorCode = 1 ErrorCodeDataAccessError ErrorCode = 2 ErrorCodeAuthorizationDenied ErrorCode = 100 ErrorCodeNoAccessableWritableContainers ErrorCode = 101 ErrorCodeFeatureDisabledByUser ErrorCode = 103 ErrorCodeFeatureNotAvailable ErrorCode = 104 ErrorCodeRecordDoesNotExist ErrorCode = 200 ErrorCodeInsertedRecordAlreadyExists ErrorCode = 201 ErrorCodeContainmentCycle ErrorCode = 202 ErrorCodeContainmentScope ErrorCode = 203 ErrorCodeParentRecordDoesNotExist ErrorCode = 204 ErrorCodeRecordIdentifierInvalid ErrorCode = 205 ErrorCodeRecordNotWritable ErrorCode = 206 ErrorCodeParentContainerNotWritable ErrorCode = 207 ErrorCodeValidationMultipleErrors ErrorCode = 300 ErrorCodeValidationTypeMismatch ErrorCode = 301 ErrorCodeValidationConfigurationError ErrorCode = 302 ErrorCodePredicateInvalid ErrorCode = 400 ErrorCodePolicyViolation ErrorCode = 500 ErrorCodeClientIdentifierInvalid ErrorCode = 600 ErrorCodeClientIdentifierDoesNotExist ErrorCode = 601 ErrorCodeClientIdentifierCollision ErrorCode = 602 ErrorCodeChangeHistoryExpired ErrorCode = 603 ErrorCodeChangeHistoryInvalidAnchor ErrorCode = 604 ErrorCodeChangeHistoryInvalidFetchRequest ErrorCode = 605 ErrorCodeVCardMalformed ErrorCode = 700 ErrorCodeVCardSummarizationError ErrorCode = 701 )
type FetchRequest ¶ added in v0.17.0
FetchRequest is an idiomatic wrapper over the Objective-C class CNFetchRequest.
FetchRequest is an abstract base — you do not construct it directly. Construct one of ChangeHistoryFetchRequest, ContactFetchRequest and pass it where a FetchRequest is accepted.
The base class for contact fetch requests.
func FetchRequestFromID ¶ added in v0.17.0
func FetchRequestFromID(id objc.ID) *FetchRequest
FetchRequestFromID adopts an existing Objective-C object as a FetchRequest (nil for 0), retaining it and registering a release finalizer.
func (*FetchRequest) Description ¶ added in v0.17.0
func (fr *FetchRequest) Description() string
Description returns the object's -description text.
func (*FetchRequest) IsEqual ¶ added in v0.17.0
func (fr *FetchRequest) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*FetchRequest) IsKind ¶ added in v0.17.0
func (fr *FetchRequest) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*FetchRequest) String ¶ added in v0.17.0
func (fr *FetchRequest) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type FetchRequestProvider ¶ added in v0.17.0
FetchRequestProvider is accepted wherever a CNFetchRequest (or one of its subclasses) is expected.
type FetchResult ¶ added in v0.17.0
FetchResult is an idiomatic wrapper over the Objective-C class CNFetchResult.
An object that represents the result of a change-history fetch request.
func FetchResultFromID ¶ added in v0.17.0
func FetchResultFromID(id objc.ID) *FetchResult
FetchResultFromID adopts an existing Objective-C object as a FetchResult (nil for 0), retaining it and registering a release finalizer.
func NewFetchResult ¶ added in v0.17.0
func NewFetchResult() *FetchResult
NewFetchResult creates a new FetchResult.
func (*FetchResult) CurrentHistoryToken ¶ added in v0.17.0
func (fr *FetchResult) CurrentHistoryToken() []byte
CurrentHistoryToken returns the current history token.
func (*FetchResult) Description ¶ added in v0.17.0
func (fr *FetchResult) Description() string
Description returns the object's -description text.
func (*FetchResult) IsEqual ¶ added in v0.17.0
func (fr *FetchResult) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*FetchResult) IsKind ¶ added in v0.17.0
func (fr *FetchResult) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*FetchResult) String ¶ added in v0.17.0
func (fr *FetchResult) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*FetchResult) Value ¶ added in v0.17.0
func (fr *FetchResult) Value() obj.Object
Value returns the value.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type Group ¶ added in v0.17.0
Group is an idiomatic wrapper over the Objective-C class CNGroup.
Group is an abstract base — you do not construct it directly. Construct one of MutableGroup and pass it where a Group is accepted.
An immutable object that represents a group of contacts.
func GroupFromID ¶ added in v0.17.0
GroupFromID adopts an existing Objective-C object as a Group (nil for 0), retaining it and registering a release finalizer.
func (*Group) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Group) Identifier ¶ added in v0.17.0
Identifier returns the identifier is unique among groups on the device. It can be saved and used for fetching groups next application launch.
func (*Group) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
type GroupProvider ¶ added in v0.17.0
GroupProvider is accepted wherever a CNGroup (or one of its subclasses) is expected.
type InstantMessageAddress ¶ added in v0.17.0
InstantMessageAddress is an idiomatic wrapper over the Objective-C class CNInstantMessageAddress.
An immutable object representing an instant message address for the contact.
func InstantMessageAddressFromID ¶ added in v0.17.0
func InstantMessageAddressFromID(id objc.ID) *InstantMessageAddress
InstantMessageAddressFromID adopts an existing Objective-C object as a InstantMessageAddress (nil for 0), retaining it and registering a release finalizer.
func NewInstantMessageAddressWithUsernameService ¶ added in v0.17.0
func NewInstantMessageAddressWithUsernameService(username string, service string) *InstantMessageAddress
NewInstantMessageAddressWithUsernameService returns a CNInstantMessageAddress object initialized with the specified user name and service.
func (*InstantMessageAddress) Description ¶ added in v0.17.0
func (ima *InstantMessageAddress) Description() string
Description returns the object's -description text.
func (*InstantMessageAddress) IsEqual ¶ added in v0.17.0
func (ima *InstantMessageAddress) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*InstantMessageAddress) IsKind ¶ added in v0.17.0
func (ima *InstantMessageAddress) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*InstantMessageAddress) Service ¶ added in v0.17.0
func (ima *InstantMessageAddress) Service() string
Service returns the service.
func (*InstantMessageAddress) String ¶ added in v0.17.0
func (ima *InstantMessageAddress) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*InstantMessageAddress) Username ¶ added in v0.17.0
func (ima *InstantMessageAddress) Username() string
Username returns the username.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type KeyDescriptor ¶ added in v0.17.0
type KeyDescriptor interface {
}
KeyDescriptor is the Go form of the Objective-C protocol CNKeyDescriptor.
type LabeledValue ¶ added in v0.17.0
LabeledValue is an idiomatic wrapper over the Objective-C class CNLabeledValue.
An immutable object that combines a contact property value with a label that describes that property.
func LabeledValueFromID ¶ added in v0.17.0
func LabeledValueFromID(id objc.ID) *LabeledValue
LabeledValueFromID adopts an existing Objective-C object as a LabeledValue (nil for 0), retaining it and registering a release finalizer.
func NewLabeledValueWithLabelValue ¶ added in v0.17.0
func NewLabeledValueWithLabelValue(label string, value obj.Object) *LabeledValue
NewLabeledValueWithLabelValue returns a new labeled value identifier.
func (*LabeledValue) Description ¶ added in v0.17.0
func (lv *LabeledValue) Description() string
Description returns the object's -description text.
func (*LabeledValue) Identifier ¶ added in v0.17.0
func (lv *LabeledValue) Identifier() string
Identifier returns the identifier is unique among contacts on the device. It can be saved and used for finding labeled values next application launch.
func (*LabeledValue) IsEqual ¶ added in v0.17.0
func (lv *LabeledValue) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*LabeledValue) IsKind ¶ added in v0.17.0
func (lv *LabeledValue) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*LabeledValue) Label ¶ added in v0.17.0
func (lv *LabeledValue) Label() string
Label returns the label.
func (*LabeledValue) LabeledValueBySettingLabel ¶ added in v0.17.0
func (lv *LabeledValue) LabeledValueBySettingLabel(label string) obj.Object
LabeledValueBySettingLabel returns a labeled value object with an existing value and identifier.
func (*LabeledValue) LabeledValueBySettingLabelValue ¶ added in v0.17.0
LabeledValueBySettingLabelValue returns a labeled value object with the specified label and value with the existing identifier.
func (*LabeledValue) LabeledValueBySettingValue ¶ added in v0.17.0
func (lv *LabeledValue) LabeledValueBySettingValue(value obj.Object) obj.Object
LabeledValueBySettingValue returns a new value for an existing label and identifier.
func (*LabeledValue) String ¶ added in v0.17.0
func (lv *LabeledValue) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*LabeledValue) Value ¶ added in v0.17.0
func (lv *LabeledValue) Value() obj.Object
Value returns the value.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type MutableContact ¶ added in v0.17.0
type MutableContact struct {
Contact
}
MutableContact is an idiomatic wrapper over the Objective-C class CNMutableContact.
It embeds Contact, promoting that type's methods.
A mutable object that stores information about a single contact, such as the contact’s first name, phone numbers, and addresses.
func MutableContactFromID ¶ added in v0.17.0
func MutableContactFromID(id objc.ID) *MutableContact
MutableContactFromID adopts an existing Objective-C object as a MutableContact (nil for 0), retaining it and registering a release finalizer.
func NewMutableContact ¶ added in v0.17.0
func NewMutableContact() *MutableContact
NewMutableContact creates a new MutableContact.
func (*MutableContact) WithBirthday ¶ added in v0.17.0
func (mc *MutableContact) WithBirthday(birthday obj.Object) *MutableContact
WithBirthday sets a date component for the Gregorian birthday of the contact.
func (*MutableContact) WithContactRelations ¶ added in v0.17.0
func (mc *MutableContact) WithContactRelations(items ...obj.Object) *MutableContact
WithContactRelations sets an array of labeled contact relations for the contact.
func (*MutableContact) WithContactType ¶ added in v0.17.0
func (mc *MutableContact) WithContactType(contactType ContactType) *MutableContact
WithContactType sets an enum identifying the contact type.
func (*MutableContact) WithDates ¶ added in v0.17.0
func (mc *MutableContact) WithDates(items ...obj.Object) *MutableContact
WithDates sets an array containing labeled Gregorian dates.
func (*MutableContact) WithDepartmentName ¶ added in v0.17.0
func (mc *MutableContact) WithDepartmentName(departmentName string) *MutableContact
WithDepartmentName sets the name of the department associated with the contact.
func (*MutableContact) WithEmailAddresses ¶ added in v0.17.0
func (mc *MutableContact) WithEmailAddresses(items ...obj.Object) *MutableContact
WithEmailAddresses sets an array of labeled email addresses for the contact.
func (*MutableContact) WithFamilyName ¶ added in v0.17.0
func (mc *MutableContact) WithFamilyName(familyName string) *MutableContact
WithFamilyName sets the family name of the contact.
func (*MutableContact) WithGivenName ¶ added in v0.17.0
func (mc *MutableContact) WithGivenName(givenName string) *MutableContact
WithGivenName sets the given name of the contact.
func (*MutableContact) WithImageData ¶ added in v0.17.0
func (mc *MutableContact) WithImageData(imageData []byte) *MutableContact
WithImageData sets the profile picture of a contact.
func (*MutableContact) WithInstantMessageAddresses ¶ added in v0.17.0
func (mc *MutableContact) WithInstantMessageAddresses(items ...obj.Object) *MutableContact
WithInstantMessageAddresses sets an array of labeled IM addresses for the contact.
func (*MutableContact) WithJobTitle ¶ added in v0.17.0
func (mc *MutableContact) WithJobTitle(jobTitle string) *MutableContact
WithJobTitle sets the contact’s job title.
func (*MutableContact) WithMiddleName ¶ added in v0.17.0
func (mc *MutableContact) WithMiddleName(middleName string) *MutableContact
WithMiddleName sets the middle name of the contact.
func (*MutableContact) WithNamePrefix ¶ added in v0.17.0
func (mc *MutableContact) WithNamePrefix(namePrefix string) *MutableContact
WithNamePrefix sets the name prefix of the contact.
func (*MutableContact) WithNameSuffix ¶ added in v0.17.0
func (mc *MutableContact) WithNameSuffix(nameSuffix string) *MutableContact
WithNameSuffix sets the name suffix of the contact.
func (*MutableContact) WithNickname ¶ added in v0.17.0
func (mc *MutableContact) WithNickname(nickname string) *MutableContact
WithNickname sets the nickname of the contact.
func (*MutableContact) WithNonGregorianBirthday ¶ added in v0.17.0
func (mc *MutableContact) WithNonGregorianBirthday(nonGregorianBirthday obj.Object) *MutableContact
WithNonGregorianBirthday sets a date component for the non-Gregorian birthday of the contact.
func (*MutableContact) WithNote ¶ added in v0.17.0
func (mc *MutableContact) WithNote(note string) *MutableContact
WithNote sets a string containing notes for the contact.
func (*MutableContact) WithOrganizationName ¶ added in v0.17.0
func (mc *MutableContact) WithOrganizationName(organizationName string) *MutableContact
WithOrganizationName sets the name of the organization associated with the contact.
func (*MutableContact) WithPhoneNumbers ¶ added in v0.17.0
func (mc *MutableContact) WithPhoneNumbers(items ...obj.Object) *MutableContact
WithPhoneNumbers sets an array of labeled phone numbers for a contact.
func (*MutableContact) WithPhoneticFamilyName ¶ added in v0.17.0
func (mc *MutableContact) WithPhoneticFamilyName(phoneticFamilyName string) *MutableContact
WithPhoneticFamilyName sets the phonetic family name of the contact.
func (*MutableContact) WithPhoneticGivenName ¶ added in v0.17.0
func (mc *MutableContact) WithPhoneticGivenName(phoneticGivenName string) *MutableContact
WithPhoneticGivenName sets the phonetic given name of the contact.
func (*MutableContact) WithPhoneticMiddleName ¶ added in v0.17.0
func (mc *MutableContact) WithPhoneticMiddleName(phoneticMiddleName string) *MutableContact
WithPhoneticMiddleName sets the phonetic middle name of the contact.
func (*MutableContact) WithPhoneticOrganizationName ¶ added in v0.17.0
func (mc *MutableContact) WithPhoneticOrganizationName(phoneticOrganizationName string) *MutableContact
WithPhoneticOrganizationName sets the phonetic name of the organization associated with the contact.
func (*MutableContact) WithPostalAddresses ¶ added in v0.17.0
func (mc *MutableContact) WithPostalAddresses(items ...obj.Object) *MutableContact
WithPostalAddresses sets an array of labeled postal addresses for a contact.
func (*MutableContact) WithPreviousFamilyName ¶ added in v0.17.0
func (mc *MutableContact) WithPreviousFamilyName(previousFamilyName string) *MutableContact
WithPreviousFamilyName sets the previous family name of the contact.
func (*MutableContact) WithSocialProfiles ¶ added in v0.17.0
func (mc *MutableContact) WithSocialProfiles(items ...obj.Object) *MutableContact
WithSocialProfiles sets an array of labeled social profiles for a contact.
func (*MutableContact) WithURLAddresses ¶ added in v0.17.0
func (mc *MutableContact) WithURLAddresses(items ...obj.Object) *MutableContact
WithURLAddresses sets an array of labeled URL addresses for a contact.
type MutableGroup ¶ added in v0.17.0
type MutableGroup struct {
Group
}
MutableGroup is an idiomatic wrapper over the Objective-C class CNMutableGroup.
It embeds Group, promoting that type's methods.
A mutable object that represents a group of contacts.
func MutableGroupFromID ¶ added in v0.17.0
func MutableGroupFromID(id objc.ID) *MutableGroup
MutableGroupFromID adopts an existing Objective-C object as a MutableGroup (nil for 0), retaining it and registering a release finalizer.
func NewMutableGroup ¶ added in v0.17.0
func NewMutableGroup() *MutableGroup
NewMutableGroup creates a new MutableGroup.
func (*MutableGroup) WithName ¶ added in v0.17.0
func (mg *MutableGroup) WithName(name string) *MutableGroup
WithName sets the name of the group.
type MutablePostalAddress ¶ added in v0.17.0
type MutablePostalAddress struct {
PostalAddress
}
MutablePostalAddress is an idiomatic wrapper over the Objective-C class CNMutablePostalAddress.
It embeds PostalAddress, promoting that type's methods.
A mutable representation of the postal address for a contact.
func MutablePostalAddressFromID ¶ added in v0.17.0
func MutablePostalAddressFromID(id objc.ID) *MutablePostalAddress
MutablePostalAddressFromID adopts an existing Objective-C object as a MutablePostalAddress (nil for 0), retaining it and registering a release finalizer.
func NewMutablePostalAddress ¶ added in v0.17.0
func NewMutablePostalAddress() *MutablePostalAddress
NewMutablePostalAddress creates a new MutablePostalAddress.
func (*MutablePostalAddress) WithCity ¶ added in v0.17.0
func (mpa *MutablePostalAddress) WithCity(city string) *MutablePostalAddress
WithCity sets the city name of the address.
func (*MutablePostalAddress) WithCountry ¶ added in v0.17.0
func (mpa *MutablePostalAddress) WithCountry(country string) *MutablePostalAddress
WithCountry sets the country or region name of the address.
func (*MutablePostalAddress) WithISOCountryCode ¶ added in v0.17.0
func (mpa *MutablePostalAddress) WithISOCountryCode(isoCountryCode string) *MutablePostalAddress
WithISOCountryCode sets the ISO country code, using the ISO 3166-1 alpha-2 standard.
func (*MutablePostalAddress) WithPostalCode ¶ added in v0.17.0
func (mpa *MutablePostalAddress) WithPostalCode(postalCode string) *MutablePostalAddress
WithPostalCode sets the postal code of the address.
func (*MutablePostalAddress) WithState ¶ added in v0.17.0
func (mpa *MutablePostalAddress) WithState(state string) *MutablePostalAddress
WithState sets the state name of the address.
func (*MutablePostalAddress) WithStreet ¶ added in v0.17.0
func (mpa *MutablePostalAddress) WithStreet(street string) *MutablePostalAddress
WithStreet sets the street name of the address.
func (*MutablePostalAddress) WithSubAdministrativeArea ¶ added in v0.17.0
func (mpa *MutablePostalAddress) WithSubAdministrativeArea(subAdministrativeArea string) *MutablePostalAddress
WithSubAdministrativeArea sets the subadministrative area (such as a county or other region) in a postal address.
func (*MutablePostalAddress) WithSubLocality ¶ added in v0.17.0
func (mpa *MutablePostalAddress) WithSubLocality(subLocality string) *MutablePostalAddress
WithSubLocality sets additional information associated with the location, typically defined at the city or town level, in a postal address.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PhoneNumber ¶ added in v0.17.0
PhoneNumber is an idiomatic wrapper over the Objective-C class CNPhoneNumber.
An immutable object representing a phone number for a contact.
func NewPhoneNumber ¶ added in v0.17.0
func NewPhoneNumber() *PhoneNumber
NewPhoneNumber creates a new PhoneNumber.
func NewPhoneNumberWithStringValue ¶ added in v0.17.0
func NewPhoneNumberWithStringValue(str string) *PhoneNumber
NewPhoneNumberWithStringValue returns a new phone number object initialized with the specified phone number string.
func PhoneNumberFromID ¶ added in v0.17.0
func PhoneNumberFromID(id objc.ID) *PhoneNumber
PhoneNumberFromID adopts an existing Objective-C object as a PhoneNumber (nil for 0), retaining it and registering a release finalizer.
func PhoneNumberWithStringValue ¶ added in v0.17.0
func PhoneNumberWithStringValue(stringValue string) *PhoneNumber
PhoneNumberWithStringValue returns a new phone number object initialized with the specified phone number string.
func (*PhoneNumber) Description ¶ added in v0.17.0
func (pn *PhoneNumber) Description() string
Description returns the object's -description text.
func (*PhoneNumber) IsEqual ¶ added in v0.17.0
func (pn *PhoneNumber) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PhoneNumber) IsKind ¶ added in v0.17.0
func (pn *PhoneNumber) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PhoneNumber) String ¶ added in v0.17.0
func (pn *PhoneNumber) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*PhoneNumber) StringValue ¶ added in v0.17.0
func (pn *PhoneNumber) StringValue() string
StringValue returns the string value.
type PostalAddress ¶ added in v0.17.0
PostalAddress is an idiomatic wrapper over the Objective-C class CNPostalAddress.
PostalAddress is an abstract base — you do not construct it directly. Construct one of MutablePostalAddress and pass it where a PostalAddress is accepted.
An immutable representation of the postal address for a contact.
func PostalAddressFromID ¶ added in v0.17.0
func PostalAddressFromID(id objc.ID) *PostalAddress
PostalAddressFromID adopts an existing Objective-C object as a PostalAddress (nil for 0), retaining it and registering a release finalizer.
func (*PostalAddress) City ¶ added in v0.17.0
func (pa *PostalAddress) City() string
City returns the city.
func (*PostalAddress) Country ¶ added in v0.17.0
func (pa *PostalAddress) Country() string
Country returns the country.
func (*PostalAddress) Description ¶ added in v0.17.0
func (pa *PostalAddress) Description() string
Description returns the object's -description text.
func (*PostalAddress) ISOCountryCode ¶ added in v0.17.0
func (pa *PostalAddress) ISOCountryCode() string
ISOCountryCode returns the iso country code.
func (*PostalAddress) IsEqual ¶ added in v0.17.0
func (pa *PostalAddress) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PostalAddress) IsKind ¶ added in v0.17.0
func (pa *PostalAddress) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PostalAddress) PostalCode ¶ added in v0.17.0
func (pa *PostalAddress) PostalCode() string
PostalCode returns the postal code.
func (*PostalAddress) State ¶ added in v0.17.0
func (pa *PostalAddress) State() string
State returns the state.
func (*PostalAddress) Street ¶ added in v0.17.0
func (pa *PostalAddress) Street() string
Street returns multi-street address is delimited with carriage returns “\n”
func (*PostalAddress) String ¶ added in v0.17.0
func (pa *PostalAddress) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*PostalAddress) SubAdministrativeArea ¶ added in v0.17.0
func (pa *PostalAddress) SubAdministrativeArea() string
SubAdministrativeArea returns the sub administrative area.
func (*PostalAddress) SubLocality ¶ added in v0.17.0
func (pa *PostalAddress) SubLocality() string
SubLocality returns the sub locality.
type PostalAddressFormatter ¶ added in v0.17.0
PostalAddressFormatter is an idiomatic wrapper over the Objective-C class CNPostalAddressFormatter.
An object that you use to format a contact’s postal addresses.
func NewPostalAddressFormatter ¶ added in v0.17.0
func NewPostalAddressFormatter() *PostalAddressFormatter
NewPostalAddressFormatter creates a new PostalAddressFormatter.
func PostalAddressFormatterFromID ¶ added in v0.17.0
func PostalAddressFormatterFromID(id objc.ID) *PostalAddressFormatter
PostalAddressFormatterFromID adopts an existing Objective-C object as a PostalAddressFormatter (nil for 0), retaining it and registering a release finalizer.
func (*PostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes ¶ added in v0.17.0
func (paf *PostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress *PostalAddress, attributes obj.Object) *foundation.AttributedString
AttributedStringFromPostalAddressWithDefaultAttributes returns a formatted postal address as an attributed string.
func (*PostalAddressFormatter) Description ¶ added in v0.17.0
func (paf *PostalAddressFormatter) Description() string
Description returns the object's -description text.
func (*PostalAddressFormatter) IsEqual ¶ added in v0.17.0
func (paf *PostalAddressFormatter) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PostalAddressFormatter) IsKind ¶ added in v0.17.0
func (paf *PostalAddressFormatter) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PostalAddressFormatter) String ¶ added in v0.17.0
func (paf *PostalAddressFormatter) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*PostalAddressFormatter) StringFromPostalAddress ¶ added in v0.17.0
func (paf *PostalAddressFormatter) StringFromPostalAddress(postalAddress *PostalAddress) string
StringFromPostalAddress returns a formatted postal address.
func (*PostalAddressFormatter) Style ¶ added in v0.17.0
func (paf *PostalAddressFormatter) Style() PostalAddressFormatterStyle
Style returns the style for a postal address formatter instance. The default value is CNPostalAddressFormatterStyleMailingAddress.
func (*PostalAddressFormatter) WithStyle ¶ added in v0.17.0
func (paf *PostalAddressFormatter) WithStyle(style PostalAddressFormatterStyle) *PostalAddressFormatter
WithStyle sets the style to apply when formatting strings.
type PostalAddressFormatterStyle ¶ added in v0.17.0
type PostalAddressFormatterStyle int64
Constants for postal formatting styles.
const ( // A style that combines the postal address components into a multi-line mailing address. PostalAddressFormatterStyleMailingAddress PostalAddressFormatterStyle = 0 )
func (PostalAddressFormatterStyle) String ¶ added in v0.17.0
func (e PostalAddressFormatterStyle) String() string
String returns the PostalAddressFormatterStyle constant's name, or its numeric form when the value is not a known constant.
type PostalAddressProvider ¶ added in v0.17.0
PostalAddressProvider is accepted wherever a CNPostalAddress (or one of its subclasses) is expected.
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type SaveRequest ¶ added in v0.17.0
SaveRequest is an idiomatic wrapper over the Objective-C class CNSaveRequest.
An object that collects the changes you want to save to the user’s contacts database.
func NewSaveRequest ¶ added in v0.17.0
func NewSaveRequest() *SaveRequest
NewSaveRequest creates a new SaveRequest.
func SaveRequestFromID ¶ added in v0.17.0
func SaveRequestFromID(id objc.ID) *SaveRequest
SaveRequestFromID adopts an existing Objective-C object as a SaveRequest (nil for 0), retaining it and registering a release finalizer.
func (*SaveRequest) AddContactToContainerWithIdentifier ¶ added in v0.17.0
func (sr *SaveRequest) AddContactToContainerWithIdentifier(contact *MutableContact, identifier string)
AddContactToContainerWithIdentifier adds the specified contact to the contact store.
func (*SaveRequest) AddGroupToContainerWithIdentifier ¶ added in v0.17.0
func (sr *SaveRequest) AddGroupToContainerWithIdentifier(group *MutableGroup, identifier string)
AddGroupToContainerWithIdentifier adds a group to the contact store.
func (*SaveRequest) AddMemberToGroup ¶ added in v0.17.0
func (sr *SaveRequest) AddMemberToGroup(contact *Contact, group *Group)
AddMemberToGroup adds a contact as a member of a group.
func (*SaveRequest) AddSubgroupToGroup ¶ added in v0.17.0
func (sr *SaveRequest) AddSubgroupToGroup(subgroup *Group, group *Group)
AddSubgroupToGroup add the specified group to a parent group.
func (*SaveRequest) DeleteContact ¶ added in v0.17.0
func (sr *SaveRequest) DeleteContact(contact *MutableContact)
DeleteContact deletes a contact from the contact store.
func (*SaveRequest) DeleteGroup ¶ added in v0.17.0
func (sr *SaveRequest) DeleteGroup(group *MutableGroup)
DeleteGroup deletes a group from the contact store.
func (*SaveRequest) Description ¶ added in v0.17.0
func (sr *SaveRequest) Description() string
Description returns the object's -description text.
func (*SaveRequest) IsEqual ¶ added in v0.17.0
func (sr *SaveRequest) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*SaveRequest) IsKind ¶ added in v0.17.0
func (sr *SaveRequest) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*SaveRequest) RemoveMemberFromGroup ¶ added in v0.17.0
func (sr *SaveRequest) RemoveMemberFromGroup(contact *Contact, group *Group)
RemoveMemberFromGroup removes a contact as a member of a group.
func (*SaveRequest) RemoveSubgroupFromGroup ¶ added in v0.17.0
func (sr *SaveRequest) RemoveSubgroupFromGroup(subgroup *Group, group *Group)
RemoveSubgroupFromGroup remove a subgroup from the specified parent group.
func (*SaveRequest) ShouldRefetchContacts ¶ added in v0.17.0
func (sr *SaveRequest) ShouldRefetchContacts() bool
ShouldRefetchContacts reports whether should the contacts be refetched as part of executing the save request. Default is `YES` where added and updated contacts are refetched by the executing save request. Set to `NO` to suppress this refetch behavior and reduce the execution time of the save request.
func (*SaveRequest) String ¶ added in v0.17.0
func (sr *SaveRequest) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*SaveRequest) TransactionAuthor ¶ added in v0.17.0
func (sr *SaveRequest) TransactionAuthor() string
TransactionAuthor returns the author of this transaction. Use this, in conjunction with
func (*SaveRequest) UpdateContact ¶ added in v0.17.0
func (sr *SaveRequest) UpdateContact(contact *MutableContact)
UpdateContact updates an existing contact in the contact store.
func (*SaveRequest) UpdateGroup ¶ added in v0.17.0
func (sr *SaveRequest) UpdateGroup(group *MutableGroup)
UpdateGroup updates an existing group in the contact store.
func (*SaveRequest) WithShouldRefetchContacts ¶ added in v0.17.0
func (sr *SaveRequest) WithShouldRefetchContacts(shouldRefetchContacts bool) *SaveRequest
WithShouldRefetchContacts sets a Boolean value that indicates whether to refetch the added and updated contacts after the save request executes.
func (*SaveRequest) WithTransactionAuthor ¶ added in v0.17.0
func (sr *SaveRequest) WithTransactionAuthor(transactionAuthor string) *SaveRequest
WithTransactionAuthor sets a string that identifies the author of the transaction.
type SocialProfile ¶ added in v0.17.0
SocialProfile is an idiomatic wrapper over the Objective-C class CNSocialProfile.
An immutable object that represents one of the user’s social profiles.
func NewSocialProfileWithURLStringUsernameUserIdentifierService ¶ added in v0.17.0
func NewSocialProfileWithURLStringUsernameUserIdentifierService(urlString string, username string, userIdentifier string, service string) *SocialProfile
NewSocialProfileWithURLStringUsernameUserIdentifierService initializes a new social profile object with the specified URL.
func SocialProfileFromID ¶ added in v0.17.0
func SocialProfileFromID(id objc.ID) *SocialProfile
SocialProfileFromID adopts an existing Objective-C object as a SocialProfile (nil for 0), retaining it and registering a release finalizer.
func (*SocialProfile) Description ¶ added in v0.17.0
func (sp *SocialProfile) Description() string
Description returns the object's -description text.
func (*SocialProfile) IsEqual ¶ added in v0.17.0
func (sp *SocialProfile) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*SocialProfile) IsKind ¶ added in v0.17.0
func (sp *SocialProfile) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*SocialProfile) Service ¶ added in v0.17.0
func (sp *SocialProfile) Service() string
Service returns the service.
func (*SocialProfile) String ¶ added in v0.17.0
func (sp *SocialProfile) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*SocialProfile) URLString ¶ added in v0.17.0
func (sp *SocialProfile) URLString() string
URLString returns the URL string.
func (*SocialProfile) UserIdentifier ¶ added in v0.17.0
func (sp *SocialProfile) UserIdentifier() string
UserIdentifier returns the user identifier.
func (*SocialProfile) Username ¶ added in v0.17.0
func (sp *SocialProfile) Username() string
Username returns the username.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- CNChangeHistoryAddContactEvent_generated.go
- CNChangeHistoryAddGroupEvent_generated.go
- CNChangeHistoryAddMemberToGroupEvent_generated.go
- CNChangeHistoryAddSubgroupToGroupEvent_generated.go
- CNChangeHistoryDeleteContactEvent_generated.go
- CNChangeHistoryDeleteGroupEvent_generated.go
- CNChangeHistoryDropEverythingEvent_generated.go
- CNChangeHistoryEvent_generated.go
- CNChangeHistoryFetchRequest_generated.go
- CNChangeHistoryRemoveMemberFromGroupEvent_generated.go
- CNChangeHistoryRemoveSubgroupFromGroupEvent_generated.go
- CNChangeHistoryUpdateContactEvent_generated.go
- CNChangeHistoryUpdateGroupEvent_generated.go
- CNContactFetchRequest_generated.go
- CNContactFormatter_generated.go
- CNContactProperty_generated.go
- CNContactRelation_generated.go
- CNContactStore_generated.go
- CNContactVCardSerialization_generated.go
- CNContact_generated.go
- CNContactsUserDefaults_generated.go
- CNContainer_generated.go
- CNFetchRequest_generated.go
- CNFetchResult_generated.go
- CNGroup_generated.go
- CNInstantMessageAddress_generated.go
- CNLabeledValue_generated.go
- CNMutableContact_generated.go
- CNMutableGroup_generated.go
- CNMutablePostalAddress_generated.go
- CNPhoneNumber_generated.go
- CNPostalAddressFormatter_generated.go
- CNPostalAddress_generated.go
- CNSaveRequest_generated.go
- CNSocialProfile_generated.go
- contacts_classmethods_generated.go
- contacts_constants_generated.go
- contacts_enums_generated.go
- contacts_errors_generated.go
- contacts_protocols_generated.go
- contacts_providers_generated.go
- contacts_runtime_generated.go
- doc.go