contacts

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package contacts provides purego-based Go bindings for the macOS Contacts framework.

Apple documentation: https://developer.apple.com/documentation/contacts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CNContactBirthdayKey

func CNContactBirthdayKey() uintptr

func CNContactComparatorForNameSortOrder

func CNContactComparatorForNameSortOrder(sortOrder CNContactSortOrder) objc.Block

The contact comparator for a given sort order.

func CNContactDatesKey

func CNContactDatesKey() uintptr

func CNContactDepartmentNameKey

func CNContactDepartmentNameKey() uintptr

func CNContactEmailAddressesKey

func CNContactEmailAddressesKey() uintptr

func CNContactFamilyNameKey

func CNContactFamilyNameKey() uintptr

func CNContactFormatterAttributedStringFromContactStyleDefaultAttributes

func CNContactFormatterAttributedStringFromContactStyleDefaultAttributes(contact *CNContact, style CNContactFormatterStyle, attributes *foundation.NSDictionary[objc.ID, objc.ID]) *foundation.NSAttributedString

@abstract Formats the contact name returning an attributed string. @discussion This behaves like +stringFromContact:style: except it returns an attributed string. Includes the attribute key CNContactPropertyAttribute. @param contact The contact whose name is to be formatted. @param style The formatting style to be used for the contact name. @param attributes The default attributes to use. See NSFormatter for details. @return The formatted contact name as an attributed string.

func CNContactFormatterDelimiterForContact

func CNContactFormatterDelimiterForContact(contact *CNContact) *foundation.NSString

@abstract The recommended delimiter to use between name components for a given contact.

func CNContactFormatterStringFromContactStyle

func CNContactFormatterStringFromContactStyle(contact *CNContact, style CNContactFormatterStyle) *foundation.NSString

@abstract Formats the contact name. @param contact The contact whose name is to be formatted. @param style The formatting style to be used for the contact name. @return The formatted contact name.

func CNContactGivenNameKey

func CNContactGivenNameKey() uintptr

func CNContactIdentifierKey

func CNContactIdentifierKey() uintptr

func CNContactImageDataAvailableKey

func CNContactImageDataAvailableKey() uintptr

func CNContactImageDataKey

func CNContactImageDataKey() uintptr

func CNContactInstantMessageAddressesKey

func CNContactInstantMessageAddressesKey() uintptr

func CNContactJobTitleKey

func CNContactJobTitleKey() uintptr

func CNContactLocalizedStringForKey

func CNContactLocalizedStringForKey(key *foundation.NSString) *foundation.NSString

Returns a user displayable property name.

func CNContactMiddleNameKey

func CNContactMiddleNameKey() uintptr

func CNContactNamePrefixKey

func CNContactNamePrefixKey() uintptr

func CNContactNameSuffixKey

func CNContactNameSuffixKey() uintptr

func CNContactNicknameKey

func CNContactNicknameKey() uintptr

func CNContactNonGregorianBirthdayKey

func CNContactNonGregorianBirthdayKey() uintptr

func CNContactNoteKey

func CNContactNoteKey() uintptr

func CNContactOrganizationNameKey

func CNContactOrganizationNameKey() uintptr

func CNContactPhoneNumbersKey

func CNContactPhoneNumbersKey() uintptr

func CNContactPhoneticFamilyNameKey

func CNContactPhoneticFamilyNameKey() uintptr

func CNContactPhoneticGivenNameKey

func CNContactPhoneticGivenNameKey() uintptr

func CNContactPhoneticMiddleNameKey

func CNContactPhoneticMiddleNameKey() uintptr

func CNContactPhoneticOrganizationNameKey

func CNContactPhoneticOrganizationNameKey() uintptr

func CNContactPostalAddressesKey

func CNContactPostalAddressesKey() uintptr

func CNContactPredicateForContactsInContainerWithIdentifier

func CNContactPredicateForContactsInContainerWithIdentifier(containerIdentifier *foundation.NSString) *foundation.NSPredicate

func CNContactPredicateForContactsInGroupWithIdentifier

func CNContactPredicateForContactsInGroupWithIdentifier(groupIdentifier *foundation.NSString) *foundation.NSPredicate

func CNContactPredicateForContactsMatchingEmailAddress

func CNContactPredicateForContactsMatchingEmailAddress(emailAddress *foundation.NSString) *foundation.NSPredicate

@abstract Fetch contacts matching an email address. @discussion Use this predicate to find the contact(s) which contain the specified email address. The search is not case-sensitive. @param emailAddress The email address to search for. Do not include a scheme (e.g., "mailto:").

func CNContactPredicateForContactsMatchingName

func CNContactPredicateForContactsMatchingName(name *foundation.NSString) *foundation.NSPredicate

@abstract To fetch contacts matching a name. @discussion The name can contain any number of words.

func CNContactPredicateForContactsMatchingPhoneNumber

func CNContactPredicateForContactsMatchingPhoneNumber(phoneNumber *CNPhoneNumber) *foundation.NSPredicate

@abstract Fetch contacts matching a phone number. @discussion If the predicate and contact differ in their use or presence of country codes, a best effort will be made to match results; however, inexact matches are not guaranteed. @param phoneNumber A @c CNPhoneNumber representing the phone number to search for. Do not include a scheme (e.g., "tel:").

func CNContactPredicateForContactsWithIdentifiers

func CNContactPredicateForContactsWithIdentifiers(identifiers *foundation.NSArray[*foundation.NSString]) *foundation.NSPredicate

To fetch contacts matching contact identifiers.

func CNContactPreviousFamilyNameKey

func CNContactPreviousFamilyNameKey() uintptr

func CNContactPropertyAttribute

func CNContactPropertyAttribute() uintptr

func CNContactPropertyNotFetchedExceptionName

func CNContactPropertyNotFetchedExceptionName() uintptr

func CNContactRelationsKey

func CNContactRelationsKey() uintptr

func CNContactSocialProfilesKey

func CNContactSocialProfilesKey() uintptr

func CNContactStoreDidChangeNotification

func CNContactStoreDidChangeNotification() uintptr

@abstract Notification posted when changes occur in another CNContactStore.

func CNContactThumbnailImageDataKey

func CNContactThumbnailImageDataKey() uintptr

func CNContactTypeKey

func CNContactTypeKey() uintptr

func CNContactUrlAddressesKey

func CNContactUrlAddressesKey() uintptr

func CNContactVCardSerializationContactsWithDataError

func CNContactVCardSerializationContactsWithDataError(data *foundation.NSData) (*foundation.NSArray[*CNContact], error)

@abstract Parse data into contacts. @param data The data to parse. @param error An optional outparameter. If the parsing fails, this will be set. @returns The parsed contacts. If the parsing fails, this will be @c nil.

func CNContactVCardSerializationDataWithContactsError

func CNContactVCardSerializationDataWithContactsError(contacts *foundation.NSArray[*CNContact]) (*foundation.NSData, error)

@abstract Serialize contacts to data. @discussion The contacts to be serialized must have been fetched with @c +descriptorForRequiredKeys. @param contacts The contacts to serialize. @param error An optional outparameter. If the serialization fails, this will be set. @returns The encoded data. If the serialization fails, this will be @c nil.

func CNContainerIdentifierKey

func CNContainerIdentifierKey() uintptr

func CNContainerNameKey

func CNContainerNameKey() uintptr

func CNContainerPredicateForContainerOfContactWithIdentifier

func CNContainerPredicateForContainerOfContactWithIdentifier(contactIdentifier *foundation.NSString) *foundation.NSPredicate

@discussion If the identifier is for a unified contact then the fetch will return an empty array. To fetch the containers of a unified contact, first fetch the linked contacts then fetch the container of each linked contact.

func CNContainerPredicateForContainerOfGroupWithIdentifier

func CNContainerPredicateForContainerOfGroupWithIdentifier(groupIdentifier *foundation.NSString) *foundation.NSPredicate

func CNContainerPredicateForContainersWithIdentifiers

func CNContainerPredicateForContainersWithIdentifiers(identifiers *foundation.NSArray[*foundation.NSString]) *foundation.NSPredicate

func CNContainerTypeKey

func CNContainerTypeKey() uintptr

func CNErrorDomain

func CNErrorDomain() uintptr

func CNErrorUserInfoAffectedRecordIdentifiersKey

func CNErrorUserInfoAffectedRecordIdentifiersKey() uintptr

When available an array of one or more NSString objects for which the error code applies.

func CNErrorUserInfoAffectedRecordsKey

func CNErrorUserInfoAffectedRecordsKey() uintptr

When available an array of one or more CNContact, CNGroup, CNContainer, CNSaveRequest, or CNFetchRequest objects for which the error code applies.

func CNErrorUserInfoKeyPathsKey

func CNErrorUserInfoKeyPathsKey() uintptr

An array of key paths associated with a given error. For validation errors this will contain key paths to specific object properties.

func CNErrorUserInfoValidationErrorsKey

func CNErrorUserInfoValidationErrorsKey() uintptr

An array of NSErrors for CNErrorCodeValidationMultipleErrors.

func CNGroupIdentifierKey

func CNGroupIdentifierKey() uintptr

func CNGroupNameKey

func CNGroupNameKey() uintptr

func CNGroupPredicateForGroupsInContainerWithIdentifier

func CNGroupPredicateForGroupsInContainerWithIdentifier(containerIdentifier *foundation.NSString) *foundation.NSPredicate

func CNGroupPredicateForGroupsWithIdentifiers

func CNGroupPredicateForGroupsWithIdentifiers(identifiers *foundation.NSArray[*foundation.NSString]) *foundation.NSPredicate

func CNGroupPredicateForSubgroupsInGroupWithIdentifier

func CNGroupPredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier *foundation.NSString) *foundation.NSPredicate

func CNInstantMessageAddressLocalizedStringForKey

func CNInstantMessageAddressLocalizedStringForKey(key *foundation.NSString) *foundation.NSString

Returns a user displayable property name.

func CNInstantMessageAddressLocalizedStringForService

func CNInstantMessageAddressLocalizedStringForService(service *foundation.NSString) *foundation.NSString

Returns a user displayable service name.

func CNInstantMessageAddressServiceKey

func CNInstantMessageAddressServiceKey() uintptr

func CNInstantMessageAddressUsernameKey

func CNInstantMessageAddressUsernameKey() uintptr

func CNInstantMessageServiceAIM

func CNInstantMessageServiceAIM() uintptr

func CNInstantMessageServiceFacebook

func CNInstantMessageServiceFacebook() uintptr

func CNInstantMessageServiceGaduGadu

func CNInstantMessageServiceGaduGadu() uintptr

func CNInstantMessageServiceGoogleTalk

func CNInstantMessageServiceGoogleTalk() uintptr

func CNInstantMessageServiceICQ

func CNInstantMessageServiceICQ() uintptr

func CNInstantMessageServiceJabber

func CNInstantMessageServiceJabber() uintptr

func CNInstantMessageServiceMSN

func CNInstantMessageServiceMSN() uintptr

func CNInstantMessageServiceQQ

func CNInstantMessageServiceQQ() uintptr

func CNInstantMessageServiceSkype

func CNInstantMessageServiceSkype() uintptr

func CNInstantMessageServiceYahoo

func CNInstantMessageServiceYahoo() uintptr

func CNLabelContactRelationAssistant

func CNLabelContactRelationAssistant() uintptr

func CNLabelContactRelationAunt

func CNLabelContactRelationAunt() uintptr

func CNLabelContactRelationAuntFathersBrothersWife

func CNLabelContactRelationAuntFathersBrothersWife() uintptr

func CNLabelContactRelationAuntFathersElderBrothersWife

func CNLabelContactRelationAuntFathersElderBrothersWife() uintptr

func CNLabelContactRelationAuntFathersElderSister

func CNLabelContactRelationAuntFathersElderSister() uintptr

func CNLabelContactRelationAuntFathersSister

func CNLabelContactRelationAuntFathersSister() uintptr

