contacts

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 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

Returns a comparator to sort contacts with the specified 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

Formats the contact name as an attributed string.

func CNContactFormatterDelimiterForContact

func CNContactFormatterDelimiterForContact(contact *CNContact) *foundation.NSString

Returns the delimiter to use between name components.

func CNContactFormatterStringFromContactStyle

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

Returns the contact name, formatted with the specified formatter.

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 string containing the localized contact 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

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

func CNContactPredicateForContactsInGroupWithIdentifier

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

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

func CNContactPredicateForContactsMatchingEmailAddress

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

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

func CNContactPredicateForContactsMatchingName

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

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

func CNContactPredicateForContactsMatchingPhoneNumber

func CNContactPredicateForContactsMatchingPhoneNumber(phoneNumber *CNPhoneNumber) *foundation.NSPredicate

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

func CNContactPredicateForContactsWithIdentifiers

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

Returns a predicate to find the contacts matching the specified 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)

Returns the contacts from the vCard data.

func CNContactVCardSerializationDataWithContactsError

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

Returns the vCard representation of the specified contacts.

func CNContainerIdentifierKey

func CNContainerIdentifierKey() uintptr

func CNContainerNameKey

func CNContainerNameKey() uintptr

func CNContainerPredicateForContainerOfContactWithIdentifier

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

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

func CNContainerPredicateForContainerOfGroupWithIdentifier

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

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

func CNContainerPredicateForContainersWithIdentifiers

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

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

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

Returns a predicate to find groups in the specified container.

func CNGroupPredicateForGroupsWithIdentifiers

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

Returns a predicate to find groups with the specified identifiers.

func CNGroupPredicateForSubgroupsInGroupWithIdentifier

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

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

func CNInstantMessageAddressLocalizedStringForKey

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

Returns a string containing the localized property name.

func CNInstantMessageAddressLocalizedStringForService

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

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

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

Returns a localized string for the specified 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

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

func CNPostalAddressFormatterStringFromPostalAddressStyle

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

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

func CNPostalAddressISOCountryCodeKey

func CNPostalAddressISOCountryCodeKey() uintptr

func CNPostalAddressLocalizedPropertyNameAttribute

func CNPostalAddressLocalizedPropertyNameAttribute() uintptr

func CNPostalAddressLocalizedStringForKey

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

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

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 the localized name of the property for the specified key.

func CNSocialProfileLocalizedStringForService

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

Returns the localized name of the specified service.

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

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

const (
	// The user has not yet made a choice regarding whether the application may access contact data.
	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
	// The app has access to a limited subset of contacts, chosen by the person using the app.
	CNAuthorizationStatusLimited CNAuthorizationStatus = 4
)

func CNContactStoreAuthorizationStatusForEntityType

func CNContactStoreAuthorizationStatusForEntityType(entityType CNEntityType) CNAuthorizationStatus

Returns the current authorization status to access the contact data.

func (CNAuthorizationStatus) String

func (e CNAuthorizationStatus) String() string

type CNChangeHistoryAddContactEvent

type CNChangeHistoryAddContactEvent struct {
	CNChangeHistoryEvent
}

An object that represents a user adding a contact.

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
}

An object that represents a user adding a group.

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
}

An object that represents a user adding a contact to a group.

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
}

An object that represents a user adding a subgroup to a group.

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
}

An object that represents a user deleting a contact.

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
}

An object that represents a user deleting a group.

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 CNChangeHistoryDropEverythingEvent

type CNChangeHistoryDropEverythingEvent struct {
	CNChangeHistoryEvent
}

An object that indicates the delegate should drop all contacts and groups before handling change events.

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

func CNChangeHistoryDropEverythingEventFromID

func CNChangeHistoryDropEverythingEventFromID(id objc.ID) *CNChangeHistoryDropEverythingEvent

type CNChangeHistoryEvent

type CNChangeHistoryEvent struct {
	foundation.NSObject
}

An object that represents the user adding, updating, or deleting a contact or group.

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)

Forwards the event to the delegate you provide to process the change-history event.

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
}

An object that specifies the criteria for fetching change history.

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
}

An object that represents a user removing a contact from a group.

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
}

An object that represents a user removing a subgroup from a group.

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
}

An object that represents a user updating a contact.

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
}

An object that represents an updated group event.

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
}

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

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

Determines whether all contact property values for the specified keys are 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

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

