One Logo Pool Ball
_CoreSpotlight_FoundationModels · IOS API REFERENCE

ResolvedContact

struct · iOS 27.0+ · SDK 27.1

struct ResolvedContact

Contact information to help a search query match references to a person or organization. Use this type to specify details about the person or business that uses your app. When a query matches references to a specific person or business, the information in this structure helps the search tool resolve references to that contact. For example, a query that looks for the author of an email uses this information to resolve a request such as “find the emails that I authored.” Fill in as many fields of this structure as possible with the information available to your app.

Members (11)

init · iOS 27.0+

init

TypeScript
static init(displayName: string): ResolvedContact
Swift declaration
init(displayName: String)
get · iOS 27.0+

displayName

TypeScript
get displayName(): string
Swift declaration
var displayName: String

The name your app displays for the contact. Use this property to specify the name of a person or business. For example, you might specify “John Appleseed” or “Acme Corp”.

set · iOS 27.0+

displayName

TypeScript
set displayName(value: string)
Swift declaration
var displayName: String

The name your app displays for the contact. Use this property to specify the name of a person or business. For example, you might specify “John Appleseed” or “Acme Corp”.

get · iOS 27.0+

phoneNumbers

TypeScript
get phoneNumbers(): Array<string>
Swift declaration
var phoneNumbers: [String]

The phone numbers for this contact. Specify each phone number as a separate string in the array.

set · iOS 27.0+

phoneNumbers

TypeScript
set phoneNumbers(value: Array<string>)
Swift declaration
var phoneNumbers: [String]

The phone numbers for this contact. Specify each phone number as a separate string in the array.

get · iOS 27.0+

emailAddresses

TypeScript
get emailAddresses(): Array<string>
Swift declaration
var emailAddresses: [String]

The email addresses for this contact. Specify each email address as a separate string in the array.

set · iOS 27.0+

emailAddresses

TypeScript
set emailAddresses(value: Array<string>)
Swift declaration
var emailAddresses: [String]

The email addresses for this contact. Specify each email address as a separate string in the array.

get · iOS 27.0+

nameComponents

TypeScript
get nameComponents(): Array<_Foundation_PersonNameComponents>
Swift declaration
var nameComponents: [PersonNameComponents]

The contact’s names as a set of structured name components. Specify each distinct name as a separate <doc://com.apple.documentation/documentation/foundation/personnamecomponents> type in the array.

set · iOS 27.0+

nameComponents

TypeScript
set nameComponents(value: Array<_Foundation_PersonNameComponents>)
Swift declaration
var nameComponents: [PersonNameComponents]

The contact’s names as a set of structured name components. Specify each distinct name as a separate <doc://com.apple.documentation/documentation/foundation/personnamecomponents> type in the array.

get · iOS 27.0+

names

TypeScript
get names(): Array<string>
Swift declaration
var names: [String]

Alternate names you use to refer to the contact. Specify each alternate name as a separate string in the array.

set · iOS 27.0+

names

TypeScript
set names(value: Array<string>)
Swift declaration
var names: [String]

Alternate names you use to refer to the contact. Specify each alternate name as a separate string in the array.

Skipped declarations

No declarations were skipped in this snapshot.

All _CoreSpotlight_FoundationModels types →