func CNLabelContactRelationAuntFathersYoungerBrothersWife

func CNLabelContactRelationAuntFathersYoungerBrothersWife() uintptr

func CNLabelContactRelationAuntFathersYoungerSister

func CNLabelContactRelationAuntFathersYoungerSister() uintptr

func CNLabelContactRelationAuntMothersBrothersWife

func CNLabelContactRelationAuntMothersBrothersWife() uintptr

func CNLabelContactRelationAuntMothersElderSister

func CNLabelContactRelationAuntMothersElderSister() uintptr

func CNLabelContactRelationAuntMothersSister

func CNLabelContactRelationAuntMothersSister() uintptr

func CNLabelContactRelationAuntMothersYoungerSister

func CNLabelContactRelationAuntMothersYoungerSister() uintptr

func CNLabelContactRelationAuntParentsElderSister

func CNLabelContactRelationAuntParentsElderSister() uintptr

func CNLabelContactRelationAuntParentsSister

func CNLabelContactRelationAuntParentsSister() uintptr

func CNLabelContactRelationAuntParentsYoungerSister

func CNLabelContactRelationAuntParentsYoungerSister() uintptr

func CNLabelContactRelationBoyfriend

func CNLabelContactRelationBoyfriend() uintptr

func CNLabelContactRelationBrother

func CNLabelContactRelationBrother() uintptr

func CNLabelContactRelationBrotherInLaw

func CNLabelContactRelationBrotherInLaw() uintptr

func CNLabelContactRelationBrotherInLawElderSistersHusband

func CNLabelContactRelationBrotherInLawElderSistersHusband() uintptr

func CNLabelContactRelationBrotherInLawHusbandsBrother

func CNLabelContactRelationBrotherInLawHusbandsBrother() uintptr

func CNLabelContactRelationBrotherInLawHusbandsSistersHusband

func CNLabelContactRelationBrotherInLawHusbandsSistersHusband() uintptr

func CNLabelContactRelationBrotherInLawSistersHusband

func CNLabelContactRelationBrotherInLawSistersHusband() uintptr

func CNLabelContactRelationBrotherInLawSpousesBrother

func CNLabelContactRelationBrotherInLawSpousesBrother() uintptr

func CNLabelContactRelationBrotherInLawWifesBrother

func CNLabelContactRelationBrotherInLawWifesBrother() uintptr

func CNLabelContactRelationBrotherInLawWifesSistersHusband

func CNLabelContactRelationBrotherInLawWifesSistersHusband() uintptr

func CNLabelContactRelationBrotherInLawYoungerSistersHusband

func CNLabelContactRelationBrotherInLawYoungerSistersHusband() uintptr

func CNLabelContactRelationChild

func CNLabelContactRelationChild() uintptr

func CNLabelContactRelationChildInLaw

func CNLabelContactRelationChildInLaw() uintptr

func CNLabelContactRelationCoBrotherInLaw

func CNLabelContactRelationCoBrotherInLaw() uintptr

func CNLabelContactRelationCoFatherInLaw

func CNLabelContactRelationCoFatherInLaw() uintptr

func CNLabelContactRelationCoMotherInLaw

func CNLabelContactRelationCoMotherInLaw() uintptr

func CNLabelContactRelationCoParentInLaw

func CNLabelContactRelationCoParentInLaw() uintptr

func CNLabelContactRelationCoSiblingInLaw

func CNLabelContactRelationCoSiblingInLaw() uintptr

func CNLabelContactRelationCoSisterInLaw

func CNLabelContactRelationCoSisterInLaw() uintptr

func CNLabelContactRelationColleague

func CNLabelContactRelationColleague() uintptr

func CNLabelContactRelationCousin

func CNLabelContactRelationCousin() uintptr

func CNLabelContactRelationCousinFathersBrothersDaughter

func CNLabelContactRelationCousinFathersBrothersDaughter() uintptr

func CNLabelContactRelationCousinFathersBrothersSon

func CNLabelContactRelationCousinFathersBrothersSon() uintptr

func CNLabelContactRelationCousinFathersSistersDaughter

func CNLabelContactRelationCousinFathersSistersDaughter() uintptr

func CNLabelContactRelationCousinFathersSistersSon

func CNLabelContactRelationCousinFathersSistersSon() uintptr

func CNLabelContactRelationCousinGrandparentsSiblingsChild

func CNLabelContactRelationCousinGrandparentsSiblingsChild() uintptr

func CNLabelContactRelationCousinGrandparentsSiblingsDaughter

func CNLabelContactRelationCousinGrandparentsSiblingsDaughter() uintptr

func CNLabelContactRelationCousinGrandparentsSiblingsSon

func CNLabelContactRelationCousinGrandparentsSiblingsSon() uintptr

func CNLabelContactRelationCousinMothersBrothersDaughter

func CNLabelContactRelationCousinMothersBrothersDaughter() uintptr

func CNLabelContactRelationCousinMothersBrothersSon

func CNLabelContactRelationCousinMothersBrothersSon() uintptr

func CNLabelContactRelationCousinMothersSistersDaughter

func CNLabelContactRelationCousinMothersSistersDaughter() uintptr

func CNLabelContactRelationCousinMothersSistersSon

func CNLabelContactRelationCousinMothersSistersSon() uintptr

func CNLabelContactRelationCousinOrSiblingsChild

func CNLabelContactRelationCousinOrSiblingsChild() uintptr

func CNLabelContactRelationCousinParentsSiblingsChild

func CNLabelContactRelationCousinParentsSiblingsChild() uintptr

func CNLabelContactRelationCousinParentsSiblingsDaughter

func CNLabelContactRelationCousinParentsSiblingsDaughter() uintptr

func CNLabelContactRelationCousinParentsSiblingsSon

func CNLabelContactRelationCousinParentsSiblingsSon() uintptr

func CNLabelContactRelationDaughter

func CNLabelContactRelationDaughter() uintptr

func CNLabelContactRelationDaughterInLaw

func CNLabelContactRelationDaughterInLaw() uintptr

func CNLabelContactRelationDaughterInLawOrSisterInLaw

func CNLabelContactRelationDaughterInLawOrSisterInLaw() uintptr

func CNLabelContactRelationDaughterInLawOrStepdaughter

func CNLabelContactRelationDaughterInLawOrStepdaughter() uintptr

func CNLabelContactRelationElderBrother

func CNLabelContactRelationElderBrother() uintptr

func CNLabelContactRelationElderBrotherInLaw

func CNLabelContactRelationElderBrotherInLaw() uintptr

func CNLabelContactRelationElderCousin

func CNLabelContactRelationElderCousin() uintptr

func CNLabelContactRelationElderCousinFathersBrothersDaughter

func CNLabelContactRelationElderCousinFathersBrothersDaughter() uintptr

func CNLabelContactRelationElderCousinFathersBrothersSon

func CNLabelContactRelationElderCousinFathersBrothersSon() uintptr

func CNLabelContactRelationElderCousinFathersSistersDaughter

func CNLabelContactRelationElderCousinFathersSistersDaughter() uintptr

func CNLabelContactRelationElderCousinFathersSistersSon

func CNLabelContactRelationElderCousinFathersSistersSon() uintptr

func CNLabelContactRelationElderCousinMothersBrothersDaughter

func CNLabelContactRelationElderCousinMothersBrothersDaughter() uintptr

func CNLabelContactRelationElderCousinMothersBrothersSon

func CNLabelContactRelationElderCousinMothersBrothersSon() uintptr

func CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter

func CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter() uintptr

func CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon

func CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon() uintptr

func CNLabelContactRelationElderCousinMothersSistersDaughter

func CNLabelContactRelationElderCousinMothersSistersDaughter() uintptr

func CNLabelContactRelationElderCousinMothersSistersSon

func CNLabelContactRelationElderCousinMothersSistersSon() uintptr

func CNLabelContactRelationElderCousinParentsSiblingsDaughter

func CNLabelContactRelationElderCousinParentsSiblingsDaughter() uintptr

func CNLabelContactRelationElderCousinParentsSiblingsSon

func CNLabelContactRelationElderCousinParentsSiblingsSon() uintptr

func CNLabelContactRelationElderSibling

func CNLabelContactRelationElderSibling() uintptr

func CNLabelContactRelationElderSiblingInLaw

func CNLabelContactRelationElderSiblingInLaw() uintptr

func CNLabelContactRelationElderSister

func CNLabelContactRelationElderSister() uintptr

func CNLabelContactRelationElderSisterInLaw

func CNLabelContactRelationElderSisterInLaw() uintptr

func CNLabelContactRelationEldestBrother

func CNLabelContactRelationEldestBrother() uintptr

func CNLabelContactRelationEldestSister

func CNLabelContactRelationEldestSister() uintptr

func CNLabelContactRelationFather

func CNLabelContactRelationFather() uintptr

func CNLabelContactRelationFatherInLaw

func CNLabelContactRelationFatherInLaw() uintptr

func CNLabelContactRelationFatherInLawHusbandsFather

func CNLabelContactRelationFatherInLawHusbandsFather() uintptr

func CNLabelContactRelationFatherInLawOrStepfather

func CNLabelContactRelationFatherInLawOrStepfather() uintptr

func CNLabelContactRelationFatherInLawWifesFather

func CNLabelContactRelationFatherInLawWifesFather() uintptr

func CNLabelContactRelationFemaleCousin

func CNLabelContactRelationFemaleCousin() uintptr

func CNLabelContactRelationFemaleFriend

func CNLabelContactRelationFemaleFriend() uintptr

func CNLabelContactRelationFemalePartner

func CNLabelContactRelationFemalePartner() uintptr

func CNLabelContactRelationFriend

func CNLabelContactRelationFriend() uintptr

func CNLabelContactRelationGirlfriend

func CNLabelContactRelationGirlfriend() uintptr

func CNLabelContactRelationGirlfriendOrBoyfriend

func CNLabelContactRelationGirlfriendOrBoyfriend() uintptr

func CNLabelContactRelationGrandaunt

func CNLabelContactRelationGrandaunt() uintptr

func CNLabelContactRelationGrandchild

func CNLabelContactRelationGrandchild() uintptr

func CNLabelContactRelationGrandchildOrSiblingsChild

func CNLabelContactRelationGrandchildOrSiblingsChild() uintptr

func CNLabelContactRelationGranddaughter

func CNLabelContactRelationGranddaughter() uintptr

func CNLabelContactRelationGranddaughterDaughtersDaughter

func CNLabelContactRelationGranddaughterDaughtersDaughter() uintptr

func CNLabelContactRelationGranddaughterOrNiece

func CNLabelContactRelationGranddaughterOrNiece() uintptr

func CNLabelContactRelationGranddaughterSonsDaughter

func CNLabelContactRelationGranddaughterSonsDaughter() uintptr

func CNLabelContactRelationGrandfather

func CNLabelContactRelationGrandfather() uintptr

func CNLabelContactRelationGrandfatherFathersFather

func CNLabelContactRelationGrandfatherFathersFather() uintptr

func CNLabelContactRelationGrandfatherMothersFather

func CNLabelContactRelationGrandfatherMothersFather() uintptr

func CNLabelContactRelationGrandmother

func CNLabelContactRelationGrandmother() uintptr

func CNLabelContactRelationGrandmotherFathersMother

func CNLabelContactRelationGrandmotherFathersMother() uintptr

func CNLabelContactRelationGrandmotherMothersMother

func CNLabelContactRelationGrandmotherMothersMother() uintptr

func CNLabelContactRelationGrandnephew

func CNLabelContactRelationGrandnephew() uintptr

func CNLabelContactRelationGrandnephewBrothersGrandson

func CNLabelContactRelationGrandnephewBrothersGrandson() uintptr

func CNLabelContactRelationGrandnephewSistersGrandson

func CNLabelContactRelationGrandnephewSistersGrandson() uintptr

func CNLabelContactRelationGrandniece

func CNLabelContactRelationGrandniece() uintptr