func (*CNContact) IsUnifiedWithContactWithIdentifier

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

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

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

The formatting orders for contact names component.

const (
	// Display name order by user default.
	CNContactDisplayNameOrderUserDefault CNContactDisplayNameOrder = 0
	// Display name order by given name first.
	CNContactDisplayNameOrderGivenNameFirst CNContactDisplayNameOrder = 1
	// Display name order by family name first.
	CNContactDisplayNameOrderFamilyNameFirst CNContactDisplayNameOrder = 2
)

func CNContactFormatterNameOrderForContact

func CNContactFormatterNameOrderForContact(contact *CNContact) CNContactDisplayNameOrder

Returns the display name order.

func (CNContactDisplayNameOrder) String

func (e CNContactDisplayNameOrder) String() string

type CNContactFetchRequest

type CNContactFetchRequest struct {
	CNFetchRequest
}

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

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

Creates a fetch request for the specified keys.

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
}

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

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

Formats the 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

Formats the contact name.

func (*CNContactFormatter) Style

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

type CNContactFormatterStyle

type CNContactFormatterStyle int64

The formatting styles for contact names.

const (
	// Combines the contact name components into a full name.
	CNContactFormatterStyleFullName CNContactFormatterStyle = 0
	// Combines the contact phonetic name components into a phonetic full name.
	CNContactFormatterStylePhoneticFullName CNContactFormatterStyle = 1
)

func (CNContactFormatterStyle) String

func (e CNContactFormatterStyle) String() string

type CNContactProperty

type CNContactProperty struct {
	foundation.NSObject
}

An object that represents a property of a contact.

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
}

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

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

func CNContactRelationContactRelationWithName

func CNContactRelationContactRelationWithName(name *foundation.NSString) *CNContactRelation

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

func CNContactRelationFromID

func CNContactRelationFromID(id objc.ID) *CNContactRelation

func (*CNContactRelation) InitWithName

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

Creates an object with the name of the related contact.

func (*CNContactRelation) Name

type CNContactSortOrder

type CNContactSortOrder int64

Indicates the sorting order for contacts.

const (
	// No sorting order.
	CNContactSortOrderNone CNContactSortOrder = 0
	// The user’s default sorting order.
	CNContactSortOrderUserDefault CNContactSortOrder = 1
	// Sorting contacts by given name.
	CNContactSortOrderGivenName CNContactSortOrder = 2
	// Sorting contacts by family name.
	CNContactSortOrderFamilyName CNContactSortOrder = 3
)

func (CNContactSortOrder) String

func (e CNContactSortOrder) String() string

type CNContactStore

type CNContactStore struct {
	foundation.NSObject
}

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

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)

Fetches all containers matching the specified predicate.

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

Returns the identifier of the default container.

func (*CNContactStore) EnumerateContactsWithFetchRequestErrorUsing

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

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

func (*CNContactStore) EnumeratorForChangeHistoryFetchRequestError

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

Enumerates a change history fetch request.

func (*CNContactStore) EnumeratorForContactFetchRequestError

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

Enumerates a contact fetch request.

func (*CNContactStore) ExecuteSaveRequestError

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

Executes a save request and returns success or failure.

func (*CNContactStore) GroupsMatchingPredicateError

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

Fetches all groups matching the specified predicate.

func (*CNContactStore) RequestAccessForEntityTypeCompletionHandler

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

Requests access to the user’s contacts.

func (*CNContactStore) UnifiedContactWithIdentifierKeysToFetchError

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

Fetches a unified contact for the specified contact identifier.

func (*CNContactStore) UnifiedContactsMatchingPredicateKeysToFetchError

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

Fetches all unified contacts matching the specified predicate.

func (*CNContactStore) UnifiedMeContactWithKeysToFetchError

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

Fetches the unified contact that’s the me card.

type CNContactType

type CNContactType int64

The types a contact can be.

const (
	// The contact is a person.
	CNContactTypePerson CNContactType = 0
	// The contact is an Organization.
	CNContactTypeOrganization CNContactType = 1
)

func (CNContactType) String

func (e CNContactType) String() string

type CNContactVCardSerialization

type CNContactVCardSerialization struct {
	foundation.NSObject
}

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

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

func CNContactVCardSerializationFromID

func CNContactVCardSerializationFromID(id objc.ID) *CNContactVCardSerialization

type CNContactsUserDefaults

type CNContactsUserDefaults struct {
	foundation.NSObject
}

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

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