func CNLabelContactRelationGrandnieceBrothersGranddaughter

func CNLabelContactRelationGrandnieceBrothersGranddaughter() uintptr

func CNLabelContactRelationGrandnieceSistersGranddaughter

func CNLabelContactRelationGrandnieceSistersGranddaughter() uintptr

func CNLabelContactRelationGrandparent

func CNLabelContactRelationGrandparent() uintptr

func CNLabelContactRelationGrandson

func CNLabelContactRelationGrandson() uintptr

func CNLabelContactRelationGrandsonDaughtersSon

func CNLabelContactRelationGrandsonDaughtersSon() uintptr

func CNLabelContactRelationGrandsonOrNephew

func CNLabelContactRelationGrandsonOrNephew() uintptr

func CNLabelContactRelationGrandsonSonsSon

func CNLabelContactRelationGrandsonSonsSon() uintptr

func CNLabelContactRelationGranduncle

func CNLabelContactRelationGranduncle() uintptr

func CNLabelContactRelationGreatGrandchild

func CNLabelContactRelationGreatGrandchild() uintptr

func CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild

func CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild() uintptr

func CNLabelContactRelationGreatGranddaughter

func CNLabelContactRelationGreatGranddaughter() uintptr

func CNLabelContactRelationGreatGrandfather

func CNLabelContactRelationGreatGrandfather() uintptr

func CNLabelContactRelationGreatGrandmother

func CNLabelContactRelationGreatGrandmother() uintptr

func CNLabelContactRelationGreatGrandparent

func CNLabelContactRelationGreatGrandparent() uintptr

func CNLabelContactRelationGreatGrandson

func CNLabelContactRelationGreatGrandson() uintptr

func CNLabelContactRelationHusband

func CNLabelContactRelationHusband() uintptr

func CNLabelContactRelationMaleCousin

func CNLabelContactRelationMaleCousin() uintptr

func CNLabelContactRelationMaleFriend

func CNLabelContactRelationMaleFriend() uintptr

func CNLabelContactRelationMalePartner

func CNLabelContactRelationMalePartner() uintptr

func CNLabelContactRelationManager

func CNLabelContactRelationManager() uintptr

func CNLabelContactRelationMother

func CNLabelContactRelationMother() uintptr

func CNLabelContactRelationMotherInLaw

func CNLabelContactRelationMotherInLaw() uintptr

func CNLabelContactRelationMotherInLawHusbandsMother

func CNLabelContactRelationMotherInLawHusbandsMother() uintptr

func CNLabelContactRelationMotherInLawOrStepmother

func CNLabelContactRelationMotherInLawOrStepmother() uintptr

func CNLabelContactRelationMotherInLawWifesMother

func CNLabelContactRelationMotherInLawWifesMother() uintptr

func CNLabelContactRelationNephew

func CNLabelContactRelationNephew() uintptr

func CNLabelContactRelationNephewBrothersSon

func CNLabelContactRelationNephewBrothersSon() uintptr

func CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon

func CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon() uintptr

func CNLabelContactRelationNephewOrCousin

func CNLabelContactRelationNephewOrCousin() uintptr

func CNLabelContactRelationNephewSistersSon

func CNLabelContactRelationNephewSistersSon() uintptr

func CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon

func CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon() uintptr

func CNLabelContactRelationNiece

func CNLabelContactRelationNiece() uintptr

func CNLabelContactRelationNieceBrothersDaughter

func CNLabelContactRelationNieceBrothersDaughter() uintptr

func CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter

func CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter() uintptr

func CNLabelContactRelationNieceOrCousin

func CNLabelContactRelationNieceOrCousin() uintptr

func CNLabelContactRelationNieceSistersDaughter

func CNLabelContactRelationNieceSistersDaughter() uintptr

func CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter

func CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter() uintptr

func CNLabelContactRelationParent

func CNLabelContactRelationParent() uintptr

func CNLabelContactRelationParentInLaw

func CNLabelContactRelationParentInLaw() uintptr

func CNLabelContactRelationParentsElderSibling

func CNLabelContactRelationParentsElderSibling() uintptr

func CNLabelContactRelationParentsSibling

func CNLabelContactRelationParentsSibling() uintptr

func CNLabelContactRelationParentsSiblingFathersElderSibling

func CNLabelContactRelationParentsSiblingFathersElderSibling() uintptr

func CNLabelContactRelationParentsSiblingFathersSibling

func CNLabelContactRelationParentsSiblingFathersSibling() uintptr

func CNLabelContactRelationParentsSiblingFathersYoungerSibling

func CNLabelContactRelationParentsSiblingFathersYoungerSibling() uintptr

func CNLabelContactRelationParentsSiblingMothersElderSibling

func CNLabelContactRelationParentsSiblingMothersElderSibling() uintptr

func CNLabelContactRelationParentsSiblingMothersSibling

func CNLabelContactRelationParentsSiblingMothersSibling() uintptr

func CNLabelContactRelationParentsSiblingMothersYoungerSibling

func CNLabelContactRelationParentsSiblingMothersYoungerSibling() uintptr

func CNLabelContactRelationParentsYoungerSibling

func CNLabelContactRelationParentsYoungerSibling() uintptr

func CNLabelContactRelationPartner

func CNLabelContactRelationPartner() uintptr

func CNLabelContactRelationSibling

func CNLabelContactRelationSibling() uintptr

func CNLabelContactRelationSiblingInLaw

func CNLabelContactRelationSiblingInLaw() uintptr

func CNLabelContactRelationSiblingsChild

func CNLabelContactRelationSiblingsChild() uintptr

func CNLabelContactRelationSister

func CNLabelContactRelationSister() uintptr

func CNLabelContactRelationSisterInLaw

func CNLabelContactRelationSisterInLaw() uintptr

func CNLabelContactRelationSisterInLawBrothersWife

func CNLabelContactRelationSisterInLawBrothersWife() uintptr

func CNLabelContactRelationSisterInLawElderBrothersWife

func CNLabelContactRelationSisterInLawElderBrothersWife() uintptr

func CNLabelContactRelationSisterInLawHusbandsBrothersWife

func CNLabelContactRelationSisterInLawHusbandsBrothersWife() uintptr

func CNLabelContactRelationSisterInLawHusbandsSister

func CNLabelContactRelationSisterInLawHusbandsSister() uintptr

func CNLabelContactRelationSisterInLawSpousesSister

func CNLabelContactRelationSisterInLawSpousesSister() uintptr

func CNLabelContactRelationSisterInLawWifesBrothersWife

func CNLabelContactRelationSisterInLawWifesBrothersWife() uintptr

func CNLabelContactRelationSisterInLawWifesSister

func CNLabelContactRelationSisterInLawWifesSister() uintptr

func CNLabelContactRelationSisterInLawYoungerBrothersWife

func CNLabelContactRelationSisterInLawYoungerBrothersWife() uintptr

func CNLabelContactRelationSon

func CNLabelContactRelationSon() uintptr

func CNLabelContactRelationSonInLaw

func CNLabelContactRelationSonInLaw() uintptr

func CNLabelContactRelationSonInLawOrBrotherInLaw

func CNLabelContactRelationSonInLawOrBrotherInLaw() uintptr

func CNLabelContactRelationSonInLawOrStepson

func CNLabelContactRelationSonInLawOrStepson() uintptr

func CNLabelContactRelationSpouse

func CNLabelContactRelationSpouse() uintptr

func CNLabelContactRelationStepbrother

func CNLabelContactRelationStepbrother() uintptr

func CNLabelContactRelationStepchild

func CNLabelContactRelationStepchild() uintptr

func CNLabelContactRelationStepdaughter

func CNLabelContactRelationStepdaughter() uintptr

func CNLabelContactRelationStepfather

func CNLabelContactRelationStepfather() uintptr

func CNLabelContactRelationStepmother

func CNLabelContactRelationStepmother() uintptr

func CNLabelContactRelationStepparent

func CNLabelContactRelationStepparent() uintptr

func CNLabelContactRelationStepsister

func CNLabelContactRelationStepsister() uintptr

func CNLabelContactRelationStepson

func CNLabelContactRelationStepson() uintptr

func CNLabelContactRelationTeacher

func CNLabelContactRelationTeacher() uintptr

func CNLabelContactRelationUncle

func CNLabelContactRelationUncle() uintptr

func CNLabelContactRelationUncleFathersBrother

func CNLabelContactRelationUncleFathersBrother() uintptr

func CNLabelContactRelationUncleFathersElderBrother

func CNLabelContactRelationUncleFathersElderBrother() uintptr

func CNLabelContactRelationUncleFathersElderSistersHusband

func CNLabelContactRelationUncleFathersElderSistersHusband() uintptr

func CNLabelContactRelationUncleFathersSistersHusband

func CNLabelContactRelationUncleFathersSistersHusband() uintptr

func CNLabelContactRelationUncleFathersYoungerBrother

func CNLabelContactRelationUncleFathersYoungerBrother() uintptr

func CNLabelContactRelationUncleFathersYoungerSistersHusband

func CNLabelContactRelationUncleFathersYoungerSistersHusband() uintptr

func CNLabelContactRelationUncleMothersBrother

func CNLabelContactRelationUncleMothersBrother() uintptr

func CNLabelContactRelationUncleMothersElderBrother

func CNLabelContactRelationUncleMothersElderBrother() uintptr

func CNLabelContactRelationUncleMothersSistersHusband

func CNLabelContactRelationUncleMothersSistersHusband() uintptr

func CNLabelContactRelationUncleMothersYoungerBrother

func CNLabelContactRelationUncleMothersYoungerBrother() uintptr

func CNLabelContactRelationUncleParentsBrother

func CNLabelContactRelationUncleParentsBrother() uintptr

func CNLabelContactRelationUncleParentsElderBrother

func CNLabelContactRelationUncleParentsElderBrother() uintptr

func CNLabelContactRelationUncleParentsYoungerBrother

func CNLabelContactRelationUncleParentsYoungerBrother() uintptr

func CNLabelContactRelationWife

func CNLabelContactRelationWife() uintptr

func CNLabelContactRelationYoungerBrother

func CNLabelContactRelationYoungerBrother() uintptr

func CNLabelContactRelationYoungerBrotherInLaw

func CNLabelContactRelationYoungerBrotherInLaw() uintptr

func CNLabelContactRelationYoungerCousin

func CNLabelContactRelationYoungerCousin() uintptr

func CNLabelContactRelationYoungerCousinFathersBrothersDaughter

func CNLabelContactRelationYoungerCousinFathersBrothersDaughter() uintptr

func CNLabelContactRelationYoungerCousinFathersBrothersSon

func CNLabelContactRelationYoungerCousinFathersBrothersSon() uintptr

func CNLabelContactRelationYoungerCousinFathersSistersDaughter

func CNLabelContactRelationYoungerCousinFathersSistersDaughter() uintptr

func CNLabelContactRelationYoungerCousinFathersSistersSon

func CNLabelContactRelationYoungerCousinFathersSistersSon() uintptr

func CNLabelContactRelationYoungerCousinMothersBrothersDaughter

func CNLabelContactRelationYoungerCousinMothersBrothersDaughter() uintptr

func CNLabelContactRelationYoungerCousinMothersBrothersSon

func CNLabelContactRelationYoungerCousinMothersBrothersSon() uintptr

func CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter

func CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter() uintptr

func CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon

func CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon() uintptr

func CNLabelContactRelationYoungerCousinMothersSistersDaughter

func CNLabelContactRelationYoungerCousinMothersSistersDaughter() uintptr

func CNLabelContactRelationYoungerCousinMothersSistersSon

func CNLabelContactRelationYoungerCousinMothersSistersSon() uintptr

func CNLabelContactRelationYoungerCousinParentsSiblingsDaughter

func CNLabelContactRelationYoungerCousinParentsSiblingsDaughter() uintptr

func CNLabelContactRelationYoungerCousinParentsSiblingsSon

func CNLabelContactRelationYoungerCousinParentsSiblingsSon() uintptr

func CNLabelContactRelationYoungerSibling

func CNLabelContactRelationYoungerSibling() uintptr

func CNLabelContactRelationYoungerSiblingInLaw

func CNLabelContactRelationYoungerSiblingInLaw() uintptr

func CNLabelContactRelationYoungerSister

func CNLabelContactRelationYoungerSister() uintptr

func CNLabelContactRelationYoungerSisterInLaw

func CNLabelContactRelationYoungerSisterInLaw() uintptr

func CNLabelContactRelationYoungestBrother

func CNLabelContactRelationYoungestBrother() uintptr

func CNLabelContactRelationYoungestSister

func CNLabelContactRelationYoungestSister() uintptr

func CNLabelDateAnniversary

func CNLabelDateAnniversary() uintptr

func CNLabelEmailiCloud

func CNLabelEmailiCloud() uintptr

func CNLabelHome

func CNLabelHome() uintptr

func CNLabelOther

func CNLabelOther() uintptr

func CNLabelPhoneNumberAppleWatch

func CNLabelPhoneNumberAppleWatch() uintptr

func CNLabelPhoneNumberHomeFax

func CNLabelPhoneNumberHomeFax() uintptr

func CNLabelPhoneNumberMain

func CNLabelPhoneNumberMain() uintptr

func CNLabelPhoneNumberMobile

func CNLabelPhoneNumberMobile() uintptr

func CNLabelPhoneNumberOtherFax

func CNLabelPhoneNumberOtherFax() uintptr

func CNLabelPhoneNumberPager

func CNLabelPhoneNumberPager() uintptr

func CNLabelPhoneNumberWorkFax

func CNLabelPhoneNumberWorkFax() uintptr

func CNLabelPhoneNumberiPhone

func CNLabelPhoneNumberiPhone() uintptr

func CNLabelSchool

func CNLabelSchool() uintptr

func CNLabelURLAddressHomePage

func CNLabelURLAddressHomePage() uintptr

func CNLabelWork

func CNLabelWork() uintptr

func CNLabeledValueLocalizedStringForLabel

func CNLabeledValueLocalizedStringForLabel(label *foundation.NSString) *foundation.NSString

@abstract Get a localized label. @discussion Some labels are special keys representing generic labels. Use this to obtain a localized string for a label to display to a user. @param label to localize. @return The localized string if a Contacts framework defined label, otherwise just returns the label.

func CNPostalAddressCityKey

func CNPostalAddressCityKey() uintptr

func CNPostalAddressCountryKey

func CNPostalAddressCountryKey() uintptr

func CNPostalAddressFormatterAttributedStringFromPostalAddressStyleWithDefaultAttributes

func CNPostalAddressFormatterAttributedStringFromPostalAddressStyleWithDefaultAttributes(postalAddress *CNPostalAddress, style CNPostalAddressFormatterStyle, attributes *foundation.NSDictionary[objc.ID, objc.ID]) *foundation.NSAttributedString

@abstract Formats the postal address returning an attributed string. @discussion This behaves like +stringFromPostalAddress: except it returns an attributed string. Includes attribute keys CNPostalAddressPropertyAttribute and CNPostalAddressLocalizedPropertyNameAttribute. @param postalAddress The postal address to be formatted. @param style The formatting style to be used for the postal address. @param attributes The default attributes to use. See NSFormatter for details. @return The formatted postal address as an attributed string.

func CNPostalAddressFormatterStringFromPostalAddressStyle

func CNPostalAddressFormatterStringFromPostalAddressStyle(postalAddress *CNPostalAddress, style CNPostalAddressFormatterStyle) *foundation.NSString

@abstract Formats the postal address. @param postalAddress The postal address to be formatted. @param style The formatting style to be used for the postal address. @return The formatted postal address.

func CNPostalAddressISOCountryCodeKey

func CNPostalAddressISOCountryCodeKey() uintptr

func CNPostalAddressLocalizedPropertyNameAttribute

func CNPostalAddressLocalizedPropertyNameAttribute() uintptr

func CNPostalAddressLocalizedStringForKey

func CNPostalAddressLocalizedStringForKey(key *foundation.NSString) *foundation.NSString

Returns a user displayable property name.

func CNPostalAddressPostalCodeKey

func CNPostalAddressPostalCodeKey() uintptr

func CNPostalAddressPropertyAttribute

func CNPostalAddressPropertyAttribute() uintptr

func CNPostalAddressStateKey

func CNPostalAddressStateKey() uintptr

func CNPostalAddressStreetKey

func CNPostalAddressStreetKey() uintptr

func CNPostalAddressSubAdministrativeAreaKey

func CNPostalAddressSubAdministrativeAreaKey() uintptr

func CNPostalAddressSubLocalityKey

func CNPostalAddressSubLocalityKey() uintptr

func CNSocialProfileLocalizedStringForKey

func CNSocialProfileLocalizedStringForKey(key *foundation.NSString) *foundation.NSString

Returns a user displayable property name.

func CNSocialProfileLocalizedStringForService

func CNSocialProfileLocalizedStringForService(service *foundation.NSString) *foundation.NSString

Returns a user displayable service name.

func CNSocialProfileServiceFacebook

func CNSocialProfileServiceFacebook() uintptr

func CNSocialProfileServiceFlickr

func CNSocialProfileServiceFlickr() uintptr

func CNSocialProfileServiceGameCenter

func CNSocialProfileServiceGameCenter() uintptr

func CNSocialProfileServiceKey

func CNSocialProfileServiceKey() uintptr

func CNSocialProfileServiceLinkedIn

func CNSocialProfileServiceLinkedIn() uintptr

func CNSocialProfileServiceMySpace

func CNSocialProfileServiceMySpace() uintptr

func CNSocialProfileServiceSinaWeibo

func CNSocialProfileServiceSinaWeibo() uintptr

func CNSocialProfileServiceTencentWeibo

func CNSocialProfileServiceTencentWeibo() uintptr

func CNSocialProfileServiceTwitter

func CNSocialProfileServiceTwitter() uintptr

func CNSocialProfileServiceYelp

func CNSocialProfileServiceYelp() uintptr

func CNSocialProfileURLStringKey

func CNSocialProfileURLStringKey() uintptr

func CNSocialProfileUserIdentifierKey

func CNSocialProfileUserIdentifierKey() uintptr

func CNSocialProfileUsernameKey

func CNSocialProfileUsernameKey() uintptr

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CNAuthorizationStatus

type CNAuthorizationStatus int64
const (
	// The user has not yet made a choice regarding whether the application may access contact data.
	CNAuthorizationStatusNotDetermined CNAuthorizationStatus = 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.
	CNAuthorizationStatusRestricted CNAuthorizationStatus = 1
	// The user explicitly denied access to contact data for the application.
	CNAuthorizationStatusDenied CNAuthorizationStatus = 2
	// The application is authorized to access contact data.
	CNAuthorizationStatusAuthorized CNAuthorizationStatus = 3
	// This application is authorized to access some contact data.
	CNAuthorizationStatusLimited CNAuthorizationStatus = 4
)

func CNContactStoreAuthorizationStatusForEntityType

func CNContactStoreAuthorizationStatusForEntityType(entityType CNEntityType) CNAuthorizationStatus

@abstract Indicates the current authorization status to access contact data. @discussion Based upon the access, the application could display or hide its UI elements that would access any Contacts API. This method is thread safe. @return Returns the authorization status for the given entityType.

func (CNAuthorizationStatus) String

func (e CNAuthorizationStatus) String() string

type CNChangeHistoryAddContactEvent

type CNChangeHistoryAddContactEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryaddcontactevent

func CNChangeHistoryAddContactEventFromID

func CNChangeHistoryAddContactEventFromID(id objc.ID) *CNChangeHistoryAddContactEvent

func (*CNChangeHistoryAddContactEvent) Contact

func (*CNChangeHistoryAddContactEvent) ContainerIdentifier

func (o *CNChangeHistoryAddContactEvent) ContainerIdentifier() *foundation.NSString

type CNChangeHistoryAddGroupEvent

type CNChangeHistoryAddGroupEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryaddgroupevent

func CNChangeHistoryAddGroupEventFromID

func CNChangeHistoryAddGroupEventFromID(id objc.ID) *CNChangeHistoryAddGroupEvent

func (*CNChangeHistoryAddGroupEvent) ContainerIdentifier

func (o *CNChangeHistoryAddGroupEvent) ContainerIdentifier() *foundation.NSString

func (*CNChangeHistoryAddGroupEvent) Group

type CNChangeHistoryAddMemberToGroupEvent

type CNChangeHistoryAddMemberToGroupEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryaddmembertogroupevent

func CNChangeHistoryAddMemberToGroupEventFromID

func CNChangeHistoryAddMemberToGroupEventFromID(id objc.ID) *CNChangeHistoryAddMemberToGroupEvent

func (*CNChangeHistoryAddMemberToGroupEvent) Group

func (*CNChangeHistoryAddMemberToGroupEvent) Member

type CNChangeHistoryAddSubgroupToGroupEvent

type CNChangeHistoryAddSubgroupToGroupEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryaddsubgrouptogroupevent

func CNChangeHistoryAddSubgroupToGroupEventFromID

func CNChangeHistoryAddSubgroupToGroupEventFromID(id objc.ID) *CNChangeHistoryAddSubgroupToGroupEvent

func (*CNChangeHistoryAddSubgroupToGroupEvent) Group

func (*CNChangeHistoryAddSubgroupToGroupEvent) Subgroup

type CNChangeHistoryDeleteContactEvent

type CNChangeHistoryDeleteContactEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistorydeletecontactevent

func CNChangeHistoryDeleteContactEventFromID

func CNChangeHistoryDeleteContactEventFromID(id objc.ID) *CNChangeHistoryDeleteContactEvent

func (*CNChangeHistoryDeleteContactEvent) ContactIdentifier

func (o *CNChangeHistoryDeleteContactEvent) ContactIdentifier() *foundation.NSString

type CNChangeHistoryDeleteGroupEvent

type CNChangeHistoryDeleteGroupEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistorydeletegroupevent

func CNChangeHistoryDeleteGroupEventFromID

func CNChangeHistoryDeleteGroupEventFromID(id objc.ID) *CNChangeHistoryDeleteGroupEvent

func (*CNChangeHistoryDeleteGroupEvent) GroupIdentifier

func (o *CNChangeHistoryDeleteGroupEvent) GroupIdentifier() *foundation.NSString

type CNChangeHistoryEvent

type CNChangeHistoryEvent struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryevent

func CNChangeHistoryEventFromID

func CNChangeHistoryEventFromID(id objc.ID) *CNChangeHistoryEvent

func (*CNChangeHistoryEvent) AcceptEventVisitor

func (o *CNChangeHistoryEvent) AcceptEventVisitor(visitor CNChangeHistoryEventVisitor)

type CNChangeHistoryEventVisitor

type CNChangeHistoryEventVisitor interface {
	VisitDropEverythingEvent(event *CNChangeHistoryDropEverythingEvent)
	VisitAddContactEvent(event *CNChangeHistoryAddContactEvent)
	VisitUpdateContactEvent(event *CNChangeHistoryUpdateContactEvent)
	VisitDeleteContactEvent(event *CNChangeHistoryDeleteContactEvent)
}

CNChangeHistoryEventVisitor wraps the ObjC protocol CNChangeHistoryEventVisitor.

type CNChangeHistoryFetchRequest