func CNContactsUserDefaultsFromID

func CNContactsUserDefaultsFromID(id objc.ID) *CNContactsUserDefaults

func CNContactsUserDefaultsSharedDefaults

func CNContactsUserDefaultsSharedDefaults() *CNContactsUserDefaults

The singleton contacts user defaults object.

func (*CNContactsUserDefaults) CountryCode

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

func (*CNContactsUserDefaults) SortOrder

type CNContainer

type CNContainer struct {
	foundation.NSObject
}

An immutable object that represents a collection of contacts.

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

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

const (
	// A container where the system hasn’t assigned the container type.
	CNContainerTypeUnassigned CNContainerType = 0
	// A container for contacts only stored locally on the device.
	CNContainerTypeLocal CNContainerType = 1
	// A container for contacts stored in an Exchange folder from an Exchange server.
	CNContainerTypeExchange CNContainerType = 2
	// A container for contacts stored in an CardDAV server, such as iCloud.
	CNContainerTypeCardDAV CNContainerType = 3
)

func (CNContainerType) String

func (e CNContainerType) String() string

type CNEntityType

type CNEntityType int64

The entities the user can grant access to.

const (
	// The user’s contacts.
	CNEntityTypeContacts CNEntityType = 0
)

func (CNEntityType) String

func (e CNEntityType) String() string

type CNErrorCode

type CNErrorCode int64

Error codes that the system may return when you use Contacts framework methods.

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
}

The base class for contact fetch requests.

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
}

An object that represents the result of a change-history fetch request.

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
}

An immutable object that represents a group of contacts.

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
}

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

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

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

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

Fetches all the 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

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

func CNContactVCardSerializationDescriptorForRequiredKeys

func CNContactVCardSerializationDescriptorForRequiredKeys() CNKeyDescriptor

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

type CNLabeledValue

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

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

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 labeled value 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]

Returns a new labeled value 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 labeled value object with an existing value and identifier.

func (*CNLabeledValue[ValueType]) LabeledValueBySettingLabelValue

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

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

func (*CNLabeledValue[ValueType]) LabeledValueBySettingValue

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

Returns a new value for an existing label and identifier.

func (*CNLabeledValue[ValueType]) Value

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

type CNMutableContact

type CNMutableContact struct {
	CNContact
}

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

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
}

A mutable object that represents a group of contacts.

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
}

A mutable representation of the postal address for a contact.

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
}

An immutable object representing a phone number for a contact.

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

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

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

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

func (*CNPhoneNumber) StringValue

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

type CNPostalAddress

type CNPostalAddress struct {
	foundation.NSObject
}

An immutable representation of the postal address for a contact.

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
}

An object that you use to format a contact’s postal addresses.

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

Returns a formatted postal address as an attributed string.

func (*CNPostalAddressFormatter) SetStyle

func (*CNPostalAddressFormatter) StringFromPostalAddress

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

Returns a 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

Constants for postal formatting styles.

const (
	// A style that combines the postal address components into a multi-line mailing address.
	CNPostalAddressFormatterStyleMailingAddress CNPostalAddressFormatterStyle = 0
)

func (CNPostalAddressFormatterStyle) String

type CNSaveRequest

type CNSaveRequest struct {
	foundation.NSObject
}

An object that collects the changes you want to save to the user’s contacts database.

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)

Adds the specified contact to the contact store.

func (*CNSaveRequest) AddGroupToContainerWithIdentifier

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

Adds a group to the contact store.

func (*CNSaveRequest) AddMemberToGroup

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

Adds a contact as a member of a group.

func (*CNSaveRequest) AddSubgroupToGroup

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

Add the specified group to a parent group.

func (*CNSaveRequest) DeleteContact

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

Deletes a contact from the contact store.

func (*CNSaveRequest) DeleteGroup

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

Deletes a group from the contact store.

func (*CNSaveRequest) RemoveMemberFromGroup

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

Removes a contact as a member of a group.

func (*CNSaveRequest) RemoveSubgroupFromGroup

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

Remove a subgroup from the specified parent group.

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)

Updates an existing contact in the contact store.

func (*CNSaveRequest) UpdateGroup

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

Updates an existing group in the contact store.

type CNSocialProfile

type CNSocialProfile struct {
	foundation.NSObject
}

An immutable object that represents one of the user’s social profiles.

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

Initializes a new social profile object with the specified URL.

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