type CNChangeHistoryFetchRequest struct {
	CNFetchRequest
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryfetchrequest

func CNChangeHistoryFetchRequestFromID

func CNChangeHistoryFetchRequestFromID(id objc.ID) *CNChangeHistoryFetchRequest

func (*CNChangeHistoryFetchRequest) AdditionalContactKeyDescriptors

func (o *CNChangeHistoryFetchRequest) AdditionalContactKeyDescriptors() *foundation.NSArray[CNKeyDescriptor]

@abstract Additional keys to include in the fetched contacts. @discussion By default, only @c CNContactIdentifierKey will be fetched. If you would like to include additional key descriptors to process the contacts, include the key descriptors you need. @c CNContactIdentifierKey will always be fetched, whether you request it or not.

func (*CNChangeHistoryFetchRequest) ExcludedTransactionAuthors

func (o *CNChangeHistoryFetchRequest) ExcludedTransactionAuthors() *foundation.NSArray[*foundation.NSString]

@abstract Exclude changes made by certain authors. @discussion If set, transactions made by the specified authors will be excluded from the results. Use this, in conjunction with @c CNSaveRequest.transactionAuthor, to suppress processing of changes you already know about.

func (*CNChangeHistoryFetchRequest) IncludeGroupChanges

func (o *CNChangeHistoryFetchRequest) IncludeGroupChanges() bool

@abstract Set to @c YES to also fetch group changes. Default is @c NO.

func (*CNChangeHistoryFetchRequest) MutableObjects

func (o *CNChangeHistoryFetchRequest) MutableObjects() bool

@abstract To return mutable contacts and groups. @discussion If @c YES returns mutable contacts and groups. Default is @c NO.

func (*CNChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors

func (o *CNChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors(additionalContactKeyDescriptors *foundation.NSArray[CNKeyDescriptor])

func (*CNChangeHistoryFetchRequest) SetExcludedTransactionAuthors

func (o *CNChangeHistoryFetchRequest) SetExcludedTransactionAuthors(excludedTransactionAuthors *foundation.NSArray[*foundation.NSString])

func (*CNChangeHistoryFetchRequest) SetIncludeGroupChanges

func (o *CNChangeHistoryFetchRequest) SetIncludeGroupChanges(includeGroupChanges bool)

func (*CNChangeHistoryFetchRequest) SetMutableObjects

func (o *CNChangeHistoryFetchRequest) SetMutableObjects(mutableObjects bool)

func (*CNChangeHistoryFetchRequest) SetShouldUnifyResults

func (o *CNChangeHistoryFetchRequest) SetShouldUnifyResults(shouldUnifyResults bool)

func (*CNChangeHistoryFetchRequest) SetStartingToken

func (o *CNChangeHistoryFetchRequest) SetStartingToken(startingToken *foundation.NSData)

func (*CNChangeHistoryFetchRequest) ShouldUnifyResults

func (o *CNChangeHistoryFetchRequest) ShouldUnifyResults() bool

@abstract Returns contact changes as unified contacts. @discussion If @c YES, returns unified contact history. Otherwise returns individual contact history. Default is @c YES. @note A unified contact is the aggregation of properties from a set of linked individual contacts. If an individual contact is not linked then the unified contact is simply that individual contact.

func (*CNChangeHistoryFetchRequest) StartingToken

func (o *CNChangeHistoryFetchRequest) StartingToken() *foundation.NSData

@abstract Request changes made after a certain point. @discussion If non-nil, only changes made after this point in history will be returned. If nil, a @c CNChangeHistoryDropEverythingEvent will be returned, followed by an add event for every contact and group currently in the contacts database.

type CNChangeHistoryRemoveMemberFromGroupEvent

type CNChangeHistoryRemoveMemberFromGroupEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryremovememberfromgroupevent

func CNChangeHistoryRemoveMemberFromGroupEventFromID

func CNChangeHistoryRemoveMemberFromGroupEventFromID(id objc.ID) *CNChangeHistoryRemoveMemberFromGroupEvent

func (*CNChangeHistoryRemoveMemberFromGroupEvent) Group

func (*CNChangeHistoryRemoveMemberFromGroupEvent) Member

type CNChangeHistoryRemoveSubgroupFromGroupEvent

type CNChangeHistoryRemoveSubgroupFromGroupEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryremovesubgroupfromgroupevent

func CNChangeHistoryRemoveSubgroupFromGroupEventFromID

func CNChangeHistoryRemoveSubgroupFromGroupEventFromID(id objc.ID) *CNChangeHistoryRemoveSubgroupFromGroupEvent

func (*CNChangeHistoryRemoveSubgroupFromGroupEvent) Group

func (*CNChangeHistoryRemoveSubgroupFromGroupEvent) Subgroup

type CNChangeHistoryUpdateContactEvent

type CNChangeHistoryUpdateContactEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryupdatecontactevent

func CNChangeHistoryUpdateContactEventFromID

func CNChangeHistoryUpdateContactEventFromID(id objc.ID) *CNChangeHistoryUpdateContactEvent

func (*CNChangeHistoryUpdateContactEvent) Contact

type CNChangeHistoryUpdateGroupEvent

type CNChangeHistoryUpdateGroupEvent struct {
	CNChangeHistoryEvent
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnchangehistoryupdategroupevent

func CNChangeHistoryUpdateGroupEventFromID

func CNChangeHistoryUpdateGroupEventFromID(id objc.ID) *CNChangeHistoryUpdateGroupEvent

func (*CNChangeHistoryUpdateGroupEvent) Group

type CNContact

type CNContact struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontact

func CNContactFromID

func CNContactFromID(id objc.ID) *CNContact

func (*CNContact) AreKeysAvailable

func (o *CNContact) AreKeysAvailable(keyDescriptors *foundation.NSArray[CNKeyDescriptor]) bool

Returns YES if the values for the keys specified by all the descriptors were fetched.

func (*CNContact) Birthday

func (o *CNContact) Birthday() *foundation.NSDateComponents

The Gregorian birthday.

func (*CNContact) ContactRelations

func (o *CNContact) ContactRelations() *foundation.NSArray[objc.ID]

func (*CNContact) ContactType

func (o *CNContact) ContactType() CNContactType

func (*CNContact) Dates

func (o *CNContact) Dates() *foundation.NSArray[objc.ID]

Other Gregorian dates (anniversaries, etc).

func (*CNContact) DepartmentName

func (o *CNContact) DepartmentName() *foundation.NSString

func (*CNContact) EmailAddresses

func (o *CNContact) EmailAddresses() *foundation.NSArray[objc.ID]

func (*CNContact) FamilyName

func (o *CNContact) FamilyName() *foundation.NSString

func (*CNContact) GivenName

func (o *CNContact) GivenName() *foundation.NSString

func (*CNContact) Identifier

func (o *CNContact) Identifier() *foundation.NSString

The identifier is unique among contacts on the device. It can be saved and used for fetching contacts next application launch.

func (*CNContact) ImageData

func (o *CNContact) ImageData() *foundation.NSData

func (*CNContact) ImageDataAvailable

func (o *CNContact) ImageDataAvailable() bool

func (*CNContact) InstantMessageAddresses

func (o *CNContact) InstantMessageAddresses() *foundation.NSArray[objc.ID]

func (*CNContact) IsKeyAvailable

func (o *CNContact) IsKeyAvailable(key *foundation.NSString) bool

Returns YES if the value for the specified key was fetched.

func (*CNContact) IsUnifiedWithContactWithIdentifier

func (o *CNContact) IsUnifiedWithContactWithIdentifier(contactIdentifier *foundation.NSString) bool

Returns YES if the receiver was fetched as a unified contact and includes the contact having contactIdentifier in its unification

func (*CNContact) JobTitle

func (o *CNContact) JobTitle() *foundation.NSString

func (*CNContact) MiddleName

func (o *CNContact) MiddleName() *foundation.NSString

func (*CNContact) NamePrefix

func (o *CNContact) NamePrefix() *foundation.NSString

func (*CNContact) NameSuffix

func (o *CNContact) NameSuffix() *foundation.NSString

func (*CNContact) Nickname

func (o *CNContact) Nickname() *foundation.NSString

func (*CNContact) NonGregorianBirthday

func (o *CNContact) NonGregorianBirthday() *foundation.NSDateComponents

The alternate birthday (Lunisolar).

func (*CNContact) Note

func (o *CNContact) Note() *foundation.NSString

func (*CNContact) OrganizationName

func (o *CNContact) OrganizationName() *foundation.NSString

func (*CNContact) PhoneNumbers

func (o *CNContact) PhoneNumbers() *foundation.NSArray[objc.ID]

func (*CNContact) PhoneticFamilyName

func (o *CNContact) PhoneticFamilyName() *foundation.NSString

func (*CNContact) PhoneticGivenName

func (o *CNContact) PhoneticGivenName() *foundation.NSString

func (*CNContact) PhoneticMiddleName

func (o *CNContact) PhoneticMiddleName() *foundation.NSString

func (*CNContact) PhoneticOrganizationName

func (o *CNContact) PhoneticOrganizationName() *foundation.NSString

func (*CNContact) PostalAddresses

func (o *CNContact) PostalAddresses() *foundation.NSArray[objc.ID]

func (*CNContact) PreviousFamilyName

func (o *CNContact) PreviousFamilyName() *foundation.NSString

func (*CNContact) SocialProfiles

func (o *CNContact) SocialProfiles() *foundation.NSArray[objc.ID]

func (*CNContact) ThumbnailImageData

func (o *CNContact) ThumbnailImageData() *foundation.NSData

func (*CNContact) UrlAddresses

func (o *CNContact) UrlAddresses() *foundation.NSArray[objc.ID]

type CNContactDisplayNameOrder

type CNContactDisplayNameOrder int64
const (
	CNContactDisplayNameOrderUserDefault     CNContactDisplayNameOrder = 0
	CNContactDisplayNameOrderGivenNameFirst  CNContactDisplayNameOrder = 1
	CNContactDisplayNameOrderFamilyNameFirst CNContactDisplayNameOrder = 2
)

func CNContactFormatterNameOrderForContact

func CNContactFormatterNameOrderForContact(contact *CNContact) CNContactDisplayNameOrder

@abstract The recommended name order for a given contact.

func (CNContactDisplayNameOrder) String

func (e CNContactDisplayNameOrder) String() string

type CNContactFetchRequest

type CNContactFetchRequest struct {
	CNFetchRequest
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontactfetchrequest

func CNContactFetchRequestFromID

func CNContactFetchRequestFromID(id objc.ID) *CNContactFetchRequest

func (*CNContactFetchRequest) InitWithKeysToFetch

func (o *CNContactFetchRequest) InitWithKeysToFetch(keysToFetch *foundation.NSArray[CNKeyDescriptor]) *CNContactFetchRequest

@param keysToFetch The properties to fetch for the returned contacts. @discussion Only fetch the properties that will be used.

func (*CNContactFetchRequest) KeysToFetch

@abstract The properties to fetch in the returned contacts. @discussion Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors.

func (*CNContactFetchRequest) MutableObjects

func (o *CNContactFetchRequest) MutableObjects() bool

@abstract To return mutable contacts. @discussion If YES returns CNMutableContact objects, otherwise returns CNContact objects. Default is NO.

func (*CNContactFetchRequest) Predicate

@abstract The predicate to match contacts against. @discussion Use only predicates from CNContact+Predicates.h. Compound predicates are not supported. Set to nil to match all contacts.

func (*CNContactFetchRequest) SetKeysToFetch

func (o *CNContactFetchRequest) SetKeysToFetch(keysToFetch *foundation.NSArray[CNKeyDescriptor])

func (*CNContactFetchRequest) SetMutableObjects

func (o *CNContactFetchRequest) SetMutableObjects(mutableObjects bool)

func (*CNContactFetchRequest) SetPredicate

func (o *CNContactFetchRequest) SetPredicate(predicate *foundation.NSPredicate)

func (*CNContactFetchRequest) SetSortOrder

func (o *CNContactFetchRequest) SetSortOrder(sortOrder CNContactSortOrder)

func (*CNContactFetchRequest) SetUnifyResults

func (o *CNContactFetchRequest) SetUnifyResults(unifyResults bool)

func (*CNContactFetchRequest) SortOrder

@abstract To return contacts in a specific sort order. @discussion Default is CNContactSortOrderNone.

func (*CNContactFetchRequest) UnifyResults

func (o *CNContactFetchRequest) UnifyResults() bool

@abstract To return linked contacts as unified contacts. @discussion If YES returns unified contacts, otherwise returns individual contacts. Default is YES. @note A unified contact is the aggregation of properties from a set of linked individual contacts. If an individual contact is not linked then the unified contact is simply that individual contact.

type CNContactFormatter

type CNContactFormatter struct {
	foundation.NSFormatter
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontactformatter

func CNContactFormatterFromID

func CNContactFormatterFromID(id objc.ID) *CNContactFormatter

func (*CNContactFormatter) AttributedStringFromContactDefaultAttributes

func (o *CNContactFormatter) AttributedStringFromContactDefaultAttributes(contact *CNContact, attributes *foundation.NSDictionary[objc.ID, objc.ID]) *foundation.NSAttributedString

@abstract Formats the contact name returning an attributed string. @discussion This behaves like -stringFromContact:style: except it returns an attributed string. CNContactPropertyAttribute key has the value of a CNContact name property key. @param contact The contact whose name is to be formatted. @param attributes The default attributes to use. See NSFormatter for details. @return The formatted contact name as an attributed string.

func (*CNContactFormatter) SetStyle

func (o *CNContactFormatter) SetStyle(style CNContactFormatterStyle)

func (*CNContactFormatter) StringFromContact

func (o *CNContactFormatter) StringFromContact(contact *CNContact) *foundation.NSString

@abstract Formats the contact name. @param contact The contact whose name is to be formatted. @return The formatted contact name.

func (*CNContactFormatter) Style

@abstract The style for a contact formatter instance. @discussion The default value is CNContactFormatterStyleFullName.

type CNContactFormatterStyle

type CNContactFormatterStyle int64
const (
	// Combine the contact name components into a displayable full name.
	CNContactFormatterStyleFullName CNContactFormatterStyle = 0
	// Combine the contact phonetic name components into a displayable phonetic full name.
	CNContactFormatterStylePhoneticFullName CNContactFormatterStyle = 1
)

func (CNContactFormatterStyle) String

func (e CNContactFormatterStyle) String() string

type CNContactProperty

type CNContactProperty struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontactproperty

func CNContactPropertyFromID

func CNContactPropertyFromID(id objc.ID) *CNContactProperty

func (*CNContactProperty) Contact

func (o *CNContactProperty) Contact() *CNContact

func (*CNContactProperty) Identifier

func (o *CNContactProperty) Identifier() *foundation.NSString

@abstract The identifier of the labeled value if the property is an array of labeled values, otherwise is nil.

func (*CNContactProperty) Key

@abstract The key of the contact property, as defined in CNContact.h.

func (*CNContactProperty) Label

@abstract The label of the labeled value if the property is an array of labeled values, otherwise is nil.

func (*CNContactProperty) Value

func (o *CNContactProperty) Value() objc.ID

@abstract The value of the property.

type CNContactRelation

type CNContactRelation struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontactrelation

func CNContactRelationContactRelationWithName

func CNContactRelationContactRelationWithName(name *foundation.NSString) *CNContactRelation

func CNContactRelationFromID

func CNContactRelationFromID(id objc.ID) *CNContactRelation

func (*CNContactRelation) InitWithName

func (o *CNContactRelation) InitWithName(name *foundation.NSString) *CNContactRelation

func (*CNContactRelation) Name

type CNContactSortOrder

type CNContactSortOrder int64
const (
	CNContactSortOrderNone        CNContactSortOrder = 0
	CNContactSortOrderUserDefault CNContactSortOrder = 1
	CNContactSortOrderGivenName   CNContactSortOrder = 2
	CNContactSortOrderFamilyName  CNContactSortOrder = 3
)

func (CNContactSortOrder) String

func (e CNContactSortOrder) String() string

type CNContactStore

type CNContactStore struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontactstore

func CNContactStoreFromID

func CNContactStoreFromID(id objc.ID) *CNContactStore

func (*CNContactStore) ContainersMatchingPredicateError

func (o *CNContactStore) ContainersMatchingPredicateError(predicate *foundation.NSPredicate) (*foundation.NSArray[*CNContainer], error)

@abstract Fetch all containers matching a given predicate. @discussion Use only predicates from CNContainer+Predicates.h. Compound predicates are not supported. @param predicate The predicate to match against. Set to nil to match all containers. @param error If an error occurs, contains error information. @return An array of CNContainer objects matching the predicate. If no matches are found, an empty array is returned. If an error occurs, nil is returned.

func (*CNContactStore) CurrentHistoryToken

func (o *CNContactStore) CurrentHistoryToken() *foundation.NSData

@abstract The current history token. @discussion Retrieve the current history token. If you are fetching contacts or change history events, you should use the token on the @c CNFetchResult instead.

func (*CNContactStore) DefaultContainerIdentifier

func (o *CNContactStore) DefaultContainerIdentifier() *foundation.NSString

@abstract The identifier of the default container. @discussion This identifier can be used to fetch the default container. @return The identifier of the default container. If the caller lacks Contacts authorization or an error occurs, nil is returned.

func (*CNContactStore) EnumerateContactsWithFetchRequestErrorUsing

func (o *CNContactStore) EnumerateContactsWithFetchRequestErrorUsing(fetchRequest *CNContactFetchRequest, error_ unsafe.Pointer, block func(*CNContact, *bool)) bool

@abstract Enumerates all contacts matching a contact fetch request. @discussion This method will wait until the enumeration is finished. If there are no results, the block is not called and YES is returned. @param fetchRequest The contact fetch request that specifies the search criteria. @param error If an error occurs, contains error information. @param block Called for each matching contact. Set *stop to YES to stop the enumeration. @return YES if successful, otherwise NO.

func (*CNContactStore) EnumeratorForChangeHistoryFetchRequestError

func (o *CNContactStore) EnumeratorForChangeHistoryFetchRequestError(request *CNChangeHistoryFetchRequest) (*CNFetchResult[objc.ID], error)

@abstract Enumerate a change history fetch request. @discussion Executes the given fetch request and returns an enumerator for the results. This may prevent all events from being loaded into memory at once. An exception may be thrown if an error occurs during enumeration. @param request A description of the events to fetch. @param error If the fetch fails, contains an @c NSError object with more information. @return An enumerator of the events matching the result, or @c nil if there was an error.

func (*CNContactStore) EnumeratorForContactFetchRequestError

func (o *CNContactStore) EnumeratorForContactFetchRequestError(request *CNContactFetchRequest) (*CNFetchResult[objc.ID], error)

@abstract Enumerate a contact fetch request. @discussion Executes the given fetch request and returns an enumerator for the results. This may prevent all records from being loaded into memory at once. An exception may be thrown if an error occurs during enumeration. @param request A description of the records to fetch. @param error If the fetch fails, contains an @c NSError object with more information. @return An enumerator of the records matching the result, or @c nil if there was an error.

func (*CNContactStore) ExecuteSaveRequestError

func (o *CNContactStore) ExecuteSaveRequestError(saveRequest *CNSaveRequest) (bool, error)

@abstract Executes a save request. @discussion Do not access objects when save request is executing. A save request with contacts may modify the contacts while executing. A save request only applies the changes to the objects. If there are overlapping changes with multiple, concurrent CNSaveRequests then the last saved change wins. @param saveRequest Save request to execute. @param error If an error occurs, contains error information. @return YES if successful, otherwise NO.

func (*CNContactStore) GroupsMatchingPredicateError

func (o *CNContactStore) GroupsMatchingPredicateError(predicate *foundation.NSPredicate) (*foundation.NSArray[*CNGroup], error)

@abstract Fetch all groups matching a given predicate. @discussion Use only predicates from CNGroup+Predicates.h. Compound predicates are not supported. @param predicate The predicate to match against. Set to nil to match all groups. @param error If an error occurs, contains error information. @return An array of CNGroup objects matching the predicate. If no matches are found, an empty array is returned. If an error occurs, nil is returned.

func (*CNContactStore) RequestAccessForEntityTypeCompletionHandler

func (o *CNContactStore) RequestAccessForEntityTypeCompletionHandler(entityType CNEntityType, completionHandler func(bool, unsafe.Pointer))

@abstract Request access to the user's contacts. @discussion Users are able to grant or deny access to contact data on a per-application basis. To request access to contact data, call requestAccessForEntityType:completionHandler:. This will not block the application while the user is being asked to grant or deny access. The user will only be prompted the first time access is requested; any subsequent CNContactStore calls will use the existing permissions. The completion handler is called on an arbitrary queue. @note Recommended to use CNContactStore instance methods in this completion handler instead of the UI main thread. This method is optional when CNContactStore is used on a background thread. If it is not used in that case, CNContactStore will block if the user is asked to grant or deny access. @param entityType Set to CNEntityTypeContacts. @param completionHandler This block is called upon completion. If the user grants access then granted is YES and error is nil. Otherwise granted is NO with an error.

func (*CNContactStore) UnifiedContactWithIdentifierKeysToFetchError

func (o *CNContactStore) UnifiedContactWithIdentifierKeysToFetchError(identifier *foundation.NSString, keys *foundation.NSArray[CNKeyDescriptor]) (*CNContact, error)

@abstract Fetch a unified contact with a given identifier. @discussion Due to unification the returned contact may have a different identifier. To fetch a batch of contacts by identifiers use [CNContact predicateForContactsWithIdentifiers:]. @param identifier The identifier of the contact to fetch. @param keys The properties to fetch into the returned CNContact object. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors. @param error If an error occurs, contains error information. @return The unified contact matching or linked to the identifier. If no contact with the given identifier is found, nil is returned and error is set to CNErrorCodeRecordDoesNotExist.

func (*CNContactStore) UnifiedContactsMatchingPredicateKeysToFetchError

func (o *CNContactStore) UnifiedContactsMatchingPredicateKeysToFetchError(predicate *foundation.NSPredicate, keys *foundation.NSArray[CNKeyDescriptor]) (*foundation.NSArray[*CNContact], error)

@abstract Fetch all unified contacts matching a given predicate. @discussion Use only predicates from CNContact+Predicates.h. Compound predicates are not supported. Due to unification the returned contacts may have a different identifier. @note To fetch all contacts use enumerateContactsWithFetchRequest:error:usingBlock:. @param predicate The predicate to match against. @param keys The properties to fetch into the returned CNContact objects. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors. @param error If an error occurs, contains error information. @return An array of CNContact objects matching the predicate. If no matches are found, an empty array is returned. If an error occurs, nil is returned.

func (*CNContactStore) UnifiedMeContactWithKeysToFetchError

func (o *CNContactStore) UnifiedMeContactWithKeysToFetchError(keys *foundation.NSArray[CNKeyDescriptor]) (*CNContact, error)

@abstract Fetch the unified contact that is the "me" card. @discussion Fetches the contact that is represented in the user interface as "My Card". @param keys The properties to fetch into the returned CNContact object. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors. @param error If an error occurs, contains error information. @return The unified contact that is the "me" card. If no "me" card is set, nil is returned.

type CNContactType

type CNContactType int64
const (
	CNContactTypePerson       CNContactType = 0
	CNContactTypeOrganization CNContactType = 1
)

func (CNContactType) String

func (e CNContactType) String() string

type CNContactVCardSerialization

type CNContactVCardSerialization struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontactvcardserialization

func CNContactVCardSerializationFromID

func CNContactVCardSerializationFromID(id objc.ID) *CNContactVCardSerialization

type CNContactsUserDefaults

type CNContactsUserDefaults struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontactsuserdefaults

func CNContactsUserDefaultsFromID

func CNContactsUserDefaultsFromID(id objc.ID) *CNContactsUserDefaults

func CNContactsUserDefaultsSharedDefaults

func CNContactsUserDefaultsSharedDefaults() *CNContactsUserDefaults

func (*CNContactsUserDefaults) CountryCode

func (o *CNContactsUserDefaults) CountryCode() *foundation.NSString

func (*CNContactsUserDefaults) SortOrder

type CNContainer

type CNContainer struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cncontainer

func CNContainerFromID

func CNContainerFromID(id objc.ID) *CNContainer

func (*CNContainer) Identifier

func (o *CNContainer) Identifier() *foundation.NSString

The identifier is unique among containers on the device. It can be saved and used for fetching containers next application launch.

func (*CNContainer) Name

func (o *CNContainer) Name() *foundation.NSString

func (*CNContainer) Type

func (o *CNContainer) Type() CNContainerType

type CNContainerType

type CNContainerType int64
const (
	CNContainerTypeUnassigned CNContainerType = 0
	CNContainerTypeLocal      CNContainerType = 1
	CNContainerTypeExchange   CNContainerType = 2
	CNContainerTypeCardDAV    CNContainerType = 3
)

func (CNContainerType) String

func (e CNContainerType) String() string

type CNEntityType

type CNEntityType int64
const (
	// The user's contacts.
	CNEntityTypeContacts CNEntityType = 0
)

func (CNEntityType) String

func (e CNEntityType) String() string

type CNErrorCode

type CNErrorCode int64
const (
	CNErrorCodeCommunicationError               CNErrorCode = 1
	CNErrorCodeDataAccessError                  CNErrorCode = 2
	CNErrorCodeAuthorizationDenied              CNErrorCode = 100
	CNErrorCodeNoAccessableWritableContainers   CNErrorCode = 101
	CNErrorCodeUnauthorizedKeys                 CNErrorCode = 102
	CNErrorCodeFeatureDisabledByUser            CNErrorCode = 103
	CNErrorCodeFeatureNotAvailable              CNErrorCode = 104
	CNErrorCodeRecordDoesNotExist               CNErrorCode = 200
	CNErrorCodeInsertedRecordAlreadyExists      CNErrorCode = 201
	CNErrorCodeContainmentCycle                 CNErrorCode = 202
	CNErrorCodeContainmentScope                 CNErrorCode = 203
	CNErrorCodeParentRecordDoesNotExist         CNErrorCode = 204
	CNErrorCodeRecordIdentifierInvalid          CNErrorCode = 205
	CNErrorCodeRecordNotWritable                CNErrorCode = 206
	CNErrorCodeParentContainerNotWritable       CNErrorCode = 207
	CNErrorCodeValidationMultipleErrors         CNErrorCode = 300
	CNErrorCodeValidationTypeMismatch           CNErrorCode = 301
	CNErrorCodeValidationConfigurationError     CNErrorCode = 302
	CNErrorCodePredicateInvalid                 CNErrorCode = 400
	CNErrorCodePolicyViolation                  CNErrorCode = 500
	CNErrorCodeClientIdentifierInvalid          CNErrorCode = 600
	CNErrorCodeClientIdentifierDoesNotExist     CNErrorCode = 601
	CNErrorCodeClientIdentifierCollision        CNErrorCode = 602
	CNErrorCodeChangeHistoryExpired             CNErrorCode = 603
	CNErrorCodeChangeHistoryInvalidAnchor       CNErrorCode = 604
	CNErrorCodeChangeHistoryInvalidFetchRequest CNErrorCode = 605
	CNErrorCodeVCardMalformed                   CNErrorCode = 700
	CNErrorCodeVCardSummarizationError          CNErrorCode = 701
)

func (CNErrorCode) String

func (e CNErrorCode) String() string

type CNFetchRequest

type CNFetchRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnfetchrequest

func CNFetchRequestFromID

func CNFetchRequestFromID(id objc.ID) *CNFetchRequest

type CNFetchResult

type CNFetchResult[ValueType purego.AnyObject] struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnfetchresult

func CNFetchResultFromID

func CNFetchResultFromID[ValueType purego.AnyObject](id objc.ID) *CNFetchResult[ValueType]

func (*CNFetchResult[ValueType]) CurrentHistoryToken

func (o *CNFetchResult[ValueType]) CurrentHistoryToken() *foundation.NSData

func (*CNFetchResult[ValueType]) Value

func (o *CNFetchResult[ValueType]) Value() ValueType

type CNGroup

type CNGroup struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cngroup

func CNGroupFromID

func CNGroupFromID(id objc.ID) *CNGroup

func (*CNGroup) Identifier

func (o *CNGroup) Identifier() *foundation.NSString

The identifier is unique among groups on the device. It can be saved and used for fetching groups next application launch.

func (*CNGroup) Name

func (o *CNGroup) Name() *foundation.NSString

type CNInstantMessageAddress

type CNInstantMessageAddress struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cninstantmessageaddress

func CNInstantMessageAddressFromID

func CNInstantMessageAddressFromID(id objc.ID) *CNInstantMessageAddress

func (*CNInstantMessageAddress) InitWithUsernameService

func (o *CNInstantMessageAddress) InitWithUsernameService(username *foundation.NSString, service *foundation.NSString) *CNInstantMessageAddress

func (*CNInstantMessageAddress) Service

func (*CNInstantMessageAddress) Username

type CNKeyDescriptor

type CNKeyDescriptor interface {
	foundation.NSSecureCoding
	foundation.NSCopying
}

CNKeyDescriptor wraps the ObjC protocol CNKeyDescriptor.

func CNContactDescriptorForAllComparatorKeys

func CNContactDescriptorForAllComparatorKeys() CNKeyDescriptor

Use to fetch all contact keys required for the contact sort comparator.

func CNContactFormatterDescriptorForRequiredKeysForDelimiter

func CNContactFormatterDescriptorForRequiredKeysForDelimiter() CNKeyDescriptor

@abstract The contact key descriptor required for the name delimiter. @discussion Use to fetch all contact keys required for +delimiterForContact:. Can combine key descriptors for different formatter styles in the fetch. @return The contact key descriptor for the name delimiter.

func CNContactFormatterDescriptorForRequiredKeysForNameOrder

func CNContactFormatterDescriptorForRequiredKeysForNameOrder() CNKeyDescriptor

@abstract The contact key descriptor required for the name order. @discussion Use to fetch all contact keys required for +nameOrderForContact:. Can combine key descriptors for different formatter styles in the fetch. @return The contact key descriptor for the name order.

func CNContactFormatterDescriptorForRequiredKeysForStyle

func CNContactFormatterDescriptorForRequiredKeysForStyle(style CNContactFormatterStyle) CNKeyDescriptor

@abstract The contact key descriptor required for the formatter. @discussion Use to fetch all contact keys required for the formatter style. Can combine key descriptors for different formatter styles in the fetch. @param style The formatting style to be used for the contact name. @return The contact key descriptor for the formatting style.

func CNContactVCardSerializationDescriptorForRequiredKeys

func CNContactVCardSerializationDescriptorForRequiredKeys() CNKeyDescriptor

@abstract Descriptor for all contact keys required by vCard serialization @discussion This descriptor must be passed to the fetch request if the returned contacts are to be serialized with dataWithContacts:error:.

type CNLabeledValue

type CNLabeledValue[ValueType purego.AnyObject] struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnlabeledvalue

func CNLabeledValueFromID

func CNLabeledValueFromID[ValueType purego.AnyObject](id objc.ID) *CNLabeledValue[ValueType]

func CNLabeledValueLabeledValueWithLabelValue

func CNLabeledValueLabeledValueWithLabelValue(label *foundation.NSString, value objc.ID) *CNLabeledValue[objc.ID]

Returns a new CNLabeledValue with a new identifier.

func (*CNLabeledValue[ValueType]) Identifier

func (o *CNLabeledValue[ValueType]) Identifier() *foundation.NSString

The identifier is unique among contacts on the device. It can be saved and used for finding labeled values next application launch.

func (*CNLabeledValue[ValueType]) InitWithLabelValue

func (o *CNLabeledValue[ValueType]) InitWithLabelValue(label *foundation.NSString, value ValueType) *CNLabeledValue[ValueType]

Initializes the CNLabeledValue with a new identifier.

func (*CNLabeledValue[ValueType]) Label

func (o *CNLabeledValue[ValueType]) Label() *foundation.NSString

func (*CNLabeledValue[ValueType]) LabeledValueBySettingLabel

func (o *CNLabeledValue[ValueType]) LabeledValueBySettingLabel(label *foundation.NSString) *CNLabeledValue[ValueType]

Returns a new CNLabeledValue with the existing value and identifier.

func (*CNLabeledValue[ValueType]) LabeledValueBySettingLabelValue

func (o *CNLabeledValue[ValueType]) LabeledValueBySettingLabelValue(label *foundation.NSString, value ValueType) *CNLabeledValue[ValueType]

Returns a new CNLabeledValue with the existing identifier.

func (*CNLabeledValue[ValueType]) LabeledValueBySettingValue

func (o *CNLabeledValue[ValueType]) LabeledValueBySettingValue(value ValueType) *CNLabeledValue[ValueType]

Returns a new CNLabeledValue with the existing label and identifier.

func (*CNLabeledValue[ValueType]) Value

func (o *CNLabeledValue[ValueType]) Value() ValueType

type CNMutableContact

type CNMutableContact struct {
	CNContact
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnmutablecontact

func CNMutableContactFromID

func CNMutableContactFromID(id objc.ID) *CNMutableContact

func (*CNMutableContact) SetBirthday

func (o *CNMutableContact) SetBirthday(birthday *foundation.NSDateComponents)

func (*CNMutableContact) SetContactRelations

func (o *CNMutableContact) SetContactRelations(contactRelations *foundation.NSArray[objc.ID])

func (*CNMutableContact) SetContactType

func (o *CNMutableContact) SetContactType(contactType CNContactType)

func (*CNMutableContact) SetDates

func (o *CNMutableContact) SetDates(dates *foundation.NSArray[objc.ID])

func (*CNMutableContact) SetDepartmentName

func (o *CNMutableContact) SetDepartmentName(departmentName *foundation.NSString)

func (*CNMutableContact) SetEmailAddresses

func (o *CNMutableContact) SetEmailAddresses(emailAddresses *foundation.NSArray[objc.ID])

func (*CNMutableContact) SetFamilyName

func (o *CNMutableContact) SetFamilyName(familyName *foundation.NSString)

func (*CNMutableContact) SetGivenName

func (o *CNMutableContact) SetGivenName(givenName *foundation.NSString)

func (*CNMutableContact) SetImageData

func (o *CNMutableContact) SetImageData(imageData *foundation.NSData)

func (*CNMutableContact) SetInstantMessageAddresses

func (o *CNMutableContact) SetInstantMessageAddresses(instantMessageAddresses *foundation.NSArray[objc.ID])

func (*CNMutableContact) SetJobTitle

func (o *CNMutableContact) SetJobTitle(jobTitle *foundation.NSString)

func (*CNMutableContact) SetMiddleName

func (o *CNMutableContact) SetMiddleName(middleName *foundation.NSString)

func (*CNMutableContact) SetNamePrefix

func (o *CNMutableContact) SetNamePrefix(namePrefix *foundation.NSString)

func (*CNMutableContact) SetNameSuffix

func (o *CNMutableContact) SetNameSuffix(nameSuffix *foundation.NSString)

func (*CNMutableContact) SetNickname

func (o *CNMutableContact) SetNickname(nickname *foundation.NSString)

func (*CNMutableContact) SetNonGregorianBirthday

func (o *CNMutableContact) SetNonGregorianBirthday(nonGregorianBirthday *foundation.NSDateComponents)

func (*CNMutableContact) SetNote

func (o *CNMutableContact) SetNote(note *foundation.NSString)

func (*CNMutableContact) SetOrganizationName

func (o *CNMutableContact) SetOrganizationName(organizationName *foundation.NSString)

func (*CNMutableContact) SetPhoneNumbers

func (o *CNMutableContact) SetPhoneNumbers(phoneNumbers *foundation.NSArray[objc.ID])

func (*CNMutableContact) SetPhoneticFamilyName

func (o *CNMutableContact) SetPhoneticFamilyName(phoneticFamilyName *foundation.NSString)

func (*CNMutableContact) SetPhoneticGivenName

func (o *CNMutableContact) SetPhoneticGivenName(phoneticGivenName *foundation.NSString)

func (*CNMutableContact) SetPhoneticMiddleName

func (o *CNMutableContact) SetPhoneticMiddleName(phoneticMiddleName *foundation.NSString)

func (*CNMutableContact) SetPhoneticOrganizationName

func (o *CNMutableContact) SetPhoneticOrganizationName(phoneticOrganizationName *foundation.NSString)

func (*CNMutableContact) SetPostalAddresses

func (o *CNMutableContact) SetPostalAddresses(postalAddresses *foundation.NSArray[objc.ID])

func (*CNMutableContact) SetPreviousFamilyName

func (o *CNMutableContact) SetPreviousFamilyName(previousFamilyName *foundation.NSString)

func (*CNMutableContact) SetSocialProfiles

func (o *CNMutableContact) SetSocialProfiles(socialProfiles *foundation.NSArray[objc.ID])

func (*CNMutableContact) SetUrlAddresses

func (o *CNMutableContact) SetUrlAddresses(urlAddresses *foundation.NSArray[objc.ID])

type CNMutableGroup

type CNMutableGroup struct {
	CNGroup
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnmutablegroup

func CNMutableGroupFromID

func CNMutableGroupFromID(id objc.ID) *CNMutableGroup

func (*CNMutableGroup) SetName

func (o *CNMutableGroup) SetName(name *foundation.NSString)

type CNMutablePostalAddress

type CNMutablePostalAddress struct {
	CNPostalAddress
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress

func CNMutablePostalAddressFromID

func CNMutablePostalAddressFromID(id objc.ID) *CNMutablePostalAddress

func (*CNMutablePostalAddress) SetCity

func (o *CNMutablePostalAddress) SetCity(city *foundation.NSString)

func (*CNMutablePostalAddress) SetCountry

func (o *CNMutablePostalAddress) SetCountry(country *foundation.NSString)

func (*CNMutablePostalAddress) SetISOCountryCode

func (o *CNMutablePostalAddress) SetISOCountryCode(iSOCountryCode *foundation.NSString)

func (*CNMutablePostalAddress) SetPostalCode

func (o *CNMutablePostalAddress) SetPostalCode(postalCode *foundation.NSString)

func (*CNMutablePostalAddress) SetState

func (o *CNMutablePostalAddress) SetState(state *foundation.NSString)

func (*CNMutablePostalAddress) SetStreet

func (o *CNMutablePostalAddress) SetStreet(street *foundation.NSString)

func (*CNMutablePostalAddress) SetSubAdministrativeArea

func (o *CNMutablePostalAddress) SetSubAdministrativeArea(subAdministrativeArea *foundation.NSString)

func (*CNMutablePostalAddress) SetSubLocality

func (o *CNMutablePostalAddress) SetSubLocality(subLocality *foundation.NSString)

type CNPhoneNumber

type CNPhoneNumber struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnphonenumber

func CNPhoneNumberFromID

func CNPhoneNumberFromID(id objc.ID) *CNPhoneNumber

func CNPhoneNumberNew deprecated

func CNPhoneNumberNew() *CNPhoneNumber

Deprecated: since macOS 10.13.

func CNPhoneNumberPhoneNumberWithStringValue

func CNPhoneNumberPhoneNumberWithStringValue(stringValue *foundation.NSString) *CNPhoneNumber

These will return nil if the stringValue is nil.

func (*CNPhoneNumber) Init deprecated

func (o *CNPhoneNumber) Init() *CNPhoneNumber

Deprecated: since macOS 10.13.

func (*CNPhoneNumber) InitWithStringValue

func (o *CNPhoneNumber) InitWithStringValue(string_ *foundation.NSString) *CNPhoneNumber

func (*CNPhoneNumber) StringValue

func (o *CNPhoneNumber) StringValue() *foundation.NSString

type CNPostalAddress

type CNPostalAddress struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnpostaladdress

func CNPostalAddressFromID

func CNPostalAddressFromID(id objc.ID) *CNPostalAddress

func (*CNPostalAddress) City

func (o *CNPostalAddress) City() *foundation.NSString

func (*CNPostalAddress) Country

func (o *CNPostalAddress) Country() *foundation.NSString

func (*CNPostalAddress) ISOCountryCode

func (o *CNPostalAddress) ISOCountryCode() *foundation.NSString

func (*CNPostalAddress) PostalCode

func (o *CNPostalAddress) PostalCode() *foundation.NSString

func (*CNPostalAddress) State

func (o *CNPostalAddress) State() *foundation.NSString

func (*CNPostalAddress) Street

func (o *CNPostalAddress) Street() *foundation.NSString

multi-street address is delimited with carriage returns “\n”

func (*CNPostalAddress) SubAdministrativeArea

func (o *CNPostalAddress) SubAdministrativeArea() *foundation.NSString

func (*CNPostalAddress) SubLocality

func (o *CNPostalAddress) SubLocality() *foundation.NSString

type CNPostalAddressFormatter

type CNPostalAddressFormatter struct {
	foundation.NSFormatter
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter

func CNPostalAddressFormatterFromID

func CNPostalAddressFormatterFromID(id objc.ID) *CNPostalAddressFormatter

func (*CNPostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes

func (o *CNPostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress *CNPostalAddress, attributes *foundation.NSDictionary[objc.ID, objc.ID]) *foundation.NSAttributedString

@abstract Formats the postal address returning an attributed string. @discussion This behaves like +stringFromPostalAddress: except it returns an attributed string. Includes attribute keys CNPostalAddressPropertyAttribute and CNPostalAddressLocalizedPropertyNameAttribute. @param postalAddress The postal address to be formatted. @param attributes The default attributes to use. See NSFormatter for details. @return The formatted postal address as an attributed string.

func (*CNPostalAddressFormatter) SetStyle

func (*CNPostalAddressFormatter) StringFromPostalAddress

func (o *CNPostalAddressFormatter) StringFromPostalAddress(postalAddress *CNPostalAddress) *foundation.NSString

@abstract Formats the postal address. @param postalAddress The postal address to be formatted. @return The formatted postal address.

func (*CNPostalAddressFormatter) Style

@abstract The style for a postal address formatter instance. @discussion The default value is CNPostalAddressFormatterStyleMailingAddress.

type CNPostalAddressFormatterStyle

type CNPostalAddressFormatterStyle int64
const (
	// Combine the postal address components into a multi-line mailing address.
	CNPostalAddressFormatterStyleMailingAddress CNPostalAddressFormatterStyle = 0
)

func (CNPostalAddressFormatterStyle) String

type CNSaveRequest

type CNSaveRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnsaverequest

func CNSaveRequestFromID

func CNSaveRequestFromID(id objc.ID) *CNSaveRequest

func (*CNSaveRequest) AddContactToContainerWithIdentifier

func (o *CNSaveRequest) AddContactToContainerWithIdentifier(contact *CNMutableContact, identifier *foundation.NSString)

@abstract Add a new contact to the contact store. @discussion The contact may be modified by the executing save request. If the contact was previously specified to be deleted in the save request that will no longer occur. @param contact The new contact to add. @param identifier The container identifier to add the new contact to. Set to nil for the default container.

func (*CNSaveRequest) AddGroupToContainerWithIdentifier

func (o *CNSaveRequest) AddGroupToContainerWithIdentifier(group *CNMutableGroup, identifier *foundation.NSString)

@abstract Add a new group to the contact store. @discussion If the group was previously specified to be deleted in the save request that will no longer occur. @param group The new group to add. @param identifier The container identifier to add the new group to. Set to nil for the default container.

func (*CNSaveRequest) AddMemberToGroup

func (o *CNSaveRequest) AddMemberToGroup(contact *CNContact, group *CNGroup)

@abstract Add a new member to a group. @discussion If the membership was previously specified to be deleted in the save request that will no longer occur. @param contact The new member to add to the group. @param group The group to add the member to.

func (*CNSaveRequest) AddSubgroupToGroup

func (o *CNSaveRequest) AddSubgroupToGroup(subgroup *CNGroup, group *CNGroup)

@abstract Add a new subgroup to a group. @discussion If the subgroup was previously specified to be deleted in the save request that will no longer occur. @param subgroup The new group to add. @param group The group to add the subgroup to.

func (*CNSaveRequest) DeleteContact

func (o *CNSaveRequest) DeleteContact(contact *CNMutableContact)

@abstract Delete a contact from the contact store. @discussion If the contact was previously specified to be added in the save request that will no longer occur.

func (*CNSaveRequest) DeleteGroup

func (o *CNSaveRequest) DeleteGroup(group *CNMutableGroup)

@abstract Delete a group from the contact store. @discussion The contacts in the group are not deleted. If the group was previously specified to be added in the save request that will no longer occur.

func (*CNSaveRequest) RemoveMemberFromGroup

func (o *CNSaveRequest) RemoveMemberFromGroup(contact *CNContact, group *CNGroup)

@abstract Remove a member from a group. @discussion The contact is not deleted. It is only removed as a member of the group. If the membership was previously specified to be added in the save request that will no longer occur. @param contact The member to remove from the group. @param group The group to remove the member from.

func (*CNSaveRequest) RemoveSubgroupFromGroup

func (o *CNSaveRequest) RemoveSubgroupFromGroup(subgroup *CNGroup, group *CNGroup)

@abstract Remove a subgroup from a group. @discussion The contacts in the subgroup's membership are not affected. If the subgroup was previously specified to be added in the save request that will no longer occur. @param subgroup The new group to add. @param group The group to add the subgroup to.

func (*CNSaveRequest) SetShouldRefetchContacts

func (o *CNSaveRequest) SetShouldRefetchContacts(shouldRefetchContacts bool)

func (*CNSaveRequest) SetTransactionAuthor

func (o *CNSaveRequest) SetTransactionAuthor(transactionAuthor *foundation.NSString)

func (*CNSaveRequest) ShouldRefetchContacts

func (o *CNSaveRequest) ShouldRefetchContacts() bool

@abstract Should the contacts be refetched as part of executing the save request. @discussion 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. @note If set to `NO` do not use the contacts after the executed save request as they may not be in a current state.

func (*CNSaveRequest) TransactionAuthor

func (o *CNSaveRequest) TransactionAuthor() *foundation.NSString

@abstract The author of this transaction. @discussion Use this, in conjunction with @c CNChangeHistoryFetchRequest.excludedTransactionAuthors, to suppress fetching of changes the author already knows about.

func (*CNSaveRequest) UpdateContact

func (o *CNSaveRequest) UpdateContact(contact *CNMutableContact)

@abstract Update an existing contact in the contact store. @discussion The contact must already exist in the contact store. The contact may be modified by the executing save request.

func (*CNSaveRequest) UpdateGroup

func (o *CNSaveRequest) UpdateGroup(group *CNMutableGroup)

@abstract Update an existing group in the contact store. @discussion The group must already exist in the contact store.

type CNSocialProfile

type CNSocialProfile struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/contacts/cnsocialprofile

func CNSocialProfileFromID

func CNSocialProfileFromID(id objc.ID) *CNSocialProfile

func (*CNSocialProfile) InitWithUrlStringUsernameUserIdentifierService

func (o *CNSocialProfile) InitWithUrlStringUsernameUserIdentifierService(urlString *foundation.NSString, username *foundation.NSString, userIdentifier *foundation.NSString, service *foundation.NSString) *CNSocialProfile

func (*CNSocialProfile) Service

func (o *CNSocialProfile) Service() *foundation.NSString

func (*CNSocialProfile) UrlString

func (o *CNSocialProfile) UrlString() *foundation.NSString

func (*CNSocialProfile) UserIdentifier

func (o *CNSocialProfile) UserIdentifier() *foundation.NSString

func (*CNSocialProfile) Username

func (o *CNSocialProfile) Username() *foundation.NSString

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract 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

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

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